Home
last modified time | relevance | path

Searched refs:sm2EvpPkey (Results 1 – 2 of 2) sorted by relevance

/base/security/huks/frameworks/huks_standard/main/crypto_engine/openssl/src/
Dhks_openssl_sm2.c305 EVP_PKEY *sm2EvpPkey = NULL; in Sm2InitKey()
328 ret = EVP_PKEY_fromdata(ctx, &sm2EvpPkey, EVP_PKEY_KEYPAIR, params); in Sm2InitKey()
331 ret = EVP_PKEY_fromdata(ctx, &sm2EvpPkey, EVP_PKEY_PUBLIC_KEY, params); in Sm2InitKey()
337 SELF_FREE_PTR(sm2EvpPkey, EVP_PKEY_free) in Sm2InitKey()
342 return sm2EvpPkey; in Sm2InitKey()
/base/security/huks/utils/crypto_adapter/
Dhks_client_service_adapter.c290 EVP_PKEY *sm2EvpPkey = NULL; in Sm2ToX509PublicKey() local
311 ret = EVP_PKEY_fromdata(ctx, &sm2EvpPkey, EVP_PKEY_PUBLIC_KEY, params); in Sm2ToX509PublicKey()
319 if (sm2EvpPkey == NULL) { in Sm2ToX509PublicKey()
324 int32_t ret = EvpKeyToX509Format(sm2EvpPkey, x509Key); in Sm2ToX509PublicKey()
328 SELF_FREE_PTR(sm2EvpPkey, EVP_PKEY_free) in Sm2ToX509PublicKey()