Home
last modified time | relevance | path

Searched refs:ivParam (Results 1 – 8 of 8) sorted by relevance

/base/security/huks/services/huks_standard/huks_engine/main/core/src/
Dhks_chipset_platform_decrypt.c144 struct HksParam *ivParam = NULL; in DoAesDecrypt() local
145 ret = HksGetParam(paramSecureSet, HKS_TAG_IV, &ivParam); in DoAesDecrypt()
157 struct HksBlob iv = ivParam->blob; in DoAesDecrypt()
Dhks_sm_import_wrap_key.c431 struct HksBlob ivParam = { 0, NULL }; in DecryptImportedSmKey() local
433 HKS_IMPORT_WRAPPED_KEY_TOTAL_BLOBS, &ivParam); in DecryptImportedSmKey()
454 ret = BuildDecryptUsageSpecOfSmUnwrap(&ivParam, decOriginKeyUsageSpec); in DecryptImportedSmKey()
/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/sdk_test/src/
Dhks_test_aes.c103 struct HksParam ivParam = {0}; in ConstructParamSetEncryptDecryptAesPost() local
104 ivParam.tag = HKS_TAG_IV; in ConstructParamSetEncryptDecryptAesPost()
105 ivParam.blob.data = g_iv; in ConstructParamSetEncryptDecryptAesPost()
106 ivParam.blob.size = sizeof(g_iv); in ConstructParamSetEncryptDecryptAesPost()
107 ret = HksAddParams(*paramSet, (const struct HksParam *)&ivParam, 1); in ConstructParamSetEncryptDecryptAesPost()
Dhks_test_common.c265 struct HksParam ivParam = {0}; in TestAesCipherParamSetPre() local
266 ivParam.tag = HKS_TAG_IV; in TestAesCipherParamSetPre()
267 ivParam.blob = *(paramStruct->ivBlob); in TestAesCipherParamSetPre()
268 ret = HksAddParams(paramSet, (const struct HksParam *)&ivParam, 1); in TestAesCipherParamSetPre()
/base/security/huks/test/unittest/huks_lite_test/common/
Dhks_test_aes.c104 struct HksParam ivParam = {0}; in ConstructParamSetEncryptDecryptAesPost() local
105 ivParam.tag = HKS_TAG_IV; in ConstructParamSetEncryptDecryptAesPost()
106 ivParam.blob.data = g_iv; in ConstructParamSetEncryptDecryptAesPost()
107 ivParam.blob.size = sizeof(g_iv); in ConstructParamSetEncryptDecryptAesPost()
108 ret = HksAddParams(*paramSet, (const struct HksParam *)&ivParam, 1); in ConstructParamSetEncryptDecryptAesPost()
Dhks_test_common.c268 struct HksParam ivParam = {0}; in TestAesCipherParamSetPre() local
269 ivParam.tag = HKS_TAG_IV; in TestAesCipherParamSetPre()
270 ivParam.blob = *(paramStruct->ivBlob); in TestAesCipherParamSetPre()
271 ret = HksAddParams(paramSet, (const struct HksParam *)&ivParam, 1); in TestAesCipherParamSetPre()
/base/security/huks/frameworks/huks_standard/main/common/src/
Dhks_crypto_adapter.c150 struct HksParam *ivParam = NULL; in HksFillIvParam() local
151 int32_t ret = HksGetParam(paramSet, HKS_TAG_IV, &ivParam); in HksFillIvParam()
157 param->iv = ivParam->blob; in HksFillIvParam()
Dhks_base_check.c1331 struct HksParam *ivParam = NULL; in CheckBlockCipherIvMaterial() local
1332 int32_t ret = HksGetParam(paramSet, HKS_TAG_IV, &ivParam); in CheckBlockCipherIvMaterial()
1335 if ((ivParam->blob.size != HKS_BLOCK_CIPHER_CBC_IV_LEN) || (ivParam->blob.data == NULL)) { in CheckBlockCipherIvMaterial()