/base/security/huks/test/unittest/huks_standard_test/three_stage_test/src/ |
D | hks_sm2_sign_verify_test.cpp | 68 .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 …]
|
D | hks_import_wrapped_sm2_suite_test.cpp | 68 {.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()
|
D | hks_import_sign_verify_test.cpp | 674 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);
|
D | hks_import_key_test.cpp | 639 { .tag = HKS_TAG_ALGORITHM, .uint32Param = HKS_ALG_SM2 }, 667 { .tag = HKS_TAG_ALGORITHM, .uint32Param = HKS_ALG_SM2 },
|
D | hks_check_auth_part_test.cpp | 306 } else if (algParam->uint32Param == HKS_ALG_RSA || algParam->uint32Param == HKS_ALG_SM2 || in getParamSetAuthTest()
|
D | hks_access_control_test_common.cpp | 869 } 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/ |
D | hks_openssl_ability.c | 69 (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()
|
D | hks_openssl_sm2.c | 111 if (spec->algType != HKS_ALG_SM2) { in HksOpensslSm2GenerateKey()
|
/base/security/huks/frameworks/huks_standard/main/common/src/ |
D | hks_check_paramset.c | 79 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()
|
D | hks_base_check.c | 597 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/ |
D | hks_client_service_adapter_common.c | 116 case HKS_ALG_SM2: in GetHksPubKeyInnerFormat()
|
D | hks_client_service_adapter.c | 149 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/ |
D | dcm_attest_utils.c | 93 if (info->keyAlg == HKS_ALG_SM2) { in GetEcPublicKey() 245 } else if (info->keyAlg == HKS_ALG_SM2) { in DcmGetPublicKey()
|
D | dcm_attest.c | 728 } 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/ |
D | hks_base_check_test.cpp | 168 int32_t ret = HksCheckSignature(0, HKS_ALG_SM2, HKS_RSA_KEY_SIZE_1024, nullptr); 183 int32_t ret = CheckImportMutableParams(HKS_ALG_SM2, &values);
|
D | hks_check_paramset_test.cpp | 102 int32_t ret = CheckMutableParams(HKS_ALG_SM2, keyType, ¶ms); 205 ret = CheckImportKeySize(HKS_ALG_SM2, nullptr, &key);
|
/base/security/huks/services/huks_standard/huks_engine/main/core/src/ |
D | hks_sm_import_wrap_key.c | 51 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()
|
D | hks_core_service_three_stage.c | 197 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()
|
D | hks_core_service.c | 320 } 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/ |
D | hks_export_test.cpp | 254 { .tag = HKS_TAG_ALGORITHM, .uint32Param = HKS_ALG_SM2 },
|
/base/security/huks/interfaces/inner_api/huks_standard/main/include/ |
D | hks_type.h | 217 HKS_ALG_SM2 = 150, enumerator
|
/base/security/huks/test/unittest/huks_standard_test/module_test/service_test/huks_engine/core/src/ |
D | hks_core_service_test.cpp | 396 {.tag = HKS_TAG_ALGORITHM, .uint32Param = HKS_ALG_SM2},
|
/base/security/huks/interfaces/kits/napi/src/ |
D | huks_napi.cpp | 252 AddInt32Property(env, keyAlg, "HUKS_ALG_SM2", HKS_ALG_SM2); in CreateHuksKeyAlg()
|
/base/security/huks/test/unittest/huks_standard_test/module_test/interface_test/src/ |
D | hks_native_api_compatibility_test.cpp | 273 ASSERT_EQ((uint32_t)OH_HUKS_ALG_SM2 == (uint32_t)HKS_ALG_SM2, true);
|