Home
last modified time | relevance | path

Searched refs:HKS_ALG_SM2 (Results 1 – 24 of 24) sorted by relevance

/base/security/huks/test/unittest/huks_standard_test/three_stage_test/src/
Dhks_sm2_sign_verify_test.cpp68 .uint32Param = HKS_ALG_SM2
89 .uint32Param = HKS_ALG_SM2
109 .uint32Param = HKS_ALG_SM2
129 .uint32Param = HKS_ALG_SM2
150 .uint32Param = HKS_ALG_SM2
167 .uint32Param = HKS_ALG_SM2
188 .uint32Param = HKS_ALG_SM2
208 .uint32Param = HKS_ALG_SM2
228 .uint32Param = HKS_ALG_SM2
249 .uint32Param = HKS_ALG_SM2
[all …]
Dhks_import_wrapped_sm2_suite_test.cpp68 {.tag = HKS_TAG_ALGORITHM, .uint32Param = HKS_ALG_SM2},
75 {.tag = HKS_TAG_ALGORITHM, .uint32Param = HKS_ALG_SM2},
81 {.tag = HKS_TAG_ALGORITHM, .uint32Param = HKS_ALG_SM2},
88 {.tag = HKS_TAG_ALGORITHM, .uint32Param = HKS_ALG_SM2},
198 { .tag = HKS_TAG_ALGORITHM, .uint32Param = HKS_ALG_SM2 },
723 material.keyAlg = HKS_ALG_SM2; in ConstructEccKey()
Dhks_import_sign_verify_test.cpp674 material.keyAlg = HKS_ALG_SM2; in ConstructImportedSm2Key()
813 } else if (alg == HKS_ALG_SM2) { in ConstructImportedKey()
1113 ImportPlainKeyTest(HKS_ALG_SM2, HKS_SM2_KEY_SIZE_256, HKS_DIGEST_SM3, false);
1148 ImportPlainKeyTest(HKS_ALG_SM2, HKS_SM2_KEY_SIZE_256, HKS_DIGEST_SM3, true);
Dhks_import_key_test.cpp639 { .tag = HKS_TAG_ALGORITHM, .uint32Param = HKS_ALG_SM2 },
667 { .tag = HKS_TAG_ALGORITHM, .uint32Param = HKS_ALG_SM2 },
Dhks_check_auth_part_test.cpp306 } else if (algParam->uint32Param == HKS_ALG_RSA || algParam->uint32Param == HKS_ALG_SM2 || in getParamSetAuthTest()
Dhks_access_control_test_common.cpp869 } else if (algParam->uint32Param == HKS_ALG_RSA || algParam->uint32Param == HKS_ALG_SM2 || in GenParamSetAuthTest()
/base/security/huks/frameworks/huks_standard/main/crypto_engine/openssl/src/
Dhks_openssl_ability.c69 (void)RegisterAbility(HKS_CRYPTO_ABILITY_GENERATE_KEY(HKS_ALG_SM2), HksOpensslSm2GenerateKey); in RegisterAbilityGenerateKey()
100 (void)RegisterAbility(HKS_CRYPTO_ABILITY_GET_PUBLIC_KEY(HKS_ALG_SM2), HksOpensslGetEccPubKey); in RegisterAbilityGetPublicKey()
119 (void)RegisterAbility(HKS_CRYPTO_ABILITY_SIGN(HKS_ALG_SM2), HksOpensslSm2Sign); in RegisterAbilitySign()
138 (void)RegisterAbility(HKS_CRYPTO_ABILITY_VERIFY(HKS_ALG_SM2), HksOpensslSm2Verify); in RegisterAbilityVerify()
170 (void)RegisterAbility(HKS_CRYPTO_ABILITY_ENCRYPT(HKS_ALG_SM2), HksOpensslSm2Encrypt); in RegisterAbilityEncrypt()
202 (void)RegisterAbility(HKS_CRYPTO_ABILITY_DECRYPT(HKS_ALG_SM2), HksOpensslSm2Decrypt); in RegisterAbilityDecrypt()
Dhks_openssl_sm2.c111 if (spec->algType != HKS_ALG_SM2) { in HksOpensslSm2GenerateKey()
/base/security/huks/frameworks/huks_standard/main/common/src/
Dhks_check_paramset.c79 HKS_ALG_SM2,
112 HKS_ALG_SM2,
130 HKS_ALG_SM2,
151 HKS_ALG_SM2,
363 case HKS_ALG_SM2: in CheckImportKeySize()
658 case HKS_ALG_SM2: in CheckKeyLen()
693 case HKS_ALG_SM2: in CheckMutableParams()
Dhks_base_check.c597 HKS_ALG_SM2,
681 HKS_ALG_SM2,
964 case HKS_ALG_SM2: in InitInputParamsByAlg()
1028 case HKS_ALG_SM2: in GetExpectParams()
1560 case HKS_ALG_SM2: in HksGetKeySize()
1724 if ((alg == HKS_ALG_SM2) && in CheckImportMutableParams()
1788 case HKS_ALG_SM2: in HksCheckSignature()
1873 case HKS_ALG_SM2: in HksCheckCipherMutableParams()
1900 case HKS_ALG_SM2: in HksCheckCihperData()
/base/security/huks/utils/crypto_adapter/
Dhks_client_service_adapter_common.c116 case HKS_ALG_SM2: in GetHksPubKeyInnerFormat()
Dhks_client_service_adapter.c149 if (alg == HKS_ALG_SM2) { in EccToX509PublicKey()
507 case HKS_ALG_SM2: in TranslateToX509PublicKeySwitchAlg()
/base/security/huks/services/huks_standard/huks_engine/main/device_cert_manager/src/
Ddcm_attest_utils.c93 if (info->keyAlg == HKS_ALG_SM2) { in GetEcPublicKey()
245 } else if (info->keyAlg == HKS_ALG_SM2) { in DcmGetPublicKey()
Ddcm_attest.c728 } else if (signAlg == HKS_ALG_SM2) { in GetSignatureByAlg()
887 } else if (signAlg == HKS_ALG_SM2) { in SignTbs()
888 usageSpec.algType = HKS_ALG_SM2; in SignTbs()
931 if (signAlg == HKS_ALG_SM2) { in CreateAttestCert()
972 } else if (attetUsageSpec->algType == HKS_ALG_SM2) { in InsertSignatureGroupClaim()
1143 if ((attetUsageSpec->algType != HKS_ALG_RSA) && (attetUsageSpec->algType != HKS_ALG_SM2)) { in BuildAttestKeyClaims()
1318 (usageSpec->algType != HKS_ALG_X25519) && (usageSpec->algType != HKS_ALG_SM2)) { in CheckAttestUsageSpec()
/base/security/huks/test/unittest/huks_standard_test/module_test/framework_test/common_test/src/
Dhks_base_check_test.cpp168 int32_t ret = HksCheckSignature(0, HKS_ALG_SM2, HKS_RSA_KEY_SIZE_1024, nullptr);
183 int32_t ret = CheckImportMutableParams(HKS_ALG_SM2, &values);
Dhks_check_paramset_test.cpp102 int32_t ret = CheckMutableParams(HKS_ALG_SM2, keyType, &params);
205 ret = CheckImportKeySize(HKS_ALG_SM2, nullptr, &key);
/base/security/huks/services/huks_standard/huks_engine/main/core/src/
Dhks_sm_import_wrap_key.c51 HKS_ALG_SM2,
131 { .tag = HKS_TAG_ALGORITHM, .uint32Param = HKS_ALG_SM2 }, in AddDecryptKeyParamSetFromUnwrapSuite()
273 {.tag = HKS_TAG_ALGORITHM, .uint32Param = HKS_ALG_SM2}, in VerifyKekBySm2()
Dhks_core_service_three_stage.c197 if (algParam->uint32Param == HKS_ALG_ECC || algParam->uint32Param == HKS_ALG_SM2 || in SignVerifyAuth()
223 algParam->uint32Param == HKS_ALG_DH || algParam->uint32Param == HKS_ALG_SM2) { in AgreeAuth()
251 } else if ((algParam->uint32Param == HKS_ALG_RSA) || (algParam->uint32Param == HKS_ALG_SM2)) { in CipherAuth()
954 if ((algParam->uint32Param == HKS_ALG_RSA) || (algParam->uint32Param == HKS_ALG_SM2)) { in HksCoreCryptoThreeStageInit()
Dhks_core_service.c320 } else if ((algParam->uint32Param == HKS_ALG_RSA) || (algParam->uint32Param == HKS_ALG_SM2)) { in CipherAuth()
545 alg = HKS_ALG_SM2; in AddAgreeKeyParamSetFromUnwrapSuite()
1025 case HKS_ALG_SM2: in GetPrivateOrPairInnerFormat()
/base/security/huks/test/unittest/huks_standard_test/three_stage_test/src/asymmetric_alg_test/
Dhks_export_test.cpp254 { .tag = HKS_TAG_ALGORITHM, .uint32Param = HKS_ALG_SM2 },
/base/security/huks/interfaces/inner_api/huks_standard/main/include/
Dhks_type.h217 HKS_ALG_SM2 = 150, enumerator
/base/security/huks/test/unittest/huks_standard_test/module_test/service_test/huks_engine/core/src/
Dhks_core_service_test.cpp396 {.tag = HKS_TAG_ALGORITHM, .uint32Param = HKS_ALG_SM2},
/base/security/huks/interfaces/kits/napi/src/
Dhuks_napi.cpp252 AddInt32Property(env, keyAlg, "HUKS_ALG_SM2", HKS_ALG_SM2); in CreateHuksKeyAlg()
/base/security/huks/test/unittest/huks_standard_test/module_test/interface_test/src/
Dhks_native_api_compatibility_test.cpp273 ASSERT_EQ((uint32_t)OH_HUKS_ALG_SM2 == (uint32_t)HKS_ALG_SM2, true);