Home
last modified time | relevance | path

Searched refs:AsyKeySpecItem (Results 1 - 23 of 23) sorted by relevance

/base/security/crypto_framework/interfaces/inner_api/key/
H A Dpri_key.h27 HcfResult (*getAsyKeySpecBigInteger)(const HcfPriKey *self, const AsyKeySpecItem item,
30 HcfResult (*getAsyKeySpecString)(const HcfPriKey *self, const AsyKeySpecItem item, char **returnString);
32 HcfResult (*getAsyKeySpecInt)(const HcfPriKey *self, const AsyKeySpecItem item, int *returnInt);
H A Dpub_key.h27 HcfResult (*getAsyKeySpecBigInteger)(const HcfPubKey *self, const AsyKeySpecItem item,
30 HcfResult (*getAsyKeySpecString)(const HcfPubKey *self, const AsyKeySpecItem item, char **returnString);
32 HcfResult (*getAsyKeySpecInt)(const HcfPubKey *self, const AsyKeySpecItem item, int *returnInt);
H A Dkey.h58 } AsyKeySpecItem; typedef
/base/security/crypto_framework/plugin/openssl_plugin/common/inc/
H A Decc_openssl_common.h30 HcfResult GetCurveGFp(const EC_GROUP *group, const AsyKeySpecItem item, HcfBigInteger *returnBigInteger);
31 HcfResult GetGenerator(const EC_GROUP *group, const AsyKeySpecItem item, HcfBigInteger *returnBigInteger);
37 const AsyKeySpecItem item, HcfBigInteger *returnBigInteger);
/base/security/crypto_framework/test/unittest/src/ecc/
H A Dcrypto_ecc_asy_key_generator_by_spec_sub_three_test.cpp85 AsyKeySpecItem item = ECC_FIELD_TYPE_STR; in HWTEST_F()
115 AsyKeySpecItem item = ECC_FIELD_TYPE_STR; in HWTEST_F()
145 AsyKeySpecItem item = ECC_FIELD_TYPE_STR; in HWTEST_F()
175 AsyKeySpecItem item = ECC_FIELD_TYPE_STR; in HWTEST_F()
205 AsyKeySpecItem item = ECC_FIELD_TYPE_STR; in HWTEST_F()
235 AsyKeySpecItem item = ECC_FIELD_TYPE_STR; in HWTEST_F()
265 AsyKeySpecItem item = ECC_FIELD_TYPE_STR; in HWTEST_F()
295 AsyKeySpecItem item = ECC_FIELD_TYPE_STR; in HWTEST_F()
326 AsyKeySpecItem item = ECC_CURVE_NAME_STR; in HWTEST_F()
356 AsyKeySpecItem ite in HWTEST_F()
[all...]
H A Dcrypto_ecc_asy_key_generator_by_spec_sub_two_test.cpp65 AsyKeySpecItem item = ECC_A_BN; in HWTEST_F()
96 AsyKeySpecItem item = ECC_A_BN; in HWTEST_F()
127 AsyKeySpecItem item = ECC_A_BN; in HWTEST_F()
158 AsyKeySpecItem item = ECC_A_BN; in HWTEST_F()
189 AsyKeySpecItem item = ECC_A_BN; in HWTEST_F()
220 AsyKeySpecItem item = ECC_A_BN; in HWTEST_F()
251 AsyKeySpecItem item = ECC_A_BN; in HWTEST_F()
282 AsyKeySpecItem item = ECC_A_BN; in HWTEST_F()
314 AsyKeySpecItem item = ECC_B_BN; in HWTEST_F()
345 AsyKeySpecItem ite in HWTEST_F()
[all...]
H A Dcrypto_ecc_asy_key_generator_by_spec_sub_four_test.cpp89 AsyKeySpecItem item = ECC_FIELD_SIZE_INT; in HWTEST_F()
113 AsyKeySpecItem item = ECC_FIELD_TYPE_STR; in HWTEST_F()
138 AsyKeySpecItem item = ECC_FIELD_TYPE_STR; in HWTEST_F()
164 AsyKeySpecItem item = ECC_CURVE_NAME_STR; in HWTEST_F()
189 AsyKeySpecItem item = ECC_CURVE_NAME_STR; in HWTEST_F()
215 AsyKeySpecItem item = ECC_PK_X_BN; in HWTEST_F()
242 AsyKeySpecItem item = ECC_PK_Y_BN; in HWTEST_F()
269 AsyKeySpecItem item = ECC_SK_BN; in HWTEST_F()
H A Dcrypto_ecc_ecdh_pub_test.cpp1213 AsyKeySpecItem itemPkX = ECC_PK_X_BN; in HWTEST_F()
1214 AsyKeySpecItem itemPkY = ECC_PK_Y_BN; in HWTEST_F()
1256 AsyKeySpecItem itemPkX = ECC_PK_X_BN; in HWTEST_F()
1257 AsyKeySpecItem itemPkY = ECC_PK_Y_BN; in HWTEST_F()
1472 AsyKeySpecItem itemPkX = ECC_PK_X_BN; in HWTEST_F()
1473 AsyKeySpecItem itemPkY = ECC_PK_Y_BN; in HWTEST_F()
1512 AsyKeySpecItem itemPkX = ECC_PK_X_BN; in HWTEST_F()
1513 AsyKeySpecItem itemPkY = ECC_PK_Y_BN; in HWTEST_F()
1552 AsyKeySpecItem itemPkX = ECC_PK_X_BN; in HWTEST_F()
1553 AsyKeySpecItem itemPk in HWTEST_F()
[all...]
H A Dcrypto_ecc_asy_key_generator_by_spec_sub_one_test.cpp1631 AsyKeySpecItem item = ECC_FP_P_BN; in HWTEST_F()
1662 AsyKeySpecItem item = ECC_FP_P_BN; in HWTEST_F()
1693 AsyKeySpecItem item = ECC_FP_P_BN; in HWTEST_F()
1724 AsyKeySpecItem item = ECC_FP_P_BN; in HWTEST_F()
1755 AsyKeySpecItem item = ECC_FP_P_BN; in HWTEST_F()
1786 AsyKeySpecItem item = ECC_FP_P_BN; in HWTEST_F()
1817 AsyKeySpecItem item = ECC_FP_P_BN; in HWTEST_F()
1848 AsyKeySpecItem item = ECC_FP_P_BN; in HWTEST_F()
/base/security/crypto_framework/frameworks/native/src/
H A Dasym_key.c56 HcfResult (*getAsyKeySpecBigInteger)(const HcfPubKey *self, const AsyKeySpecItem item,
59 HcfResult (*getAsyKeySpecString)(const HcfPubKey *self, const AsyKeySpecItem item, char **returnString);
61 HcfResult (*getAsyKeySpecInt)(const HcfPubKey *self, const AsyKeySpecItem item, int *returnInt);
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()
/base/security/crypto_framework/frameworks/js/napi/crypto/src/
H A Dnapi_pri_key.cpp174 static napi_value GetAsyKeySpecBigInt(napi_env env, AsyKeySpecItem item, HcfPriKey *priKey) in GetAsyKeySpecBigInt()
195 static napi_value GetAsyKeySpecNumber(napi_env env, AsyKeySpecItem item, HcfPriKey *priKey) in GetAsyKeySpecNumber()
210 static napi_value GetAsyKeySpecString(napi_env env, AsyKeySpecItem item, HcfPriKey *priKey) in GetAsyKeySpecString()
240 AsyKeySpecItem item; in JsGetAsyKeySpec()
269 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "AsyKeySpecItem not support!")); in JsGetAsyKeySpec()
H A Dnapi_pub_key.cpp203 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()
268 AsyKeySpecItem item; in JsGetAsyKeySpec()
296 napi_throw(env, GenerateBusinessError(env, HCF_INVALID_PARAMS, "AsyKeySpecItem not support!")); in JsGetAsyKeySpec()
H A Dnapi_utils.cpp37 AsyKeySpecItem item;
77 int32_t GetAsyKeySpecType(AsyKeySpecItem targetItemType) in GetAsyKeySpecType()
84 LOGE("AsyKeySpecItem not support! ItemType: %d", targetItemType); in GetAsyKeySpecType()
/base/security/crypto_framework/plugin/openssl_plugin/common/src/
H A Decc_openssl_common.c290 HcfResult GetCurveGFp(const EC_GROUP *group, const AsyKeySpecItem item, HcfBigInteger *returnBigInteger) in GetCurveGFp()
332 HcfResult GetGenerator(const EC_GROUP *group, const AsyKeySpecItem item, HcfBigInteger *returnBigInteger) in GetGenerator()
456 static HcfResult GetPubKeyXOrY(const EC_GROUP *group, const EC_POINT *point, const AsyKeySpecItem item, in GetPubKeyXOrY()
493 const AsyKeySpecItem item, HcfBigInteger *returnBigInteger) in GetPkSkBigInteger()
/base/security/crypto_framework/plugin/openssl_plugin/key/asy_key_generator/src/
H A Dsm2_asy_key_generator_openssl.c592 static HcfResult GetSm2KeySpecBigInteger(const HcfKey *self, const AsyKeySpecItem item, in GetSm2KeySpecBigInteger()
641 static HcfResult GetSm2KeySpecString(const HcfKey *self, const AsyKeySpecItem item, char **returnString) in GetSm2KeySpecString()
669 static HcfResult GetSm2KeySpecInt(const HcfKey *self, const AsyKeySpecItem item, int *returnInt) in GetSm2KeySpecInt()
706 static HcfResult GetSm2PubKeySpecBigInteger(const HcfPubKey *self, const AsyKeySpecItem item, in GetSm2PubKeySpecBigInteger()
712 static HcfResult GetSm2PriKeySpecBigInteger(const HcfPriKey *self, const AsyKeySpecItem item, in GetSm2PriKeySpecBigInteger()
718 static HcfResult GetSm2PubKeySpecString(const HcfPubKey *self, const AsyKeySpecItem item, char **returnString) in GetSm2PubKeySpecString()
723 static HcfResult GetSm2PriKeySpecString(const HcfPriKey *self, const AsyKeySpecItem item, char **returnString) in GetSm2PriKeySpecString()
728 static HcfResult GetSm2PubKeySpecInt(const HcfPubKey *self, const AsyKeySpecItem item, int *returnInt) in GetSm2PubKeySpecInt()
733 static HcfResult GetSm2PriKeySpecInt(const HcfPriKey *self, const AsyKeySpecItem item, int *returnInt) in GetSm2PriKeySpecInt()
H A Dalg_25519_asy_key_generator_openssl.c293 static HcfResult CheckEvpKeyTypeFromAlg25519PubKey(EVP_PKEY *alg25519Pk, const AsyKeySpecItem item) in CheckEvpKeyTypeFromAlg25519PubKey()
302 LOGE("Invalid AsyKeySpecItem."); in CheckEvpKeyTypeFromAlg25519PubKey()
308 static HcfResult CheckEvpKeyTypeFromAlg25519PriKey(EVP_PKEY *alg25519Sk, const AsyKeySpecItem item) in CheckEvpKeyTypeFromAlg25519PriKey()
317 LOGE("Invalid AsyKeySpecItem."); in CheckEvpKeyTypeFromAlg25519PriKey()
323 static HcfResult GetBigIntegerSpecFromAlg25519PubKey(const HcfPubKey *self, const AsyKeySpecItem item, in GetBigIntegerSpecFromAlg25519PubKey()
375 static HcfResult GetBigIntegerSpecFromAlg25519PriKey(const HcfPriKey *self, const AsyKeySpecItem item, in GetBigIntegerSpecFromAlg25519PriKey()
405 static HcfResult GetIntSpecFromAlg25519PubKey(const HcfPubKey *self, const AsyKeySpecItem item, int *returnInt) in GetIntSpecFromAlg25519PubKey()
412 static HcfResult GetIntSpecFromAlg25519PriKey(const HcfPriKey *self, const AsyKeySpecItem item, int *returnInt) in GetIntSpecFromAlg25519PriKey()
419 static HcfResult GetStrSpecFromAlg25519PubKey(const HcfPubKey *self, const AsyKeySpecItem item, char **returnString) in GetStrSpecFromAlg25519PubKey()
426 static HcfResult GetStrSpecFromAlg25519PriKey(const HcfPriKey *self, const AsyKeySpecItem ite
[all...]
H A Ddh_asy_key_generator_openssl.c275 static HcfResult GetBigIntegerSpec(const HcfPubKey *pubSelf, const HcfPriKey *priSelf, const AsyKeySpecItem item, in GetBigIntegerSpec()
320 static HcfResult GetBigIntegerSpecFromDhPubKey(const HcfPubKey *self, const AsyKeySpecItem item, in GetBigIntegerSpecFromDhPubKey()
338 static HcfResult GetBigIntegerSpecFromDhPriKey(const HcfPriKey *self, const AsyKeySpecItem item, in GetBigIntegerSpecFromDhPriKey()
356 static HcfResult GetIntSpecFromDhPubKey(const HcfPubKey *self, const AsyKeySpecItem item, int *returnInt) in GetIntSpecFromDhPubKey()
363 static HcfResult GetIntSpecFromDhPriKey(const HcfPriKey *self, const AsyKeySpecItem item, int *returnInt) in GetIntSpecFromDhPriKey()
388 static HcfResult GetStrSpecFromDhPubKey(const HcfPubKey *self, const AsyKeySpecItem item, char **returnString) in GetStrSpecFromDhPubKey()
395 static HcfResult GetStrSpecFromDhPriKey(const HcfPriKey *self, const AsyKeySpecItem item, char **returnString) in GetStrSpecFromDhPriKey()
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()
143 static HcfResult GetRsaPriKeySpecString(const HcfPriKey *self, const AsyKeySpecItem item, in GetRsaPriKeySpecString()
152 static HcfResult GetRsaPriKeySpecInt(const HcfPriKey *self, const AsyKeySpecItem item, in GetRsaPriKeySpecInt()
168 static HcfResult GetRsaPriKeySpecBigInteger(const HcfPriKey *self, const AsyKeySpecItem item, in GetRsaPriKeySpecBigInteger()
214 static HcfResult GetRsaPubKeySpecBigInteger(const HcfPubKey *self, const AsyKeySpecItem item, in GetRsaPubKeySpecBigInteger()
H A Ddsa_asy_key_generator_openssl.c250 static HcfResult GetBigIntegerSpecFromDsaPubKey(const HcfPubKey *self, const AsyKeySpecItem item, in GetBigIntegerSpecFromDsaPubKey()
288 static HcfResult GetBigIntegerSpecFromDsaPriKey(const HcfPriKey *self, const AsyKeySpecItem item, in GetBigIntegerSpecFromDsaPriKey()
326 static HcfResult GetIntSpecFromDsaPubKey(const HcfPubKey *self, const AsyKeySpecItem item, int *returnInt) in GetIntSpecFromDsaPubKey()
333 static HcfResult GetIntSpecFromDsaPriKey(const HcfPriKey *self, const AsyKeySpecItem item, int *returnInt) in GetIntSpecFromDsaPriKey()
340 static HcfResult GetStrSpecFromDsaPubKey(const HcfPubKey *self, const AsyKeySpecItem item, char **returnString) in GetStrSpecFromDsaPubKey()
347 static HcfResult GetStrSpecFromDsaPriKey(const HcfPriKey *self, const AsyKeySpecItem item, char **returnString) in GetStrSpecFromDsaPriKey()
H A Decc_asy_key_generator_openssl.c1472 static HcfResult GetEcKeySpecBigInteger(const HcfKey *self, const AsyKeySpecItem item, in GetEcKeySpecBigInteger()
1517 static HcfResult GetEcKeySpecString(const HcfKey *self, const AsyKeySpecItem item, char **returnString) in GetEcKeySpecString()
1545 static HcfResult GetEcKeySpecInt(const HcfKey *self, const AsyKeySpecItem item, int *returnInt) in GetEcKeySpecInt()
1578 static HcfResult GetECPubKeySpecBigInteger(const HcfPubKey *self, const AsyKeySpecItem item, in GetECPubKeySpecBigInteger()
1584 static HcfResult GetECPubKeySpecString(const HcfPubKey *self, const AsyKeySpecItem item, char **returnString) in GetECPubKeySpecString()
1589 static HcfResult GetECPubKeySpecInt(const HcfPubKey *self, const AsyKeySpecItem item, int *returnInt) in GetECPubKeySpecInt()
1594 static HcfResult GetECPriKeySpecBigInteger(const HcfPriKey *self, const AsyKeySpecItem item, in GetECPriKeySpecBigInteger()
1600 static HcfResult GetECPriKeySpecString(const HcfPriKey *self, const AsyKeySpecItem item, char **returnString) in GetECPriKeySpecString()
1605 static HcfResult GetECPriKeySpecInt(const HcfPriKey *self, const AsyKeySpecItem item, int *returnInt) in GetECPriKeySpecInt()
/base/security/crypto_framework/frameworks/cj/src/
H A Dcrypto_ffi.cpp1416 AsyKeySpecItem item = AsyKeySpecItem(itemType); in FFiOHOSPriKeyGetAsyKeySpecByNum()
1438 AsyKeySpecItem item = AsyKeySpecItem(itemType); in FFiOHOSPriKeyGetAsyKeySpecByStr()
1460 AsyKeySpecItem item = AsyKeySpecItem(itemType); in FFiOHOSPriKeyGetAsyKeySpecByBigInt()
1560 AsyKeySpecItem item = AsyKeySpecItem(itemType); in FFiOHOSPubKeyGetAsyKeySpecByNum()
1582 AsyKeySpecItem item = AsyKeySpecItem(itemTyp in FFiOHOSPubKeyGetAsyKeySpecByStr()
[all...]
/base/security/crypto_framework/frameworks/js/napi/crypto/inc/
H A Dnapi_utils.h78 int32_t GetAsyKeySpecType(AsyKeySpecItem targetItemType);
/base/security/crypto_framework/test/unittest/src/sm2/
H A Dcrypto_sm2_asy_key_generator_by_spec_sub_test.cpp1031 AsyKeySpecItem item = ECC_CURVE_NAME_STR; in HWTEST_F()
1090 AsyKeySpecItem item = ECC_FIELD_TYPE_STR; in HWTEST_F()
1121 AsyKeySpecItem item = ECC_FIELD_TYPE_STR; in HWTEST_F()
1151 AsyKeySpecItem item = ECC_FIELD_SIZE_INT; in HWTEST_F()

Completed in 37 milliseconds