Home
last modified time | relevance | path

Searched refs:HcfKey (Results 1 - 25 of 70) sorted by relevance

123

/base/security/crypto_framework/interfaces/inner_api/key/
H A Dkey.h60 typedef struct HcfKey HcfKey; typedef
62 struct HcfKey { struct
65 const char *(*getAlgorithm)(HcfKey *self);
67 HcfResult (*getEncoded)(HcfKey *self, HcfBlob *returnBlob);
69 HcfResult (*getEncodedPem)(HcfKey *self, const char *format, char **returnString);
71 const char *(*getFormat)(HcfKey *self);
H A Dsym_key.h36 HcfKey key;
H A Dpri_key.h25 HcfKey base;
H A Dpub_key.h25 HcfKey base;
/base/security/crypto_framework/frameworks/cj/include/
H A Dkey_impl.h27 explicit KeyImpl(HcfKey *hcfKey);
29 HcfKey *GetHcfKey() const;
35 HcfKey *hcfKey_;
H A Dcipher_impl.h31 HcfResult CipherInit(HcfCryptoMode opMode, HcfKey *key, HcfParamsSpec *params);
/base/security/certificate_framework/frameworks/js/napi/certificate/inc/
H A Dnapi_key.h28 explicit NapiKey(HcfKey *hcfKey);
30 HcfKey *GetHcfKey() const;
41 HcfKey *hcfKey_;
/base/security/crypto_framework/frameworks/js/napi/crypto/inc/
H A Dnapi_key.h29 explicit NapiKey(HcfKey *hcfKey);
31 HcfKey *GetHcfKey() const;
42 HcfKey *hcfKey_;
/base/security/crypto_framework/test/unittest/src/
H A Dcrypto_rsa_asy_key_generator_test.cpp406 EXPECT_NE(pubkey->base.getAlgorithm((HcfKey *)pubkey), nullptr); in HWTEST_F()
407 EXPECT_NE(pubkey->base.getFormat((HcfKey *)pubkey), nullptr); in HWTEST_F()
412 EXPECT_NE(prikey->base.getAlgorithm((HcfKey *)prikey), nullptr); in HWTEST_F()
413 EXPECT_NE(prikey->base.getFormat((HcfKey *)prikey), nullptr); in HWTEST_F()
438 EXPECT_NE(pubkey->base.getAlgorithm((HcfKey *)pubkey), nullptr); in HWTEST_F()
439 EXPECT_NE(pubkey->base.getFormat((HcfKey *)pubkey), nullptr); in HWTEST_F()
444 EXPECT_NE(prikey->base.getAlgorithm((HcfKey *)prikey), nullptr); in HWTEST_F()
445 EXPECT_NE(prikey->base.getFormat((HcfKey *)prikey), nullptr); in HWTEST_F()
467 res = pubKey->base.getEncoded((HcfKey *)priKey, &pubKeyBlob); in HWTEST_F()
469 res = priKey->base.getEncoded((HcfKey *)pubKe in HWTEST_F()
[all...]
H A Dcrypto_rsa_asy_key_pem_test.cpp752 res = prikey->base.getEncodedPem((HcfKey *)prikey, "PKCS1", &retStr); in RsaAsyKeyPemTest1()
758 res = prikey->base.getEncodedPem((HcfKey *)prikey, "PKCS8", &retStr); in RsaAsyKeyPemTest1()
780 res = prikey->base.getEncodedPem((HcfKey *)prikey, "PKCS1", &retStr); in RsaAsyKeyPemTest2()
786 res = prikey->base.getEncodedPem((HcfKey *)prikey, "PKCS8", &retStr); in RsaAsyKeyPemTest2()
809 res = pubkey->base.getEncodedPem((HcfKey *)pubkey, "PKCS1", &retStr); in RsaAsyKeyPemTest3()
815 res = pubkey->base.getEncodedPem((HcfKey *)pubkey, "X509", &retStr); in RsaAsyKeyPemTest3()
838 res = pubkey->base.getEncodedPem((HcfKey *)pubkey, "PKCS1", &retStr); in RsaAsyKeyPemTest4()
844 res = pubkey->base.getEncodedPem((HcfKey *)pubkey, "X509", &retStr); in RsaAsyKeyPemTest4()
868 res = pubkey->base.getEncodedPem((HcfKey *)pubkey, "PKCS1", &retStr); in RsaAsyKeyPemTest5()
874 res = pubkey->base.getEncodedPem((HcfKey *)pubke in RsaAsyKeyPemTest5()
[all...]
H A Dcrypto_sm2_cipher_test.cpp151 res = cipher->init(cipher, ENCRYPT_MODE, (HcfKey *)keyPair->pubKey, nullptr); in HWTEST_F()
172 res = cipher->init(cipher, (enum HcfCryptoMode)123, (HcfKey *)keyPair->pubKey, nullptr); in HWTEST_F()
193 res = cipher->init(cipher, DECRYPT_MODE, (HcfKey *)keyPair->priKey, nullptr); in HWTEST_F()
215 res = cipher->init(cipher, ENCRYPT_MODE, (HcfKey *)keyPair->priKey, nullptr); in HWTEST_F()
236 res = cipher->init(cipher, DECRYPT_MODE, (HcfKey *)keyPair->pubKey, nullptr); in HWTEST_F()
257 res = cipher->init(nullptr, DECRYPT_MODE, (HcfKey *)keyPair->priKey, nullptr); in HWTEST_F()
283 res = cipher->init(aesCipher, DECRYPT_MODE, (HcfKey *)keyPair->priKey, nullptr); in HWTEST_F()
320 res = cipher->init(cipher, ENCRYPT_MODE, (HcfKey *)keyPair->pubKey, nullptr); in HWTEST_F()
352 res = cipher->init(cipher, ENCRYPT_MODE, (HcfKey *)keyPair->pubKey, nullptr); in HWTEST_F()
362 res = cipher->init(cipher, DECRYPT_MODE, (HcfKey *)keyPai in HWTEST_F()
[all...]
H A Dcrypto_rsa_cipher_test.cpp613 res = cipher->init(cipher, ENCRYPT_MODE, (HcfKey *)keyPair->pubKey, nullptr); in HWTEST_F()
634 res = cipher->init(cipher, (enum HcfCryptoMode)123, (HcfKey *)keyPair->pubKey, nullptr); in HWTEST_F()
655 res = cipher->init(cipher, DECRYPT_MODE, (HcfKey *)keyPair->priKey, nullptr); in HWTEST_F()
677 res = cipher->init(cipher, ENCRYPT_MODE, (HcfKey *)keyPair->priKey, nullptr); in HWTEST_F()
698 res = cipher->init(cipher, DECRYPT_MODE, (HcfKey *)keyPair->pubKey, nullptr); in HWTEST_F()
719 res = cipher->init(nullptr, DECRYPT_MODE, (HcfKey *)keyPair->pubKey, nullptr); in HWTEST_F()
745 res = cipher->init(aesCipher, DECRYPT_MODE, (HcfKey *)keyPair->pubKey, nullptr); in HWTEST_F()
782 res = cipher->init(cipher, ENCRYPT_MODE, (HcfKey *)keyPair->pubKey, nullptr); in HWTEST_F()
814 res = cipher->init(cipher, ENCRYPT_MODE, (HcfKey *)keyPair->pubKey, nullptr); in HWTEST_F()
824 res = cipher->init(cipher, DECRYPT_MODE, (HcfKey *)keyPai in HWTEST_F()
[all...]
/base/security/certificate_framework/frameworks/js/napi/certificate/src/
H A Dnapi_key.cpp29 NapiKey::NapiKey(HcfKey *hcfKey) in NapiKey()
36 HcfKey *NapiKey::GetHcfKey() const in GetHcfKey()
48 HcfKey *key = napiKey->GetHcfKey(); in JsGetAlgorithm()
63 HcfKey *key = napiKey->GetHcfKey(); in JsGetFormat()
78 HcfKey *key = napiKey->GetHcfKey(); in JsGetEncoded()
108 napi_define_class(env, "HcfKey", NAPI_AUTO_LENGTH, KeyConstructor, nullptr, in DefineHcfKeyJSClass()
/base/security/crypto_framework/frameworks/cj/src/
H A Dkey_impl.cpp20 KeyImpl::KeyImpl(HcfKey *hcfKey) in KeyImpl()
27 HcfKey *KeyImpl::GetHcfKey() const in GetHcfKey()
H A Dpub_key_impl.cpp19 PubKeyImpl::PubKeyImpl(HcfPubKey *pubKey) : KeyImpl(reinterpret_cast<HcfKey *>(pubKey)) {} in PubKeyImpl()
H A Dpri_key_impl.cpp19 PriKeyImpl::PriKeyImpl(HcfPriKey *priKey) : KeyImpl(reinterpret_cast<HcfKey *>(priKey)) {} in PriKeyImpl()
H A Dsym_key_impl.cpp19 SymKeyImpl::SymKeyImpl(HcfSymKey *symKey) : KeyImpl(reinterpret_cast<HcfKey *>(symKey)) {} in SymKeyImpl()
/base/security/crypto_framework/frameworks/js/napi/crypto/src/
H A Dnapi_key.cpp27 NapiKey::NapiKey(HcfKey *hcfKey) in NapiKey()
34 HcfKey *NapiKey::GetHcfKey() const in GetHcfKey()
51 HcfKey *key = napiKey->GetHcfKey(); in JsGetAlgorithm()
76 HcfKey *key = napiKey->GetHcfKey(); in JsGetFormat()
101 HcfKey *key = napiKey->GetHcfKey(); in JsGetEncoded()
135 napi_define_class(env, "HcfKey", NAPI_AUTO_LENGTH, KeyConstructor, nullptr, in DefineHcfKeyJSClass()
/base/security/crypto_framework/plugin/openssl_plugin/common/inc/
H A Decc_openssl_common.h35 HcfResult GetFieldType(const HcfKey *self, const bool isPrivate, char **returnString);
36 HcfResult GetPkSkBigInteger(const HcfKey *self, bool isPrivate,
/base/security/crypto_framework/frameworks/native/src/
H A Dsym_key.c40 HcfKey key;
94 return keyCtx->key.getAlgorithm((HcfKey *)keyCtx); in OH_CryptoSymKey_GetAlgoName()
102 HcfResult ret = keyCtx->key.getEncoded((HcfKey *)keyCtx, (HcfBlob *)out); in OH_CryptoSymKey_GetKeyData()
H A Dsym_cipher.c31 HcfKey *key, HcfParamsSpec *params);
54 HcfKey key;
119 HcfResult ret = ctx->init((HcfCipher *)ctx, (enum HcfCryptoMode)mod, (HcfKey *)key, (HcfParamsSpec *)params); in OH_CryptoSymCipher_Init()
H A Dasym_key.c54 HcfKey base;
154 ret = key->base.getEncodedPem((HcfKey *)key, encodingStandard, &pemStr); in OH_CryptoPubKey_Encode()
168 : key->base.getEncoded((HcfKey *)key, (HcfBlob *)out); in OH_CryptoPubKey_Encode()
/base/security/crypto_framework/plugin/openssl_plugin/key/asy_key_generator/src/
H A Dsm2_asy_key_generator_openssl.c398 static const char *GetSm2PubKeyAlgorithm(HcfKey *self) in GetSm2PubKeyAlgorithm()
411 static const char *GetSm2PriKeyAlgorithm(HcfKey *self) in GetSm2PriKeyAlgorithm()
424 static const char *GetSm2PubKeyFormat(HcfKey *self) in GetSm2PubKeyFormat()
437 static const char *GetSm2PriKeyFormat(HcfKey *self) in GetSm2PriKeyFormat()
450 static HcfResult GetSm2PubKeyEncoded(HcfKey *self, HcfBlob *returnBlob) in GetSm2PubKeyEncoded()
481 static HcfResult GetSm2PubKeyEncodedPem(HcfKey *self, const char *format, char **returnString) in GetSm2PubKeyEncodedPem()
489 static HcfResult GetSm2PriKeyEncoded(HcfKey *self, HcfBlob *returnBlob) in GetSm2PriKeyEncoded()
523 static HcfResult GetSm2PriKeyEncodedPem(HcfKey *self, const char *format, char **returnString) in GetSm2PriKeyEncodedPem()
546 static HcfResult GetCurveName(const HcfKey *self, bool isPriavte, char **returnString) in GetCurveName()
575 static HcfResult CheckSm2KeySelf(const HcfKey *sel
[all...]
/base/security/crypto_framework/frameworks/spi/
H A Dcipher_factory_spi.h33 HcfKey *key, HcfParamsSpec *params);
/base/security/crypto_framework/interfaces/inner_api/crypto_operation/
H A Dcipher.h59 HcfKey *key, HcfParamsSpec *params);

Completed in 16 milliseconds

123