/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/alg_module_test/src/ |
D | openssl_rsa_helper.c | 29 int32_t SaveRsaKeyToHksBlob(EVP_PKEY *pkey, const uint32_t keySize, struct HksBlob *key) in SaveRsaKeyToHksBlob() 88 EVP_PKEY *pkey = EVP_PKEY_new(); in GenerateRsaKey() local 103 bool OpensslGetx509PubKey(EVP_PKEY *pkey, struct HksBlob *x509Key) in OpensslGetx509PubKey() 129 EVP_PKEY *pkey = d2i_PUBKEY(NULL, (const unsigned char **)&data, x509Key->size); in X509ToRsaPublicKey() local 243 EVP_PKEY *pkey = EVP_PKEY_new(); in EncryptRsa() local 291 EVP_PKEY *pkey = EVP_PKEY_new(); in DecryptRsa() local 338 EVP_PKEY *pkey = NULL; in InitRsaCtx() local 430 EVP_PKEY *pkey = EVP_PKEY_new(); in OpensslSignRsa() local 492 EVP_PKEY *pkey = EVP_PKEY_new(); in OpensslVerifyRsa() local
|
D | openssl_dsa_helper.c | 46 EVP_PKEY *pkey = EVP_PKEY_new(); in GenerateDsaKey() local 163 EVP_PKEY *pkey = EVP_PKEY_new(); in OpensslSignDsa() local 217 EVP_PKEY *pkey = EVP_PKEY_new(); in OpensslVerifyDsa() local 264 EVP_PKEY *pkey = d2i_PUBKEY(NULL, (const unsigned char **)&data, x509Key->size); in X509ToDsaPublicKey() local 318 bool DsaGetx509PubKey(EVP_PKEY *pkey, struct HksBlob *x509Key) in DsaGetx509PubKey() 340 int32_t SaveDsaKeyToHksBlob(EVP_PKEY *pkey, const uint32_t keySize, struct HksBlob *key) in SaveDsaKeyToHksBlob()
|
D | openssl_dh_helper.c | 225 EVP_PKEY *pkey = d2i_PUBKEY(NULL, (const unsigned char **)&data, x509Key->size); in DhX509ToHksBlob() local 275 EVP_PKEY *pkey = EVP_PKEY_new(); in DhHksBlobToX509() local
|
D | hks_rsa_common_mt.cpp | 197 EVP_PKEY *pkey = GenerateRsaKey(testCaseParams.keySize); in EncryptServiceTestCase() local 571 EVP_PKEY *pkey = GenerateRsaKey(testCaseParams.keySize); in VerifyServiceTestCase() local
|
D | openssl_ecc_helper.c | 515 EVP_PKEY *pkey = d2i_PUBKEY(NULL, (const unsigned char **)&data, x509Key->size); in X509ToHksBlob() local 562 EVP_PKEY *pkey = EVP_PKEY_new(); in HksBlobToX509() local
|
D | hks_dsa_mt.cpp | 896 EVP_PKEY *pkey = GenerateDsaKey(KEY_SIZE_1024); in VerifyServiceTestCase() local
|
/base/security/certificate_manager/test/unittest/module_test/src/ |
D | cm_cert_parse_test.cpp | 423 EVP_PKEY *pkey = nullptr; variable 443 EVP_PKEY *pkey = nullptr; variable 462 EVP_PKEY *pkey = nullptr; variable 482 EVP_PKEY *pkey = nullptr; variable 502 EVP_PKEY *pkey = nullptr; variable 523 EVP_PKEY *pkey = nullptr; variable
|
/base/security/huks/utils/crypto_adapter/ |
D | hks_client_service_adapter.c | 54 static int32_t EvpKeyToX509Format(EVP_PKEY *pkey, struct HksBlob *x509Key) in EvpKeyToX509Format() 85 EVP_PKEY *pkey = NULL; in RsaToX509PublicKey() local 158 EVP_PKEY *pkey = NULL; in EccToX509PublicKey() local 373 EVP_PKEY *pkey = NULL; in DsaToX509PublicKey() local 457 EVP_PKEY *pkey = NULL; in DhToX509PublicKey() local 578 static int32_t X509PublicKeyToRsa(EVP_PKEY *pkey, struct HksBlob *rsaPublicKey) in X509PublicKeyToRsa() 671 static int32_t X509PublicKeyToEcc(const uint32_t alg, EVP_PKEY *pkey, struct HksBlob *eccPublicKey) in X509PublicKeyToEcc() 683 const uint32_t alg, uint32_t keyLen, const EVP_PKEY *pkey, struct HksBlob *sm2PublicKey) in EvpPkeyToHksPubKeyInfo() 728 static int32_t X509PublicKeyToSm2(const uint32_t alg, EVP_PKEY *pkey, struct HksBlob *sm2PublicKey) in X509PublicKeyToSm2() 764 static int32_t X509PublicKeyToDsa(EVP_PKEY *pkey, struct HksBlob *dsaPublicKey) in X509PublicKeyToDsa() [all …]
|
/base/security/certificate_manager/frameworks/cert_manager_standard/main/common/src/ |
D | cm_pfx.c | 84 int32_t CmParsePkcs12Cert(const struct CmBlob *p12Cert, char *passWd, EVP_PKEY **pkey, struct AppCe… in CmParsePkcs12Cert()
|
/base/startup/hvb/libhvb/src/crypto/ |
D | hvb_rsa_verify.c | 288 static int hvb_rsa_verify_pss_param_check(const struct hvb_rsa_pubkey *pkey, const uint8_t *pdigest, in hvb_rsa_verify_pss_param_check() 313 static int hvb_rsa_verify_pss_param_convert(const struct hvb_rsa_pubkey *pkey, uint8_t *psign, in hvb_rsa_verify_pss_param_convert() 341 int hvb_rsa_verify_pss(const struct hvb_rsa_pubkey in hvb_rsa_verify_pss()
|
/base/security/appverify/interfaces/innerkits/appverify/src/util/ |
D | hap_verify_openssl_utils.cpp | 215 EVP_PKEY* pkey = X509_get0_pubkey(cert); in VerifySignInfo() local 251 BIO* p7Bio, EVP_PKEY* pkey, bool isPss) in VerifyShaWithRsaPss() 380 bool HapVerifyOpensslUtils::VerifyShaWithRsaPss(const PKCS7_SIGNER_INFO* signInfo, EVP_PKEY* pkey, … in VerifyShaWithRsaPss()
|
D | hap_cert_verify_openssl_utils.cpp | 142 EVP_PKEY *pkey = X509_get0_pubkey(cert); in GetPublickeyBase64() local
|
/base/security/huks/frameworks/huks_standard/main/crypto_engine/openssl/src/ |
D | hks_openssl_sm2.c | 53 static int32_t EvpPkeyToKeyMaterialEc(const struct HksKeySpec *spec, const EVP_PKEY *pkey, struct H… in EvpPkeyToKeyMaterialEc() 127 EVP_PKEY *pkey = NULL; in HksOpensslSm2GenerateKey() local
|
D | hks_openssl_curve25519.c | 78 EVP_PKEY *pkey = NULL; in HksOpensslCurve25519GenerateKey() local
|
D | hks_openssl_rsa.c | 487 EVP_PKEY *pkey = NULL; in InitRsaCtx() local
|
D | hks_openssl_engine.c | 519 int32_t GetBnBinpadFromPkey(const EVP_PKEY *pkey, const char *keyName, struct HksBlob *out) in GetBnBinpadFromPkey()
|
/base/security/crypto_framework/plugin/openssl_plugin/common/src/ |
D | openssl_adapter.c | 300 …DigestSignInit(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx, const EVP_MD *type, ENGINE *e, EVP_PKEY *pkey) in Openssl_EVP_DigestSignInit() 315 …gestVerifyInit(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx, const EVP_MD *type, ENGINE *e, EVP_PKEY *pkey) in Openssl_EVP_DigestVerifyInit() 357 int Openssl_EVP_PKEY_assign_EC_KEY(EVP_PKEY *pkey, EC_KEY *key) in Openssl_EVP_PKEY_assign_EC_KEY() 362 void Openssl_EVP_PKEY_free(EVP_PKEY *pkey) in Openssl_EVP_PKEY_free() 367 EVP_PKEY_CTX *Openssl_EVP_PKEY_CTX_new(EVP_PKEY *pkey, ENGINE *e) in Openssl_EVP_PKEY_CTX_new() 449 int Openssl_EVP_PKEY_set1_DSA(EVP_PKEY *pkey, DSA *key) in Openssl_EVP_PKEY_set1_DSA() 454 DSA *Openssl_EVP_PKEY_get1_DSA(EVP_PKEY *pkey) in Openssl_EVP_PKEY_get1_DSA() 650 struct rsa_st *Openssl_EVP_PKEY_get1_RSA(EVP_PKEY *pkey) in Openssl_EVP_PKEY_get1_RSA() 655 int Openssl_EVP_PKEY_set1_RSA(EVP_PKEY *pkey, struct rsa_st *key) in Openssl_EVP_PKEY_set1_RSA() 660 int Openssl_EVP_PKEY_assign_RSA(EVP_PKEY *pkey, struct rsa_st *key) in Openssl_EVP_PKEY_assign_RSA()
|
/base/security/crypto_framework/test/unittest/src/ |
D | openssl_adapter_mock.c | 474 …DigestSignInit(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx, const EVP_MD *type, ENGINE *e, EVP_PKEY *pkey) in Openssl_EVP_DigestSignInit() 514 …gestVerifyInit(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx, const EVP_MD *type, ENGINE *e, EVP_PKEY *pkey) in Openssl_EVP_DigestVerifyInit() 580 int Openssl_EVP_PKEY_assign_EC_KEY(EVP_PKEY *pkey, EC_KEY *key) in Openssl_EVP_PKEY_assign_EC_KEY() 588 void Openssl_EVP_PKEY_free(EVP_PKEY *pkey) in Openssl_EVP_PKEY_free() 593 EVP_PKEY_CTX *Openssl_EVP_PKEY_CTX_new(EVP_PKEY *pkey, ENGINE *e) in Openssl_EVP_PKEY_CTX_new() 716 int Openssl_EVP_PKEY_set1_DSA(EVP_PKEY *pkey, DSA *key) in Openssl_EVP_PKEY_set1_DSA() 724 DSA *Openssl_EVP_PKEY_get1_DSA(EVP_PKEY *pkey) in Openssl_EVP_PKEY_get1_DSA() 965 struct rsa_st *Openssl_EVP_PKEY_get1_RSA(EVP_PKEY *pkey) in Openssl_EVP_PKEY_get1_RSA() 970 int Openssl_EVP_PKEY_set1_RSA(EVP_PKEY *pkey, struct rsa_st *key) in Openssl_EVP_PKEY_set1_RSA() 975 int Openssl_EVP_PKEY_assign_RSA(EVP_PKEY *pkey, struct rsa_st *key) in Openssl_EVP_PKEY_assign_RSA()
|
/base/security/crypto_framework/plugin/openssl_plugin/key/asy_key_generator/src/ |
D | dsa_asy_key_generator_openssl.c | 470 static HcfResult GeneratePubKeyByPkey(EVP_PKEY *pkey, HcfOpensslDsaPubKey **returnPubKey) in GeneratePubKeyByPkey() 486 static HcfResult GeneratePriKeyByPkey(EVP_PKEY *pkey, HcfOpensslDsaPriKey **returnPriKey) in GeneratePriKeyByPkey() 505 EVP_PKEY *pkey = NULL; in GenerateDsaPubAndPriKey() local
|
/base/security/crypto_framework/plugin/openssl_plugin/crypto_operation/cipher/src/ |
D | cipher_rsa_openssl.c | 124 EVP_PKEY *pkey = NewEvpPkeyByRsa(rsa, false); in InitEvpPkeyCtx() local
|
/base/security/device_security_level/oem_property/common/ |
D | dslm_credential_utils.c | 538 EVP_PKEY *pkey = d2i_PUBKEY(NULL, &publicKey, pbkData->length); in EcdsaVerify() local
|
/base/security/crypto_framework/plugin/openssl_plugin/crypto_operation/signature/src/ |
D | signature_rsa_openssl.c | 176 EVP_PKEY *pkey = NewEvpPkeyByRsa(rsa, false); in InitRsaEvpKey() local
|