diff --git a/security_lite/huks/liteos_m_adapter/hks_derive_test.c b/security_lite/huks/liteos_m_adapter/hks_derive_test.c index aff1512e38a3fe3c22d0445b326dfa83015ff65c..754427bf5f8590ca3a5623c1bf7205910ad4d3a2 100644 --- a/security_lite/huks/liteos_m_adapter/hks_derive_test.c +++ b/security_lite/huks/liteos_m_adapter/hks_derive_test.c @@ -182,7 +182,7 @@ static int32_t BaseTestDerive(uint32_t index) ret = GenerateLocalRandomKey(&keyAlias, &g_testDeriveParams[index].localKeyParams); } else { if (g_testDeriveParams[index].keyAliasParams.blobExist) { - ret = GenerateKey(&keyAlias, &g_testDeriveParams[index].keyAliasParams, + ret = HuksGenerateKey(&keyAlias, &g_testDeriveParams[index].keyAliasParams, &g_testDeriveParams[index].genKeyParamSetParams, NULL); } else { ret = TestConstuctBlob(&keyAlias, diff --git a/security_lite/huks/liteos_m_adapter/hks_mac_test.c b/security_lite/huks/liteos_m_adapter/hks_mac_test.c index 9ecf72bc4cc635c40af0bc92259b8c45c1e3a345..c928dad90d2cc0bfd06dd591d97aedc5f098e462 100644 --- a/security_lite/huks/liteos_m_adapter/hks_mac_test.c +++ b/security_lite/huks/liteos_m_adapter/hks_mac_test.c @@ -169,7 +169,7 @@ static int32_t BaseTestMac(uint32_t index) g_testMacParams[index].keyParams.blobDataSize); } else { if (g_testMacParams[index].keyAliasParams.blobExist) { - ret = GenerateKey(&key, &(g_testMacParams[index].keyAliasParams), + ret = HuksGenerateKey(&key, &(g_testMacParams[index].keyAliasParams), &g_testMacParams[index].genKeyParamSetParams, NULL); } else { ret = TestConstuctBlob(&key, diff --git a/security_lite/huks/liteos_m_adapter/hks_modify_key_test.c b/security_lite/huks/liteos_m_adapter/hks_modify_key_test.c index d9b1937ea1b57f5cec5fd864559b8b90c822c281..8ee027208d108644590df1f19661d12a34196b7a 100644 --- a/security_lite/huks/liteos_m_adapter/hks_modify_key_test.c +++ b/security_lite/huks/liteos_m_adapter/hks_modify_key_test.c @@ -293,7 +293,7 @@ int32_t BaseTestCipherProcess(const struct HksBlob *keyAlias, uint32_t index) } /* 3. decrypt */ struct CipherDecryptStructure testDecryptStruct = { - keyAlias, &g_testCipherParams[index], cipherData, + (struct HksBlob *)(keyAlias), &g_testCipherParams[index], cipherData, &decryptedData, ivData, nonceData, aadData, 1 }; ret = DecryptCipher(&testDecryptStruct); @@ -332,7 +332,7 @@ int32_t __attribute__((weak)) HksStoreKeyBlob(const struct HksBlob *processName, (void)keyAlias; (void)storageType; (void)keyBlob; -} + return HKS_SUCCESS; static void ExecHksModifyKeyTest001(void const *argument) {