Home
last modified time | relevance | path

Searched refs:HKS_ALG_SM4 (Results 1 – 22 of 22) sorted by relevance

/base/security/huks/frameworks/huks_standard/main/crypto_engine/openssl/src/
Dhks_openssl_ability.c75 (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/
Dhks_sm4_cipher_part_test.cpp65 .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 …]
Dhks_import_key_test.cpp261 { .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 …]
Dhks_check_auth_part_test.cpp97 { .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()
Dhks_access_control_cipher_test.cpp98 { .tag = HKS_TAG_ALGORITHM, .uint32Param = HKS_ALG_SM4 },
110 { .tag = HKS_TAG_ALGORITHM, .uint32Param = HKS_ALG_SM4 },
Dhks_import_wrapped_sm2_suite_test.cpp99 {.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},
Dhks_access_control_test_common.cpp867 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/
Dhks_base_check_test.cpp72 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);
Dhks_check_paramset_test.cpp177 int32_t ret = CheckMutableParams(HKS_ALG_SM4, keyType, &params);
/base/security/huks/utils/crypto_adapter/
Dhks_client_service_adapter_common.c101 case HKS_ALG_SM4: in GetHksPubKeyInnerFormat()
/base/security/huks/test/reliability/src/
Dthree_stage_multi_thread.cpp68 .uint32Param = HKS_ALG_SM4
141 .uint32Param = HKS_ALG_SM4
/base/security/huks/frameworks/huks_standard/main/common/src/
Dhks_base_check.c610 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 …]
Dhks_check_paramset.c82 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()
Dhks_crypto_adapter.c167 return (algParam->uint32Param == HKS_ALG_SM4); in HksIsAlgorithmSm4()
/base/security/huks/services/huks_standard/huks_engine/main/core/src/
Dhks_core_service_three_stage.c160 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()
Dhks_sm_import_wrap_key.c48 HKS_ALG_SM4,
406 usageSpec->algType = HKS_ALG_SM4; in BuildDecryptUsageSpecOfSmUnwrap()
Dhks_core_service.c318 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/
Dhks_secure_access_test.cpp378 .uint32Param = HKS_ALG_SM4
Dhks_core_service_test.cpp399 {.tag = HKS_TAG_ALGORITHM, .uint32Param = HKS_ALG_SM4},
/base/security/huks/interfaces/inner_api/huks_standard/main/include/
Dhks_type.h219 HKS_ALG_SM4 = 152, enumerator
/base/security/huks/interfaces/kits/napi/src/
Dhuks_napi.cpp254 AddInt32Property(env, keyAlg, "HUKS_ALG_SM4", HKS_ALG_SM4); in CreateHuksKeyAlg()
/base/security/huks/test/unittest/huks_standard_test/module_test/interface_test/src/
Dhks_native_api_compatibility_test.cpp275 ASSERT_EQ((uint32_t)OH_HUKS_ALG_SM4 == (uint32_t)HKS_ALG_SM4, true);