Home
last modified time | relevance | path

Searched refs:HCF_KEY_PAIR_SPEC (Results 1 – 25 of 33) sorted by relevance

12

/ohos5.0/base/security/crypto_framework/test/unittest/src/
H A Drsa_common_param_spec.cpp98 returnPairSpec->base.base.specType = HCF_KEY_PAIR_SPEC; in GenerateRsa512CorrectKeyPairSpec()
149 returnPairSpec->base.base.specType = HCF_KEY_PAIR_SPEC; in GenerateRsa768CorrectKeyPairSpec()
200 returnPairSpec->base.base.specType = HCF_KEY_PAIR_SPEC; in GenerateRsa1024CorrectKeyPairSpec()
251 returnPairSpec->base.base.specType = HCF_KEY_PAIR_SPEC; in GenerateRsa2048CorrectKeyPairSpec()
302 returnPairSpec->base.base.specType = HCF_KEY_PAIR_SPEC; in GenerateRsa3072CorrectKeyPairSpec()
353 returnPairSpec->base.base.specType = HCF_KEY_PAIR_SPEC; in GenerateRsa4096CorrectKeyPairSpec()
404 returnPairSpec->base.base.specType = HCF_KEY_PAIR_SPEC; in GenerateRsa8192CorrectKeyPairSpec()
H A Dcrypto_ecc_key_agreement_by_spec_test.cpp83 eccKeyPairSpec->base.base.specType = HCF_KEY_PAIR_SPEC; in ConstructEcc224KeyPairParamsSpec()
117 eccKeyPairSpec->base.base.specType = HCF_KEY_PAIR_SPEC; in ConstructEcc256KeyPairParamsSpec()
151 eccKeyPairSpec->base.base.specType = HCF_KEY_PAIR_SPEC; in ConstructEcc384KeyPairParamsSpec()
185 eccKeyPairSpec->base.base.specType = HCF_KEY_PAIR_SPEC; in ConstructEcc521KeyPairParamsSpec()
H A Dcrypto_asy_key_generator_cov_test.cpp269 .specType = HCF_KEY_PAIR_SPEC
273 .specType = HCF_KEY_PAIR_SPEC
277 .specType = HCF_KEY_PAIR_SPEC
512 returnPairSpec->base.base.specType = HCF_KEY_PAIR_SPEC; in GenerateRsa2048CorrectKeyPairSpec()
647 eccKeyPairSpec->base.base.specType = HCF_KEY_PAIR_SPEC; in ConstructEcc224KeyPairParamsSpec()
H A Dalg_25519_common_param_spec.c67 alg25519KeyPairSpec->base.specType = HCF_KEY_PAIR_SPEC; in ConstructAlg25519KeyPairParamsSpec()
H A Decc_common_param_spec.c92 eccKeyPairSpec->base.base.specType = HCF_KEY_PAIR_SPEC; in ConstructEccKeyPairParamsSpec()
H A Dcrypto_dsa_exception_test.cpp184 .specType = HCF_KEY_PAIR_SPEC
H A Dcrypto_rsa_cipher_sub_test.cpp153 returnPairSpec->base.base.specType = HCF_KEY_PAIR_SPEC; in GenerateRsa2048CorrectKeyPairSpec()
H A Dcrypto_rsa_asy_key_generator_by_spec_cov_test.cpp160 returnPairSpec->base.base.specType = HCF_KEY_PAIR_SPEC; in GenerateRsa2048CorrectKeyPairSpec()
/ohos5.0/base/security/crypto_framework/common/src/
H A Dasy_key_params.c293 case HCF_KEY_PAIR_SPEC: in DestroyDsaParamsSpec()
314 case HCF_KEY_PAIR_SPEC: in DestroyDhParamsSpec()
335 case HCF_KEY_PAIR_SPEC: in DestroyEccParamsSpec()
353 case HCF_KEY_PAIR_SPEC: in DestroyRsaParamsSpec()
427 case HCF_KEY_PAIR_SPEC: in DestroyAlg25519ParamsSpec()
/ohos5.0/base/security/crypto_framework/interfaces/innerkits/algorithm_parameter/
H A Dasy_key_params.h23 HCF_KEY_PAIR_SPEC = 3, enumerator
/ohos5.0/base/security/crypto_framework/frameworks/key/
H A Dasy_key_generator.c190 case HCF_KEY_PAIR_SPEC: in IsDsaParamsSpecValid()
266 case HCF_KEY_PAIR_SPEC: in IsDhParamsSpecValid()
366 case HCF_KEY_PAIR_SPEC: in IsEccParamsSpecValid()
417 case HCF_KEY_PAIR_SPEC: in IsAlg25519ParamsSpecValid()
474 case HCF_KEY_PAIR_SPEC: in IsRsaParamsSpecValid()
699 case HCF_KEY_PAIR_SPEC: in CreateDsaParamsSpecImpl()
813 case HCF_KEY_PAIR_SPEC: in CreateDhParamsSpecImpl()
923 case HCF_KEY_PAIR_SPEC: in CreateEccParamsSpecImpl()
1024 case HCF_KEY_PAIR_SPEC: in CreateRsaParamsSpecImpl()
1146 case HCF_KEY_PAIR_SPEC: in CreateAlg25519ParamsSpecImpl()
/ohos5.0/base/security/crypto_framework/frameworks/js/napi/crypto/src/
H A Dnapi_utils.cpp682 spec->base.base.specType = HCF_KEY_PAIR_SPEC; in GetDsaKeyPairAsyKeySpec()
724 } else if (asyKeySpecType == HCF_KEY_PAIR_SPEC) { in GetDsaAsyKeySpec()
969 spec->base.base.specType = HCF_KEY_PAIR_SPEC; in GetEccKeyPairAsyKeySpec()
1015 } else if (asyKeySpecType == HCF_KEY_PAIR_SPEC) { in GetEccAsyKeySpec()
1098 spec->base.base.specType = HCF_KEY_PAIR_SPEC; in GetRsaKeyPairAsyKeySpec()
1141 } else if (asyKeySpecType == HCF_KEY_PAIR_SPEC) { in GetRsaAsyKeySpec()
1225 spec->base.specType = HCF_KEY_PAIR_SPEC; in GetAlg25519KeyPairAsyKeySpec()
1265 } else if (asyKeySpecType == HCF_KEY_PAIR_SPEC) { in GetAlg25519AsyKeySpec()
1416 spec->base.base.specType = HCF_KEY_PAIR_SPEC; in GetDhKeyPairAsyKeySpec()
1458 } else if (asyKeySpecType == HCF_KEY_PAIR_SPEC) { in GetDh25519AsyKeySpec()
H A Dnapi_init.cpp144 AddUint32Property(env, code, "KEY_PAIR_SPEC", HCF_KEY_PAIR_SPEC); in CreateAsyKeySpecTypeCode()
/ohos5.0/base/security/crypto_framework/test/unittest/src/ecc/
H A Decc_asy_key_common.cpp159 eccKeyPairSpec->base.base.specType = HCF_KEY_PAIR_SPEC; in ConstructEcc224KeyPairParamsSpec()
283 eccKeyPairSpec->base.base.specType = HCF_KEY_PAIR_SPEC; in ConstructEcc256KeyPairParamsSpec()
407 eccKeyPairSpec->base.base.specType = HCF_KEY_PAIR_SPEC; in ConstructEcc384KeyPairParamsSpec()
531 eccKeyPairSpec->base.base.specType = HCF_KEY_PAIR_SPEC; in ConstructEcc521KeyPairParamsSpec()
677 eccKeyPairSpec->base.base.specType = HCF_KEY_PAIR_SPEC; in ConstructEcc384ErrKeyPairParamsSpec()
709 eccKeyPairSpec->base.base.specType = HCF_KEY_PAIR_SPEC; in ConstructEcc521ErrKeyPairParamsSpec()
H A Dcrypto_ecc_no_length_sign_sub_test.cpp86 eccKeyPairSpec->base.base.specType = HCF_KEY_PAIR_SPEC; in ConstructEcc224KeyPairParamsSpec()
120 eccKeyPairSpec->base.base.specType = HCF_KEY_PAIR_SPEC; in ConstructEcc256KeyPairParamsSpec()
154 eccKeyPairSpec->base.base.specType = HCF_KEY_PAIR_SPEC; in ConstructEcc384KeyPairParamsSpec()
188 eccKeyPairSpec->base.base.specType = HCF_KEY_PAIR_SPEC; in ConstructEcc521KeyPairParamsSpec()
H A Dcrypto_ecc_no_length_sign_test.cpp86 eccKeyPairSpec->base.base.specType = HCF_KEY_PAIR_SPEC; in ConstructEcc224KeyPairParamsSpec()
120 eccKeyPairSpec->base.base.specType = HCF_KEY_PAIR_SPEC; in ConstructEcc256KeyPairParamsSpec()
154 eccKeyPairSpec->base.base.specType = HCF_KEY_PAIR_SPEC; in ConstructEcc384KeyPairParamsSpec()
188 eccKeyPairSpec->base.base.specType = HCF_KEY_PAIR_SPEC; in ConstructEcc521KeyPairParamsSpec()
H A Dcrypto_ecc_no_length_verify_test.cpp89 eccKeyPairSpec->base.base.specType = HCF_KEY_PAIR_SPEC; in ConstructEcc224KeyPairParamsSpec()
123 eccKeyPairSpec->base.base.specType = HCF_KEY_PAIR_SPEC; in ConstructEcc256KeyPairParamsSpec()
157 eccKeyPairSpec->base.base.specType = HCF_KEY_PAIR_SPEC; in ConstructEcc384KeyPairParamsSpec()
191 eccKeyPairSpec->base.base.specType = HCF_KEY_PAIR_SPEC; in ConstructEcc521KeyPairParamsSpec()
H A Dcrypto_ecc_no_length_verify_sub_test.cpp89 eccKeyPairSpec->base.base.specType = HCF_KEY_PAIR_SPEC; in ConstructEcc224KeyPairParamsSpec()
123 eccKeyPairSpec->base.base.specType = HCF_KEY_PAIR_SPEC; in ConstructEcc256KeyPairParamsSpec()
157 eccKeyPairSpec->base.base.specType = HCF_KEY_PAIR_SPEC; in ConstructEcc384KeyPairParamsSpec()
191 eccKeyPairSpec->base.base.specType = HCF_KEY_PAIR_SPEC; in ConstructEcc521KeyPairParamsSpec()
/ohos5.0/base/security/crypto_framework/plugin/openssl_plugin/key/asy_key_generator/src/
H A Ddsa_asy_key_generator_openssl.c918 …(paramsSpec->specType != HCF_COMMON_PARAMS_SPEC) && (paramsSpec->specType != HCF_KEY_PAIR_SPEC))) { in EngineGenerateDsaKeyPairBySpec()
942 … ((paramsSpec->specType != HCF_PUBLIC_KEY_SPEC) && (paramsSpec->specType != HCF_KEY_PAIR_SPEC))) { in EngineGenerateDsaPubKeyBySpec()
964 …mp(paramsSpec->algName, ALGORITHM_NAME_DSA) != 0) || (paramsSpec->specType != HCF_KEY_PAIR_SPEC)) { in EngineGenerateDsaPriKeyBySpec()
H A Drsa_asy_key_generator_openssl.c1199 if (paramsSpec->specType == HCF_KEY_PAIR_SPEC) { in ParseRsaBnFromBin()
1374 if (paramsSpec->specType != HCF_KEY_PAIR_SPEC) { in EngineGenerateKeyPairBySpec()
1396 if (paramsSpec->specType != HCF_PUBLIC_KEY_SPEC && paramsSpec->specType != HCF_KEY_PAIR_SPEC) { in EngineGeneratePubKeyBySpec()
1418 if (paramsSpec->specType != HCF_KEY_PAIR_SPEC) { in EngineGeneratePriKeyBySpec()
H A Ddh_asy_key_generator_openssl.c1064 …(paramsSpec->specType != HCF_COMMON_PARAMS_SPEC) && (paramsSpec->specType != HCF_KEY_PAIR_SPEC))) { in EngineGenerateDhKeyPairBySpec()
1089 … ((paramsSpec->specType != HCF_PUBLIC_KEY_SPEC) && (paramsSpec->specType != HCF_KEY_PAIR_SPEC))) { in EngineGenerateDhPubKeyBySpec()
1113 … ((paramsSpec->specType != HCF_PRIVATE_KEY_SPEC) && (paramsSpec->specType != HCF_KEY_PAIR_SPEC))) { in EngineGenerateDhPriKeyBySpec()
H A Dsm2_asy_key_generator_openssl.c260 case HCF_KEY_PAIR_SPEC: in GenKeyPairSm2KeyBySpec()
277 case HCF_KEY_PAIR_SPEC: in GenPubKeySm2KeyBySpec()
294 case HCF_KEY_PAIR_SPEC: in GenPriKeySm2KeyBySpec()
H A Decc_asy_key_generator_openssl.c804 case HCF_KEY_PAIR_SPEC: in GenKeyPairEcKeyBySpec()
821 case HCF_KEY_PAIR_SPEC: in GenPubKeyEcKeyBySpec()
838 case HCF_KEY_PAIR_SPEC: in GenPriKeyEcKeyBySpec()
H A Dalg_25519_asy_key_generator_openssl.c999 (paramsSpec->specType != HCF_KEY_PAIR_SPEC)) { in EngineGenerateAlg25519KeyPairBySpec()
/ohos5.0/base/security/crypto_framework/test/fuzztest/key/asykeygenerator_fuzzer/
H A Dasykeygenerator_fuzzer.cpp350 .specType = HCF_KEY_PAIR_SPEC
495 returnPairSpec->base.base.specType = HCF_KEY_PAIR_SPEC; in GenerateRsa2048CorrectKeyPairSpec()
594 eccKeyPairSpec->base.base.specType = HCF_KEY_PAIR_SPEC; in ConstructEcc224KeyPairParamsSpec()
809 eccKeyPairSpec->base.base.specType = HCF_KEY_PAIR_SPEC; in ConstructSm2256KeyPairParamsSpec()
886 alg25519KeyPairSpec->base.specType = HCF_KEY_PAIR_SPEC; in ConstructAlg25519KeyPairParamsSpec()
1200 dhKeyPairSpec->base.base.specType = HCF_KEY_PAIR_SPEC; in ConstructDhKeyPairParamsSpec()

12