Searched refs:eccKey (Results 1 – 3 of 3) sorted by relevance
/ohos5.0/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/alg_module_test/src/ |
H A D | openssl_ecc_helper.c | 140 if (eccKey == NULL) { in EccGenerateKey() 145 EC_KEY_free(eccKey); in EccGenerateKey() 150 EC_KEY_free(eccKey); in EccGenerateKey() 154 EC_KEY_free(eccKey); in EccGenerateKey() 234 if (eccKey == NULL) { in EccInitKey() 257 return eccKey; in EccInitKey() 265 if (eccKey == NULL) { in InitEccMdCtx() 343 if (eccKey == NULL) { in InitEcdsaCtx() 553 if (eccKey == NULL) { in HksBlobToX509() 597 if (eccKey == NULL) { in GetNativePkey() [all …]
|
/ohos5.0/base/security/huks/frameworks/huks_standard/main/crypto_engine/openssl/src/ |
H A D | hks_openssl_ecc.c | 176 EC_KEY *eccKey = NULL; in HksOpensslEccGenerateKey() 180 if (eccKey == NULL) { in HksOpensslEccGenerateKey() 196 if (eccKey != NULL) { in HksOpensslEccGenerateKey() 197 EC_KEY_free(eccKey); in HksOpensslEccGenerateKey() 198 eccKey = NULL; in HksOpensslEccGenerateKey() 310 if (eccKey == NULL) { in EccInitKey() 318 EC_KEY_free(eccKey); in EccInitKey() 334 return eccKey; in EccInitKey() 344 EC_KEY_free(eccKey); in GetEvpKey() 465 EC_KEY_free(eccKey); in InitEcdsaCtx() [all …]
|
/ohos5.0/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/ |
H A D | cert_manager_app_cert_process.c | 50 static int32_t TransEccKeyToKeyBlob(const EC_KEY *eccKey, const struct HksKeyMaterialEcc *keyMateri… in TransEccKeyToKeyBlob() argument 63 const EC_GROUP *ecGroup = EC_KEY_get0_group(eccKey); in TransEccKeyToKeyBlob() 64 …int retCode = EC_POINT_get_affine_coordinates_GFp(ecGroup, EC_KEY_get0_public_key(eccKey), pubX, p… in TransEccKeyToKeyBlob() 85 const BIGNUM *priv = EC_KEY_get0_private_key(eccKey); in TransEccKeyToKeyBlob() 103 static int32_t SaveKeyMaterialEcc(const EC_KEY *eccKey, const uint32_t keySize, struct CmBlob *keyO… in SaveKeyMaterialEcc() argument 126 int32_t ret = TransEccKeyToKeyBlob(eccKey, keyMaterial, &rawMaterial); in SaveKeyMaterialEcc() 276 const EC_KEY *eccKey = EVP_PKEY_get0_EC_KEY((EVP_PKEY *)priKey); in ImportEccKey() local 277 if (eccKey == NULL) { in ImportEccKey() 283 uint32_t keyLen = (uint32_t)EC_GROUP_order_bits(EC_KEY_get0_group(eccKey)); in ImportEccKey() 284 ret = SaveKeyMaterialEcc(eccKey, keyLen, &keyPair); in ImportEccKey()
|