/test/xts/acts/security/huks_napi_BasicTest/src/ |
D | huks_cipher_rsa_test_common.cpp | 21 …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 …]
|
D | huks_cipher_aes_test.cpp | 210 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);
|
D | huks_cipher_aes_test_common.cpp | 25 …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()
|
D | huks_cipher_sm4_test_common.cpp | 22 …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()
|
D | huks_cipher_rsa_test.cpp | 131 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);
|
D | huks_cipher_sm4_test.cpp | 136 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);
|
D | huks_wrapped_test_common.cpp | 165 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/ |
D | huks_cipher_rsa_test_common.h | 53 …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,
|
D | huks_cipher_aes_test_common.h | 41 const struct OH_Huks_ParamSet *encryptParamSet, 54 struct OH_Huks_ParamSet *encryptParamSet, 60 struct OH_Huks_ParamSet *encryptParamSet,
|
D | huks_cipher_sm4_test_common.h | 46 struct OH_Huks_ParamSet *encryptParamSet, struct OH_Huks_ParamSet *decryptParamSet);
|
/test/xts/device_attest/services/core/security/ |
D | attest_security.c | 431 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/ |
D | hks_test_cipher.c | 478 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()
|