Home
last modified time | relevance | path

Searched refs:eccCommSpec (Results 1 – 8 of 8) sorted by relevance

/ohos5.0/base/security/crypto_framework/test/unittest/src/
H A Decc_common_param_spec.c28 HcfEccCommParamsSpec *eccCommSpec = NULL; in ConstructEccKeyPairCommParamsSpec() local
29 HcfEccKeyUtilCreate(algoName, &eccCommSpec); in ConstructEccKeyPairCommParamsSpec()
30 if (eccCommSpec == NULL) { in ConstructEccKeyPairCommParamsSpec()
33 *spec = eccCommSpec; in ConstructEccKeyPairCommParamsSpec()
75 if (eccCommSpec == NULL) { in ConstructEccKeyPairParamsSpec()
93 eccKeyPairSpec->base.field = eccCommSpec->field; in ConstructEccKeyPairParamsSpec()
107 eccKeyPairSpec->base.h = eccCommSpec->h; in ConstructEccKeyPairParamsSpec()
145 if (eccCommSpec == NULL) { in ConstructEccPubKeyParamsSpec()
179 eccPubKeySpec->base.h = eccCommSpec->h; in ConstructEccPubKeyParamsSpec()
196 if (eccCommSpec == NULL) { in ConstructEccPriKeyParamsSpec()
[all …]
H A Dcrypto_key_utils_test.cpp49 HcfEccCommParamsSpec *eccCommSpec = in ConstructEcc224CommParamsSpec() local
51 if (eccCommSpec == nullptr) { in ConstructEcc224CommParamsSpec()
56 HcfFree(eccCommSpec); in ConstructEcc224CommParamsSpec()
61 eccCommSpec->base.specType = HCF_COMMON_PARAMS_SPEC; in ConstructEcc224CommParamsSpec()
67 eccCommSpec->a.len = NID_secp224r1_len; in ConstructEcc224CommParamsSpec()
69 eccCommSpec->b.len = NID_secp224r1_len; in ConstructEcc224CommParamsSpec()
71 eccCommSpec->g.x.len = NID_secp224r1_len; in ConstructEcc224CommParamsSpec()
73 eccCommSpec->g.y.len = NID_secp224r1_len; in ConstructEcc224CommParamsSpec()
75 eccCommSpec->n.len = NID_secp224r1_len; in ConstructEcc224CommParamsSpec()
76 eccCommSpec->h = g_ecc224CorrectH; in ConstructEcc224CommParamsSpec()
[all …]
H A Dcrypto_asy_key_generator_cov_test.cpp524 if (eccCommSpec == nullptr) { in ConstructEcc224CommParamsSpec()
529 HcfFree(eccCommSpec); in ConstructEcc224CommParamsSpec()
551 *spec = eccCommSpec; in ConstructEcc224CommParamsSpec()
1108 FreeEccCommSpec(eccCommSpec);
1125 FreeEccCommSpec(eccCommSpec);
1135 eccCommSpec->a.len = 0;
1167 eccCommSpec->b.len = 0;
1199 eccCommSpec->n.len = 0;
1231 eccCommSpec->g.x.len = 0;
1263 eccCommSpec->g.y.len = 0;
[all …]
/ohos5.0/base/security/crypto_framework/test/unittest/src/ecc/
H A Decc_asy_key_common.cpp42 eccCommSpec->field = tmpField; in ConstructEcc192CommParamsSpec()
57 eccCommSpec->h = g_ecc192CorrectH; in ConstructEcc192CommParamsSpec()
70 eccCommSpec->field = tmpField; in ConstructEcc224CommParamsSpec()
194 eccCommSpec->field = tmpField; in ConstructEcc256CommParamsSpec()
318 eccCommSpec->field = tmpField; in ConstructEcc384CommParamsSpec()
442 eccCommSpec->field = tmpField; in ConstructEcc521CommParamsSpec()
574 eccCommSpec->b.len = 0; in ConstructEcc224ErrCommParamsSpec()
601 eccCommSpec->b.data = 0; in ConstructEcc256ErrCommParamsSpec()
602 eccCommSpec->b.len = 0; in ConstructEcc256ErrCommParamsSpec()
630 eccCommSpec->b.len = 0; in ConstructEcc384ErrCommParamsSpec()
[all …]
/ohos5.0/base/security/crypto_framework/test/fuzztest/key/asykeygenerator_fuzzer/
H A Dasykeygenerator_fuzzer.cpp505 eccCommSpec->field = tmpField; in ConstructEcc224CommParamsSpec()
511 eccCommSpec->a.len = NID_secp224r1_len; in ConstructEcc224CommParamsSpec()
513 eccCommSpec->b.len = NID_secp224r1_len; in ConstructEcc224CommParamsSpec()
515 eccCommSpec->g.x.len = NID_secp224r1_len; in ConstructEcc224CommParamsSpec()
517 eccCommSpec->g.y.len = NID_secp224r1_len; in ConstructEcc224CommParamsSpec()
519 eccCommSpec->n.len = NID_secp224r1_len; in ConstructEcc224CommParamsSpec()
520 eccCommSpec->h = g_ecc224CorrectH; in ConstructEcc224CommParamsSpec()
627 if (eccCommSpec == nullptr) { in ConstructSm2256CommParamsSpec()
630 *spec = eccCommSpec; in ConstructSm2256CommParamsSpec()
691 eccPubKeySpec->base.h = eccCommSpec->h; in ConstructSm2256PubKeyParamsSpec()
[all …]
/ohos5.0/base/security/crypto_framework/test/unittest/include/
H A Decc_common_param_spec.h29 HcfResult ConstructEccKeyPairParamsSpec(const char *algoName, HcfEccCommParamsSpec *eccCommSpec,
31 HcfResult ConstructEccPubKeyParamsSpec(const char *algoName, HcfEccCommParamsSpec *eccCommSpec,
33 HcfResult ConstructEccPriKeyParamsSpec(const char *algoName, HcfEccCommParamsSpec *eccCommSpec,
/ohos5.0/base/security/crypto_framework/test/unittest/src/sm2/
H A Dcrypto_sm2_asy_key_generator_by_spec_sub_test.cpp89 HcfEccCommParamsSpec *eccCommSpec = nullptr; in ConstructSm2256CommParamsSpec() local
90 HcfEccKeyUtilCreate(g_sm2CurveName.c_str(), &eccCommSpec); in ConstructSm2256CommParamsSpec()
91 if (eccCommSpec == nullptr) { in ConstructSm2256CommParamsSpec()
94 *spec = (HcfAsyKeyParamsSpec *)eccCommSpec; in ConstructSm2256CommParamsSpec()
H A Dcrypto_sm2_asy_key_generator_by_spec_test.cpp74 HcfEccCommParamsSpec *eccCommSpec = nullptr; in ConstructSm2256CommParamsSpec() local
75 HcfEccKeyUtilCreate(g_sm2CurveName.c_str(), &eccCommSpec); in ConstructSm2256CommParamsSpec()
76 if (eccCommSpec == nullptr) { in ConstructSm2256CommParamsSpec()
79 *spec = (HcfAsyKeyParamsSpec *)eccCommSpec; in ConstructSm2256CommParamsSpec()