Home
last modified time | relevance | path

Searched refs:HcfPubKey (Results 1 – 25 of 93) sorted by relevance

1234

/ohos5.0/base/security/crypto_framework/interfaces/innerkits/key/
H A Dpub_key.h22 typedef struct HcfPubKey HcfPubKey; typedef
24 struct HcfPubKey { struct
27 HcfResult (*getAsyKeySpecBigInteger)(const HcfPubKey *self, const AsyKeySpecItem item, argument
30 …HcfResult (*getAsyKeySpecString)(const HcfPubKey *self, const AsyKeySpecItem item, char **returnSt… argument
32 HcfResult (*getAsyKeySpecInt)(const HcfPubKey *self, const AsyKeySpecItem item, int *returnInt); argument
34 HcfResult (*getEncodedDer)(const HcfPubKey *self, const char *format, HcfBlob *returnBlob); argument
H A Dkey_pair.h29 HcfPubKey *pubKey;
/ohos5.0/base/security/crypto_framework/plugin/openssl_plugin/common/inc/
H A Dopenssl_class.h30 HcfPubKey base;
57 HcfPubKey base;
80 HcfPubKey base;
99 HcfPubKey base;
123 HcfPubKey base;
150 HcfPubKey base;
/ohos5.0/base/security/crypto_framework/frameworks/native/src/
H A Dasym_key.c50 HcfPubKey *pubKey;
56 HcfResult (*getAsyKeySpecBigInteger)(const HcfPubKey *self, const AsyKeySpecItem item,
59 …HcfResult (*getAsyKeySpecString)(const HcfPubKey *self, const AsyKeySpecItem item, char **returnSt…
61 HcfResult (*getAsyKeySpecInt)(const HcfPubKey *self, const AsyKeySpecItem item, int *returnInt);
63 HcfResult (*getEncodedDer)(const HcfPubKey *self, const char *format, HcfBlob *returnBlob);
164 key->getEncodedDer((HcfPubKey *)key, encodingStandard, (HcfBlob *)out); in OH_CryptoPubKey_Encode()
197 key->getAsyKeySpecInt((HcfPubKey *)key, (AsyKeySpecItem)item, returnInt); in OH_CryptoPubKey_GetParam()
208 key->getAsyKeySpecString((HcfPubKey *)key, (AsyKeySpecItem)item, &returnStr); in OH_CryptoPubKey_GetParam()
217 key->getAsyKeySpecBigInteger((HcfPubKey *)key, (AsyKeySpecItem)item, &bigIntValue); in OH_CryptoPubKey_GetParam()
/ohos5.0/base/security/crypto_framework/frameworks/cj/src/
H A Dpub_key_impl.cpp19 PubKeyImpl::PubKeyImpl(HcfPubKey *pubKey) : KeyImpl(reinterpret_cast<HcfKey *>(pubKey)) {} in PubKeyImpl()
23 HcfPubKey *PubKeyImpl::GetPubKey() in GetPubKey()
25 return reinterpret_cast<HcfPubKey *>(KeyImpl::GetHcfKey()); in GetPubKey()
/ohos5.0/base/security/crypto_framework/frameworks/js/napi/crypto/src/
H A Dnapi_pub_key.cpp29 NapiPubKey::NapiPubKey(HcfPubKey *pubKey) : NapiKey(reinterpret_cast<HcfKey *>(pubKey)) {} in NapiPubKey()
33 HcfPubKey *NapiPubKey::GetPubKey() in GetPubKey()
35 return reinterpret_cast<HcfPubKey *>(NapiKey::GetHcfKey()); in GetPubKey()
77 HcfPubKey *pubKey = napiPubKey->GetPubKey(); in JsGetEncoded()
129 HcfPubKey *pubKey = napiPubKey->GetPubKey(); in JsGetEncodedDer()
183 HcfPubKey *pubKey = napiPubKey->GetPubKey(); in JsGetEncodedPem()
203 static napi_value GetAsyKeySpecBigInt(napi_env env, AsyKeySpecItem item, HcfPubKey *pubKey) in GetAsyKeySpecBigInt()
224 static napi_value GetAsyKeySpecNumber(napi_env env, AsyKeySpecItem item, HcfPubKey *pubKey) in GetAsyKeySpecNumber()
239 static napi_value GetAsyKeySpecString(napi_env env, AsyKeySpecItem item, HcfPubKey *pubKey) in GetAsyKeySpecString()
281 HcfPubKey *pubKey = napiPubKey->GetPubKey(); in JsGetAsyKeySpec()
/ohos5.0/base/security/certificate_framework/frameworks/js/napi/certificate/src/
H A Dnapi_pub_key.cpp29 NapiPubKey::NapiPubKey(HcfPubKey *pubKey) : NapiKey(reinterpret_cast<HcfKey *>(pubKey)) {} in NapiPubKey()
33 __attribute__((no_sanitize("cfi"))) HcfPubKey *NapiPubKey::GetPubKey() in GetPubKey()
35 return reinterpret_cast<HcfPubKey *>(NapiKey::GetHcfKey()); in GetPubKey()
73 HcfPubKey *pubKey = napiPubKey->GetPubKey(); in JsGetEncoded()
/ohos5.0/base/security/crypto_framework/test/unittest/src/
H A Dcrypto_rsa_verify_test.cpp308 HcfPubKey *pubkey = keyPair->pubKey;
333 HcfPubKey *pubkey = keyPair->pubKey;
357 HcfPubKey *pubkey = keyPair->pubKey;
381 HcfPubKey *pubkey = keyPair->pubKey;
418 HcfPubKey *pubkey = keyPair->pubKey;
456 HcfPubKey *pubkey = keyPair->pubKey;
494 HcfPubKey *pubkey = keyPair->pubKey;
533 HcfPubKey *pubkey = keyPair->pubKey;
573 HcfPubKey *pubkey = keyPair->pubKey;
612 HcfPubKey *pubkey = keyPair->pubKey;
[all …]
H A Dcrypto_rsa_asy_key_pem_test.cpp805 HcfPubKey *pubkey = dupKeyPair->pubKey; in RsaAsyKeyPemTest3()
833 HcfPubKey *pubkey = dupKeyPair->pubKey; in RsaAsyKeyPemTest4()
862 HcfPubKey *pubkey = dupKeyPair->pubKey; in RsaAsyKeyPemTest5()
1314 HcfPubKey *pubkey = keyPair->pubKey;
1347 HcfPubKey *pubkey = keyPair->pubKey;
1380 HcfPubKey *pubkey = keyPair->pubKey;
1413 HcfPubKey *pubkey = keyPair->pubKey;
1446 HcfPubKey *pubkey = keyPair->pubKey;
1479 HcfPubKey *pubkey = keyPair->pubKey;
1520 HcfPubKey *pubkey = keyPair->pubKey;
[all …]
H A Dcrypto_rsa1024_asy_key_generator_by_spec_test.cpp202 HcfPubKey *pubKey = nullptr;
271 HcfPubKey *pubKey = nullptr;
761 HcfPubKey *pubKey = nullptr;
787 HcfPubKey *pubKey = nullptr;
810 HcfPubKey *pubKey = nullptr;
835 HcfPubKey *pubKey = nullptr;
864 HcfPubKey *pubKey = nullptr;
889 HcfPubKey *pubKey = nullptr;
921 HcfPubKey *pubKey = nullptr;
1145 HcfPubKey *pubKey = nullptr;
[all …]
H A Dcrypto_rsa2048_asy_key_generator_by_spec_test.cpp201 HcfPubKey *pubKey = nullptr;
270 HcfPubKey *pubKey = nullptr;
760 HcfPubKey *pubKey = nullptr;
786 HcfPubKey *pubKey = nullptr;
809 HcfPubKey *pubKey = nullptr;
834 HcfPubKey *pubKey = nullptr;
863 HcfPubKey *pubKey = nullptr;
888 HcfPubKey *pubKey = nullptr;
920 HcfPubKey *pubKey = nullptr;
1144 HcfPubKey *pubKey = nullptr;
[all …]
H A Dcrypto_rsa3072_asy_key_generator_by_spec_test.cpp201 HcfPubKey *pubKey = nullptr;
270 HcfPubKey *pubKey = nullptr;
760 HcfPubKey *pubKey = nullptr;
786 HcfPubKey *pubKey = nullptr;
809 HcfPubKey *pubKey = nullptr;
834 HcfPubKey *pubKey = nullptr;
863 HcfPubKey *pubKey = nullptr;
888 HcfPubKey *pubKey = nullptr;
920 HcfPubKey *pubKey = nullptr;
1144 HcfPubKey *pubKey = nullptr;
[all …]
H A Dcrypto_rsa4096_asy_key_generator_by_spec_test.cpp201 HcfPubKey *pubKey = nullptr;
270 HcfPubKey *pubKey = nullptr;
760 HcfPubKey *pubKey = nullptr;
786 HcfPubKey *pubKey = nullptr;
809 HcfPubKey *pubKey = nullptr;
834 HcfPubKey *pubKey = nullptr;
863 HcfPubKey *pubKey = nullptr;
888 HcfPubKey *pubKey = nullptr;
920 HcfPubKey *pubKey = nullptr;
1144 HcfPubKey *pubKey = nullptr;
[all …]
H A Dcrypto_rsa512_asy_key_generator_by_spec_test.cpp202 HcfPubKey *pubKey = nullptr;
271 HcfPubKey *pubKey = nullptr;
761 HcfPubKey *pubKey = nullptr;
787 HcfPubKey *pubKey = nullptr;
810 HcfPubKey *pubKey = nullptr;
835 HcfPubKey *pubKey = nullptr;
864 HcfPubKey *pubKey = nullptr;
889 HcfPubKey *pubKey = nullptr;
921 HcfPubKey *pubKey = nullptr;
1145 HcfPubKey *pubKey = nullptr;
[all …]
H A Dcrypto_rsa768_asy_key_generator_by_spec_test.cpp201 HcfPubKey *pubKey = nullptr;
270 HcfPubKey *pubKey = nullptr;
760 HcfPubKey *pubKey = nullptr;
786 HcfPubKey *pubKey = nullptr;
809 HcfPubKey *pubKey = nullptr;
834 HcfPubKey *pubKey = nullptr;
863 HcfPubKey *pubKey = nullptr;
888 HcfPubKey *pubKey = nullptr;
920 HcfPubKey *pubKey = nullptr;
1144 HcfPubKey *pubKey = nullptr;
[all …]
H A Dcrypto_rsa8192_asy_key_generator_by_spec_test.cpp201 HcfPubKey *pubKey = nullptr;
270 HcfPubKey *pubKey = nullptr;
760 HcfPubKey *pubKey = nullptr;
786 HcfPubKey *pubKey = nullptr;
809 HcfPubKey *pubKey = nullptr;
834 HcfPubKey *pubKey = nullptr;
863 HcfPubKey *pubKey = nullptr;
888 HcfPubKey *pubKey = nullptr;
920 HcfPubKey *pubKey = nullptr;
1144 HcfPubKey *pubKey = nullptr;
[all …]
/ohos5.0/base/security/crypto_framework/frameworks/cj/include/
H A Dpub_key_impl.h27 explicit PubKeyImpl(HcfPubKey *pubKey);
29 HcfPubKey *GetPubKey();
/ohos5.0/base/security/certificate_framework/frameworks/js/napi/certificate/inc/
H A Dnapi_pub_key.h29 explicit NapiPubKey(HcfPubKey *pubKey);
32 HcfPubKey *GetPubKey();
/ohos5.0/base/security/crypto_framework/frameworks/js/napi/crypto/inc/
H A Dnapi_pub_key.h30 explicit NapiPubKey(HcfPubKey *pubKey);
33 HcfPubKey *GetPubKey();
/ohos5.0/base/security/certificate_framework/frameworks/core/v1.0/spi/
H A Dx509_certificate_spi.h30 CfResult (*engineVerify)(HcfX509CertificateSpi *self, HcfPubKey *key);
34 CfResult (*engineGetPublicKey)(HcfX509CertificateSpi *self, HcfPubKey **keyOut);
/ohos5.0/base/security/crypto_framework/plugin/openssl_plugin/key/asy_key_generator/src/
H A Ddsa_asy_key_generator_openssl.c250 static HcfResult GetBigIntegerSpecFromDsaPubKey(const HcfPubKey *self, const AsyKeySpecItem item, in GetBigIntegerSpecFromDsaPubKey()
326 static HcfResult GetIntSpecFromDsaPubKey(const HcfPubKey *self, const AsyKeySpecItem item, int *ret… in GetIntSpecFromDsaPubKey()
340 static HcfResult GetStrSpecFromDsaPubKey(const HcfPubKey *self, const AsyKeySpecItem item, char **r… in GetStrSpecFromDsaPubKey()
424 static HcfResult GetDsaPubKeyEncodedDer(const HcfPubKey *self, const char *format, HcfBlob *returnB… in GetDsaPubKeyEncodedDer()
499 keyPair->base.pubKey = (HcfPubKey *)pubKey; in CreateDsaKeyPair()
771 static HcfResult CreateDsaPubKeyByPubKeySpec(const HcfDsaPubKeyParamsSpec *paramsSpec, HcfPubKey **… in CreateDsaPubKeyByPubKeySpec()
783 *returnPubKey = (HcfPubKey *)pubKey; in CreateDsaPubKeyByPubKeySpec()
930 const HcfAsyKeyParamsSpec *paramsSpec, HcfPubKey **returnPubKey) in EngineGenerateDsaPubKeyBySpec()
H A Ddh_asy_key_generator_openssl.c275 static HcfResult GetBigIntegerSpec(const HcfPubKey *pubSelf, const HcfPriKey *priSelf, const AsyKey… in GetBigIntegerSpec()
320 static HcfResult GetBigIntegerSpecFromDhPubKey(const HcfPubKey *self, const AsyKeySpecItem item, in GetBigIntegerSpecFromDhPubKey()
356 static HcfResult GetIntSpecFromDhPubKey(const HcfPubKey *self, const AsyKeySpecItem item, int *retu… in GetIntSpecFromDhPubKey()
388 static HcfResult GetStrSpecFromDhPubKey(const HcfPubKey *self, const AsyKeySpecItem item, char **re… in GetStrSpecFromDhPubKey()
499 static HcfResult GetDhPubKeyEncodedDer(const HcfPubKey *self, const char *format, HcfBlob *returnBl… in GetDhPubKeyEncodedDer()
574 keyPair->base.pubKey = (HcfPubKey *)pubKey; in CreateDhKeyPair()
878 static HcfResult CreateDhPubKeyBySpec(const HcfDhPubKeyParamsSpec *paramsSpec, HcfPubKey **returnPu… in CreateDhPubKeyBySpec()
892 *returnPubKey = (HcfPubKey *)pubKey; in CreateDhPubKeyBySpec()
1076 const HcfAsyKeyParamsSpec *paramsSpec, HcfPubKey **returnPubKey) in EngineGenerateDhPubKeyBySpec()
H A Drsa_asy_key_generator_openssl.c125 static HcfResult GetRsaPubKeySpecString(const HcfPubKey *self, const AsyKeySpecItem item, in GetRsaPubKeySpecString()
134 static HcfResult GetRsaPubKeySpecInt(const HcfPubKey *self, const AsyKeySpecItem item, in GetRsaPubKeySpecInt()
214 static HcfResult GetRsaPubKeySpecBigInteger(const HcfPubKey *self, const AsyKeySpecItem item, in GetRsaPubKeySpecBigInteger()
754 static HcfResult GetRsaPubKeyEncodedDer(const HcfPubKey *self, const char *format, HcfBlob *returnB… in GetRsaPubKeyEncodedDer()
868 (*retKeyPair)->base.pubKey = (HcfPubKey *)pubKeyImpl; in PackKeyPair()
1141 keyPair->base.pubKey = (HcfPubKey *)pubKey; in EngineConvertKey()
1184 keyPair->base.pubKey = (HcfPubKey *)pubKey; in EngineConvertPemKey()
1305 keyPairImpl->base.pubKey = (HcfPubKey *)pubKeyImpl; in GenerateKeyPairBySpec()
1313 static HcfResult GeneratePubKeyBySpec(const HcfAsyKeyParamsSpec *paramsSpec, HcfPubKey **pubKey) in GeneratePubKeyBySpec()
1334 *pubKey = (HcfPubKey *)pubKeyImpl; in GeneratePubKeyBySpec()
[all …]
H A Dsm2_asy_key_generator_openssl.c703 static HcfResult GetSm2PubKeySpecBigInteger(const HcfPubKey *self, const AsyKeySpecItem item, in GetSm2PubKeySpecBigInteger()
715 static HcfResult GetSm2PubKeySpecString(const HcfPubKey *self, const AsyKeySpecItem item, char **re… in GetSm2PubKeySpecString()
725 static HcfResult GetSm2PubKeySpecInt(const HcfPubKey *self, const AsyKeySpecItem item, int *returnI… in GetSm2PubKeySpecInt()
735 static HcfResult GetSm2PubKeyEncodedDer(const HcfPubKey *self, const char *format, HcfBlob *returnB… in GetSm2PubKeyEncodedDer()
848 returnKeyPair->base.pubKey = (HcfPubKey *)pubKey; in PackSm2KeyPair()
944 EC_KEY *ecKey, HcfPubKey **returnObj) in PackAndAssignPubKey()
952 *returnObj = (HcfPubKey *)pubKey; in PackAndAssignPubKey()
1071 HcfPubKey **returnPubKey) in EngineGeneratePubKeyBySpec()
/ohos5.0/base/security/crypto_framework/test/unittest/src/ecc/
H A Dcrypto_ecc_asy_key_generator_by_spec_sub_two_test.cpp120 HcfPubKey *pubKey = nullptr;
244 HcfPubKey *pubKey = nullptr;
369 HcfPubKey *pubKey = nullptr;
493 HcfPubKey *pubKey = nullptr;
618 HcfPubKey *pubKey = nullptr;
742 HcfPubKey *pubKey = nullptr;
867 HcfPubKey *pubKey = nullptr;
991 HcfPubKey *pubKey = nullptr;
1116 HcfPubKey *pubKey = nullptr;
1240 HcfPubKey *pubKey = nullptr;
[all …]

1234