Home
last modified time | relevance | path

Searched refs:encryptParamSet (Results 1 – 12 of 12) sorted by relevance

/test/xts/acts/security/huks_napi_BasicTest/src/
Dhuks_cipher_rsa_test_common.cpp21 …const struct OH_Huks_ParamSet *encryptParamSet, const struct OH_Huks_Blob *inData, struct OH_Huks_… in HksRsaCipherTestEncryptAbnormal() argument
25 OH_Huks_Result ret = OH_Huks_InitSession(keyAlias, encryptParamSet, &handleEncrypt, nullptr); in HksRsaCipherTestEncryptAbnormal()
31 …ret = TestUpdateFinish(&handleEncrypt, encryptParamSet, OH_HUKS_KEY_PURPOSE_ENCRYPT, inData, ciphe… in HksRsaCipherTestEncryptAbnormal()
34 OH_Huks_Result abortRet = OH_Huks_AbortSession(&handleEncrypt, encryptParamSet); in HksRsaCipherTestEncryptAbnormal()
45 …const struct OH_Huks_ParamSet *encryptParamSet, const struct OH_Huks_Blob *inData, struct OH_Huks_… in HksRsaCipherTestEncrypt() argument
49 OH_Huks_Result ret = OH_Huks_InitSession(keyAlias, encryptParamSet, &handleEncrypt, nullptr); in HksRsaCipherTestEncrypt()
55 …ret = TestUpdateFinish(&handleEncrypt, encryptParamSet, OH_HUKS_KEY_PURPOSE_ENCRYPT, inData, ciphe… in HksRsaCipherTestEncrypt()
88 …struct OH_Huks_ParamSet *encryptParamSet, struct OH_Huks_ParamSet *decryptParamSet, const struct O… in HksRsaCipherTestCase() argument
102 ret = OH_Huks_ImportKeyItem(&newKeyAlias, encryptParamSet, &publicKey); in HksRsaCipherTestCase()
107 ret = HksRsaCipherTestEncrypt(&newKeyAlias, encryptParamSet, inData, &cipherText); in HksRsaCipherTestCase()
[all …]
Dhuks_cipher_aes_test.cpp210 struct OH_Huks_ParamSet *encryptParamSet = nullptr; variable
211 …ret = InitParamSet(&encryptParamSet, g_encryptParams015, sizeof(g_encryptParams015) / sizeof(OH_Hu…
218 ret = HksAesCipherTestCaseOther(&keyAlias, genParamSet, encryptParamSet, decryptParamSet);
222 OH_Huks_FreeParamSet(&encryptParamSet);
247 struct OH_Huks_ParamSet *encryptParamSet = nullptr; variable
248 …ret = InitParamSet(&encryptParamSet, g_encryptParams019, sizeof(g_encryptParams019) / sizeof(OH_Hu…
253 ret = OH_Huks_InitSession(&keyAlias, encryptParamSet, &handleEncrypt, nullptr);
258 ret = TestUpdateLoopFinish(&handleEncrypt, encryptParamSet, &inData, &cipherText);
282 OH_Huks_FreeParamSet(&encryptParamSet);
Dhuks_cipher_aes_test_common.cpp25 …const struct OH_Huks_ParamSet *encryptParamSet, const struct OH_Huks_Blob *inData, struct OH_Huks_… in HksAesCipherTestEncrypt() argument
29 … OH_Huks_Result ret = OH_Huks_InitSession(keyAlias, encryptParamSet, &handleEncrypt, nullptr); in HksAesCipherTestEncrypt()
36 ret = TestUpdateLoopFinish(&handleEncrypt, encryptParamSet, inData, cipherText); in HksAesCipherTestEncrypt()
74 struct OH_Huks_ParamSet *encryptParamSet, struct OH_Huks_ParamSet *decryptParamSet) in HksAesCipherTestCaseOther() argument
100 ret = HksAesCipherTestEncrypt(keyAlias, encryptParamSet, &inData, &cipherText); in HksAesCipherTestCaseOther()
116 …struct OH_Huks_ParamSet *encryptParamSet, struct OH_Huks_ParamSet *decryptParamSet, struct OH_Huks… in HksAesCipherTestCaseGcm2() argument
133 ret = HksAesCipherTestEncrypt(keyAlias, encryptParamSet, &inData, &cipherText); in HksAesCipherTestCaseGcm2()
Dhuks_cipher_sm4_test_common.cpp22 …const struct OH_Huks_ParamSet *encryptParamSet, const struct OH_Huks_Blob *inData, struct OH_Huks_… in HksSm4CipherTestEncrypt() argument
26 OH_Huks_Result ret = OH_Huks_InitSession(keyAlias, encryptParamSet, &handleEncrypt, nullptr); in HksSm4CipherTestEncrypt()
32 ret = TestUpdateLoopFinish(&handleEncrypt, encryptParamSet, inData, cipherText); in HksSm4CipherTestEncrypt()
64 struct OH_Huks_ParamSet *encryptParamSet, struct OH_Huks_ParamSet *decryptParamSet) in HksSm4CipherTestCaseOther() argument
88 ret = HksSm4CipherTestEncrypt(keyAlias, encryptParamSet, &inData, &cipherText); in HksSm4CipherTestCaseOther()
Dhuks_cipher_rsa_test.cpp131 struct OH_Huks_ParamSet *encryptParamSet = nullptr; variable
132 …ret = InitParamSet(&encryptParamSet, g_encryptParams041, sizeof(g_encryptParams041) / sizeof(OH_Hu…
139 ret = HksRsaCipherTestCase(&keyAlias, genParamSet, encryptParamSet, decryptParamSet, &inData);
143 OH_Huks_FreeParamSet(&encryptParamSet);
Dhuks_cipher_sm4_test.cpp136 struct OH_Huks_ParamSet *encryptParamSet = nullptr; variable
137 …ret = InitParamSet(&encryptParamSet, g_encryptParams001, sizeof(g_encryptParams001) / sizeof(OH_Hu…
144 ret = HksSm4CipherTestCaseOther(&keyAlias, genParamSet, encryptParamSet, decryptParamSet);
148 OH_Huks_FreeParamSet(&encryptParamSet);
Dhuks_wrapped_test_common.cpp165 struct OH_Huks_ParamSet *encryptParamSet = nullptr; in EncryptImportedPlainKeyAndKek() local
166 OH_Huks_Result ret = InitParamSet(&encryptParamSet, g_aesKekEncryptParams, in EncryptImportedPlainKeyAndKek()
169 …ret = HuksEncrypt(params->callerKekAlias, encryptParamSet, params->importedPlainKey, plainCipherTe… in EncryptImportedPlainKeyAndKek()
172 … ret = HuksEncrypt(params->callerAgreeKeyAlias, encryptParamSet, params->callerKek, kekCipherText); in EncryptImportedPlainKeyAndKek()
174 OH_Huks_FreeParamSet(&encryptParamSet); in EncryptImportedPlainKeyAndKek()
/test/xts/acts/security/huks_napi_BasicTest/include/
Dhuks_cipher_rsa_test_common.h53 …struct OH_Huks_ParamSet *encryptParamSet, struct OH_Huks_ParamSet *decryptParamSet, const struct O…
55 …struct OH_Huks_ParamSet *encryptParamSet, struct OH_Huks_ParamSet *decryptParamSet, const struct O…
56 …herTestEncrypt(const struct OH_Huks_Blob *keyAlias, const struct OH_Huks_ParamSet *encryptParamSet,
58 …ncryptAbnormal(const struct OH_Huks_Blob *keyAlias, const struct OH_Huks_ParamSet *encryptParamSet,
Dhuks_cipher_aes_test_common.h41 const struct OH_Huks_ParamSet *encryptParamSet,
54 struct OH_Huks_ParamSet *encryptParamSet,
60 struct OH_Huks_ParamSet *encryptParamSet,
Dhuks_cipher_sm4_test_common.h46 struct OH_Huks_ParamSet *encryptParamSet, struct OH_Huks_ParamSet *decryptParamSet);
/test/xts/device_attest/services/core/security/
Dattest_security.c431 struct HksParamSet *encryptParamSet = NULL; in EncryptHksImpl() local
436 …int32_t ret = InitHksParamSet(&encryptParamSet, g_encryptParams, sizeof(g_encryptParams) / sizeof(… in EncryptHksImpl()
443 ret = HksEncrypt(&g_attestKeyAlias, encryptParamSet, inData, &cipherText); in EncryptHksImpl()
446 HksFreeParamSet(&encryptParamSet); in EncryptHksImpl()
455 HksFreeParamSet(&encryptParamSet); in EncryptHksImpl()
460 HksFreeParamSet(&encryptParamSet); in EncryptHksImpl()
466 HksFreeParamSet(&encryptParamSet); in EncryptHksImpl()
/test/xts/acts/security_lite/huks/common/
Dhks_test_cipher.c478 struct HksParamSet *encryptParamSet = NULL; in Encrypt() local
482 &encryptParamSet, in Encrypt()
507 &encryptParamSet, in Encrypt()
522 …ret = HksEncryptRun(encryptStruct->keyAlias, encryptParamSet, encryptStruct->plainData, encryptStr… in Encrypt()
524 HksFreeParamSet(&encryptParamSet); in Encrypt()