Home
last modified time | relevance | path

Searched defs:pkey (Results 1 – 22 of 22) sorted by relevance

/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/alg_module_test/src/
Dopenssl_rsa_helper.c29 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
Dopenssl_dsa_helper.c46 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()
Dopenssl_dh_helper.c225 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
Dhks_rsa_common_mt.cpp197 EVP_PKEY *pkey = GenerateRsaKey(testCaseParams.keySize); in EncryptServiceTestCase() local
571 EVP_PKEY *pkey = GenerateRsaKey(testCaseParams.keySize); in VerifyServiceTestCase() local
Dopenssl_ecc_helper.c515 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
Dhks_dsa_mt.cpp896 EVP_PKEY *pkey = GenerateDsaKey(KEY_SIZE_1024); in VerifyServiceTestCase() local
/base/security/certificate_manager/test/unittest/module_test/src/
Dcm_cert_parse_test.cpp423 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/
Dhks_client_service_adapter.c54 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/
Dcm_pfx.c84 int32_t CmParsePkcs12Cert(const struct CmBlob *p12Cert, char *passWd, EVP_PKEY **pkey, struct AppCe… in CmParsePkcs12Cert()
/base/startup/hvb/libhvb/src/crypto/
Dhvb_rsa_verify.c288 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/
Dhap_verify_openssl_utils.cpp215 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()
Dhap_cert_verify_openssl_utils.cpp142 EVP_PKEY *pkey = X509_get0_pubkey(cert); in GetPublickeyBase64() local
/base/security/huks/frameworks/huks_standard/main/crypto_engine/openssl/src/
Dhks_openssl_sm2.c53 static int32_t EvpPkeyToKeyMaterialEc(const struct HksKeySpec *spec, const EVP_PKEY *pkey, struct H… in EvpPkeyToKeyMaterialEc()
127 EVP_PKEY *pkey = NULL; in HksOpensslSm2GenerateKey() local
Dhks_openssl_curve25519.c78 EVP_PKEY *pkey = NULL; in HksOpensslCurve25519GenerateKey() local
Dhks_openssl_rsa.c487 EVP_PKEY *pkey = NULL; in InitRsaCtx() local
Dhks_openssl_engine.c519 int32_t GetBnBinpadFromPkey(const EVP_PKEY *pkey, const char *keyName, struct HksBlob *out) in GetBnBinpadFromPkey()
/base/security/crypto_framework/plugin/openssl_plugin/common/src/
Dopenssl_adapter.c300 …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/
Dopenssl_adapter_mock.c474 …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/
Ddsa_asy_key_generator_openssl.c470 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/
Dcipher_rsa_openssl.c124 EVP_PKEY *pkey = NewEvpPkeyByRsa(rsa, false); in InitEvpPkeyCtx() local
/base/security/device_security_level/oem_property/common/
Ddslm_credential_utils.c538 EVP_PKEY *pkey = d2i_PUBKEY(NULL, &publicKey, pbkData->length); in EcdsaVerify() local
/base/security/crypto_framework/plugin/openssl_plugin/crypto_operation/signature/src/
Dsignature_rsa_openssl.c176 EVP_PKEY *pkey = NewEvpPkeyByRsa(rsa, false); in InitRsaEvpKey() local