/base/security/huks/frameworks/huks_standard/main/crypto_engine/openssl/src/ |
D | hks_openssl_ability.c | 75 (void)RegisterAbility(HKS_CRYPTO_ABILITY_GENERATE_KEY(HKS_ALG_SM4), HksOpensslSm4GenerateKey); in RegisterAbilityGenerateKey() 159 (void)RegisterAbility(HKS_CRYPTO_ABILITY_ENCRYPT(HKS_ALG_SM4), HksOpensslSm4Encrypt); in RegisterAbilityEncrypt() 160 (void)RegisterAbility(HKS_CRYPTO_ABILITY_ENCRYPT_INIT(HKS_ALG_SM4), in RegisterAbilityEncrypt() 162 (void)RegisterAbility(HKS_CRYPTO_ABILITY_ENCRYPT_UPDATE(HKS_ALG_SM4), in RegisterAbilityEncrypt() 164 (void)RegisterAbility(HKS_CRYPTO_ABILITY_ENCRYPT_FINAL(HKS_ALG_SM4), in RegisterAbilityEncrypt() 166 (void)RegisterAbility(HKS_CRYPTO_ABILITY_ENCRYPT_FREE_CTX(HKS_ALG_SM4), in RegisterAbilityEncrypt() 191 (void)RegisterAbility(HKS_CRYPTO_ABILITY_DECRYPT(HKS_ALG_SM4), HksOpensslSm4Decrypt); in RegisterAbilityDecrypt() 192 (void)RegisterAbility(HKS_CRYPTO_ABILITY_DECRYPT_INIT(HKS_ALG_SM4), in RegisterAbilityDecrypt() 194 (void)RegisterAbility(HKS_CRYPTO_ABILITY_DECRYPT_UPDATE(HKS_ALG_SM4), in RegisterAbilityDecrypt() 196 (void)RegisterAbility(HKS_CRYPTO_ABILITY_DECRYPT_FINAL(HKS_ALG_SM4), in RegisterAbilityDecrypt() [all …]
|
/base/security/huks/test/unittest/huks_standard_test/three_stage_test/src/ |
D | hks_sm4_cipher_part_test.cpp | 65 .uint32Param = HKS_ALG_SM4, 84 .uint32Param = HKS_ALG_SM4, 103 .uint32Param = HKS_ALG_SM4, 123 .uint32Param = HKS_ALG_SM4, 142 .uint32Param = HKS_ALG_SM4, 161 .uint32Param = HKS_ALG_SM4, 177 .uint32Param = HKS_ALG_SM4 202 .uint32Param = HKS_ALG_SM4 227 .uint32Param = HKS_ALG_SM4 253 .uint32Param = HKS_ALG_SM4 [all …]
|
D | hks_import_key_test.cpp | 261 { .tag = HKS_TAG_ALGORITHM, .uint32Param = HKS_ALG_SM4 }, 275 { .tag = HKS_TAG_ALGORITHM, .uint32Param = HKS_ALG_SM4 }, 290 { .tag = HKS_TAG_ALGORITHM, .uint32Param = HKS_ALG_SM4 }, 304 { .tag = HKS_TAG_ALGORITHM, .uint32Param = HKS_ALG_SM4 }, 319 { .tag = HKS_TAG_ALGORITHM, .uint32Param = HKS_ALG_SM4 }, 333 { .tag = HKS_TAG_ALGORITHM, .uint32Param = HKS_ALG_SM4 }, 387 { .tag = HKS_TAG_ALGORITHM, .uint32Param = HKS_ALG_SM4 }, 414 { .tag = HKS_TAG_ALGORITHM, .uint32Param = HKS_ALG_SM4 }, 428 { .tag = HKS_TAG_ALGORITHM, .uint32Param = HKS_ALG_SM4 }, 442 { .tag = HKS_TAG_ALGORITHM, .uint32Param = HKS_ALG_SM4 }, [all …]
|
D | hks_check_auth_part_test.cpp | 97 { .tag = HKS_TAG_ALGORITHM, .uint32Param = HKS_ALG_SM4 }, 108 { .tag = HKS_TAG_ALGORITHM, .uint32Param = HKS_ALG_SM4 }, 304 if (algParam->uint32Param == HKS_ALG_AES || algParam->uint32Param == HKS_ALG_SM4) { in getParamSetAuthTest()
|
D | hks_access_control_cipher_test.cpp | 98 { .tag = HKS_TAG_ALGORITHM, .uint32Param = HKS_ALG_SM4 }, 110 { .tag = HKS_TAG_ALGORITHM, .uint32Param = HKS_ALG_SM4 },
|
D | hks_import_wrapped_sm2_suite_test.cpp | 99 {.tag = HKS_TAG_ALGORITHM, .uint32Param = HKS_ALG_SM4}, 155 {.tag = HKS_TAG_ALGORITHM, .uint32Param = HKS_ALG_SM4}, 166 {.tag = HKS_TAG_ALGORITHM, .uint32Param = HKS_ALG_SM4}, 189 {.tag = HKS_TAG_ALGORITHM, .uint32Param = HKS_ALG_SM4},
|
D | hks_access_control_test_common.cpp | 867 if (algParam->uint32Param == HKS_ALG_AES || algParam->uint32Param == HKS_ALG_SM4) { in GenParamSetAuthTest()
|
/base/security/huks/test/unittest/huks_standard_test/module_test/framework_test/common_test/src/ |
D | hks_base_check_test.cpp | 72 int32_t ret = HksCheckCipherMaterialParams(HKS_ALG_SM4, &values, nullptr); 87 int32_t ret = HksCheckCihperData(0, HKS_ALG_SM4, &values, nullptr, nullptr); 111 int32_t ret = HksCheckCipherMutableParams(0, HKS_ALG_SM4, nullptr); 130 int32_t ret = HksCheckCipherMutableParams(HKS_CMD_ID_ENCRYPT, HKS_ALG_SM4, &values);
|
D | hks_check_paramset_test.cpp | 177 int32_t ret = CheckMutableParams(HKS_ALG_SM4, keyType, ¶ms);
|
/base/security/huks/utils/crypto_adapter/ |
D | hks_client_service_adapter_common.c | 101 case HKS_ALG_SM4: in GetHksPubKeyInnerFormat()
|
/base/security/huks/test/reliability/src/ |
D | three_stage_multi_thread.cpp | 68 .uint32Param = HKS_ALG_SM4 141 .uint32Param = HKS_ALG_SM4
|
/base/security/huks/frameworks/huks_standard/main/common/src/ |
D | hks_base_check.c | 610 HKS_ALG_SM4, 771 { HKS_ALG_SM4, g_validSm4KeyInfo, HKS_ARRAY_SIZE(g_validSm4KeyInfo) } 972 case HKS_ALG_SM4: in InitInputParamsByAlg() 1036 case HKS_ALG_SM4: in GetExpectParams() 1313 if (((alg == HKS_ALG_AES) || (alg == HKS_ALG_SM4)) && in CheckBlockCipherData() 1556 case HKS_ALG_SM4: in HksGetKeySize() 1702 case HKS_ALG_SM4: in HksCheckGenKeyMutableParams() 1868 case HKS_ALG_SM4: in HksCheckCipherMutableParams() 1897 case HKS_ALG_SM4: in HksCheckCihperData() 1898 return CheckBlockCipherData(cmdId, inputParams, inData, outData, HKS_ALG_SM4); in HksCheckCihperData() [all …]
|
D | hks_check_paramset.c | 82 HKS_ALG_SM4, 118 HKS_ALG_SM4, 133 HKS_ALG_SM4, 308 if (alg != HKS_ALG_AES && alg != HKS_ALG_HMAC && alg != HKS_ALG_SM3 && alg != HKS_ALG_SM4) { in CheckGenKeyMacDeriveParams() 743 …if ((alg == HKS_ALG_AES) || (alg == HKS_ALG_SM3) || (alg == HKS_ALG_SM4) || (alg == HKS_ALG_HMAC))… in HksCoreCheckImportKeyParams() 917 if ((alg == HKS_ALG_RSA) || (alg == HKS_ALG_SM4)) { in HksCoreCheckCipherParams()
|
D | hks_crypto_adapter.c | 167 return (algParam->uint32Param == HKS_ALG_SM4); in HksIsAlgorithmSm4()
|
/base/security/huks/services/huks_standard/huks_engine/main/core/src/ |
D | hks_core_service_three_stage.c | 160 if (((alg == HKS_ALG_AES) || (alg == HKS_ALG_SM4)) && in CheckBlockCipherData() 184 case HKS_ALG_SM4: in HksCheckFinishOutSize() 253 } else if (algParam->uint32Param == HKS_ALG_SM4) { in CipherAuth() 771 if (alg == HKS_ALG_AES || alg == HKS_ALG_SM4) { in FreeCryptoCtx() 958 } else if (algParam->uint32Param == HKS_ALG_SM4) { in HksCoreCryptoThreeStageInit() 978 } else if (algParam->uint32Param == HKS_ALG_SM4) { in HksCoreCryptoThreeStageUpdate() 1000 } else if (algParam->uint32Param == HKS_ALG_SM4) { in HksCoreEncryptThreeStageFinish() 1022 } else if (algParam->uint32Param == HKS_ALG_SM4) { in HksCoreDecryptThreeStageFinish()
|
D | hks_sm_import_wrap_key.c | 48 HKS_ALG_SM4, 406 usageSpec->algType = HKS_ALG_SM4; in BuildDecryptUsageSpecOfSmUnwrap()
|
D | hks_core_service.c | 318 if ((algParam->uint32Param == HKS_ALG_AES) || (algParam->uint32Param == HKS_ALG_SM4)) { in CipherAuth() 1028 case HKS_ALG_SM4: in GetPrivateOrPairInnerFormat()
|
/base/security/huks/test/unittest/huks_standard_test/module_test/service_test/huks_engine/core/src/ |
D | hks_secure_access_test.cpp | 378 .uint32Param = HKS_ALG_SM4
|
D | hks_core_service_test.cpp | 399 {.tag = HKS_TAG_ALGORITHM, .uint32Param = HKS_ALG_SM4},
|
/base/security/huks/interfaces/inner_api/huks_standard/main/include/ |
D | hks_type.h | 219 HKS_ALG_SM4 = 152, enumerator
|
/base/security/huks/interfaces/kits/napi/src/ |
D | huks_napi.cpp | 254 AddInt32Property(env, keyAlg, "HUKS_ALG_SM4", HKS_ALG_SM4); in CreateHuksKeyAlg()
|
/base/security/huks/test/unittest/huks_standard_test/module_test/interface_test/src/ |
D | hks_native_api_compatibility_test.cpp | 275 ASSERT_EQ((uint32_t)OH_HUKS_ALG_SM4 == (uint32_t)HKS_ALG_SM4, true);
|