Home
last modified time | relevance | path

Searched refs:HksInitForDe (Results 1 – 25 of 40) sorted by relevance

12

/ohos5.0/base/security/huks/test/unittest/huks_standard_test/three_stage_test/src/
H A Dhks_cross_test_common.cpp48 int32_t ret = HksInitForDe(keyAlias, encryptParamSet, &handle, nullptr); in HksCrossTestAesEncrypt()
73 int32_t ret = HksInitForDe(keyAlias, decryptParamSet, &handle, nullptr); in HksCrossTestAesDecrypt()
99 int32_t ret = HksInitForDe(keyAlias, encryptParamSet, &handle, nullptr); in HksCrossTestRsaEncrypt()
124 int32_t ret = HksInitForDe(keyAlias, decryptParamSet, &handle, nullptr); in HksCrossTestRsaDecrypt()
150 int32_t ret = HksInitForDe(keyAlias, signVerifyParamSet, &handle, nullptr); in HksCrossTestSignVerify()
189 ret = HksInitForDe(keyAlias, hmacParamSet, &handleHMAC, nullptr); in HksCrossTestHmac()
281 int32_t ret = HksInitForDe(keyAlias, initParamSet, &handle, nullptr); in HksCrossTestAgree()
319 ret = HksInitForDe(keyAlias, initParamSet, &handleDerive, nullptr); in HksCrossTestDerive()
H A Dhks_sm4_cipher_test_common.cpp29 int32_t ret = HksInitForDe(keyAlias, encryptParamSet, &handleEncrypt, nullptr); in HksSm4CipherTestEncrypt()
51 int32_t ret = HksInitForDe(keyAlias, decryptParamSet, &handleDecrypt, nullptr); in HksSm4CipherTestDecrypt()
127 ret = HksInitForDe(keyAlias, encryptParamSet, &handleEncrypt, nullptr); in HksSm4CipherTestCaseGcm()
156 ret = HksInitForDe(keyAlias, decryptParamSet, &handleDecrypt, nullptr); in HksSm4CipherTestCaseGcm()
H A Dhks_hmac_derive_test_common.cpp40 ret = HksInitForDe(&keyAlias, deriveParamSet, &handleDerive, nullptr); in HksHmacDeriveTestNormalCase1()
70 ret = HksInitForDe(&keyAlias, deriveParamSet, &handleDerive, nullptr); in HksHmacDeriveTestNormalCase2()
91 ret = HksInitForDe(&keyAlias, deriveParamSet, &handleDeriveTest, nullptr); in HksHmacDeriveTestCmpCase()
H A Dhks_hkdf_derive_x25519_part2_test.cpp284 ret = HksInitForDe(&keyAlias, hkdfParamSet, &handle, nullptr);
334 ret = HksInitForDe(&keyAlias, hkdfParamSet, &handle, nullptr);
385 ret = HksInitForDe(&keyAlias, hkdfParamSet, &handle, nullptr);
445 ret = HksInitForDe(&keyAlias, hkdfParamSet, &handle, nullptr);
470 ret = HksInitForDe(&deriveKeyAlias, encryptParamSet, &handleBlobE, nullptr);
H A Dhks_hkdf_derive_test_common.cpp41 ret = HksInitForDe(&keyAlias, deriveParamSet, &handleDerive, nullptr); in HksHkdfDeriveTestNormalCase()
75 ret = HksInitForDe(&keyAlias, deriveParamSet, &handleDeriveTest, nullptr); in HksHkdfDeriveTestCmpCase()
H A Dhks_pbkdf2_derive_test_common.cpp41 ret = HksInitForDe(&keyAlias, deriveParamSet, &handleDerive, nullptr); in HksPbkdf2DeriveTestNormalCase()
76 ret = HksInitForDe(&keyAlias, deriveParamSet, &handleDerive, nullptr); in HksPbkdf2DeriveTestCmpCase()
H A Dhks_access_control_rsa_sign_verify_test_common.cpp145 int32_t ret = HksInitForDe(keyAlias, paramSet, &handle, &challengeBlob); in HksAcRsaThreeStageNormalCase()
198 int32_t ret = HksInitForDe(keyAlias, paramSet, &handle, &challengeBlob); in HksAcRsaThreeStageAbnormalCase()
297 int32_t ret = HksInitForDe(keyAlias1, paramSet1, &handle1, &challengeBlob1); in HksAcRsaThreeStageSignCustomCase()
303 ret = HksInitForDe(keyAlias2, paramSet2, &handle2, &challengeBlob2); in HksAcRsaThreeStageSignCustomCase()
356 int32_t ret = HksInitForDe(keyAlias1, paramSet1, &handle1, &challengeBlob1); in HksAcRsaThreeStageVerifyCustomCase()
363 ret = HksInitForDe(keyAlias2, paramSet2, &handle2, &challengeBlob2); in HksAcRsaThreeStageVerifyCustomCase()
H A Dhks_x25519_agree_test.cpp305 int32_t ret = HksInitForDe(keyAlias, initParamSet, &handle, nullptr); in HksX25519AgreeFinish()
332 int32_t ret = HksInitForDe(keyAlias, initParamSet, &handle, nullptr); in HksX25519AgreeAbort()
576 ret = HksInitForDe(NULL, initParamSet01, &handle, nullptr);
578 ret = HksInitForDe(NULL, initParamSet02, &handle, nullptr);
H A Dhks_access_control_test_common.cpp197 ret = HksInitForDe(&keyAlias, cipherParamSet, &handleEncrypt, nullptr); in AuthTokenEncrypt()
249 ret = HksInitForDe(&keyAlias, hmacParamSet, &handleHMAC, nullptr); in AuthTokenSign()
487 ret = HksInitForDe(&keyAlias, initParamSet, &handle, &challengeBlob); in CheckAccessCipherTest()
534 ret = HksInitForDe(&keyAlias, initParamSet, &handleHMAC, &challengeBlob); in CheckAccessHmacTest()
618 ret = HksInitForDe(&keyAlias, initParamSet, &handle, &challengeBlob); in CheckAccessAgreeTest()
682 ret = HksInitForDe(&keyAlias, initParamSet, &handleDerive, &challengeBlob); in CheckAccessDeriveTest()
H A Dhks_hmac_test.cpp368 ret = HksInitForDe(keyAlias, hmacParamSet, &handleHMAC, nullptr); in HksHmacTestCase()
544 ret = HksInitForDe(&keyAlias, hmacParamSet, &handle, nullptr);
593 ret = HksInitForDe(NULL, hmacParamSet, &handle, nullptr);
/ohos5.0/base/security/huks/test/unittest/huks_standard_test/three_stage_test/src/symmetric_alg_test/
H A Dhks_aes_cipher_test_common.cpp34 int32_t ret = HksInitForDe(keyAlias, encryptParamSet, &handleEncrypt, nullptr); in HksAesCipherTestEncrypt()
67 int32_t ret = HksInitForDe(keyAlias, encryptParamSet, &handleEncrypt, &challengeBlob); in HksAesCipherTestEncryptWithoutNonce()
105 int32_t ret = HksInitForDe(keyAlias, decryptParamSet, &handleDecrypt, nullptr); in HksAesCipherTestDecrypt()
143 ret = HksInitForDe(keyAlias, encryptParamSet, &handleEncrypt, nullptr); in HksAesCipherTestParamAbsentCase()
233 ret = HksInitForDe(keyAlias, decryptParamSet, &handleDecryptTest, nullptr); in HksAesCipherTestCaseGcm2()
296 ret = HksInitForDe(keyAlias, decryptParamSet, &handleDecryptTest, nullptr); in HksAesCipherTestCaseGcm3()
368 ret = HksInitForDe(keyAlias, decryptParamSet, &handleDecryptTest, nullptr); in HksAesCipherTestCaseGcm4()
519 ret = HksInitForDe(keyAlias, encryptParamSet, &handleEncrypt, nullptr);
539 ret = HksInitForDe(keyAlias, decryptParamSet, &handleDecrypt, nullptr);
591 ret = HksInitForDe(keyAlias, encryptParamSet, &handleEncrypt, nullptr);
[all …]
H A Dhks_aes_cipher_part3_test.cpp1049 ret = HksInitForDe(&keyAlias, encryptParamSet, &handleEncrypt, nullptr);
1068 ret = HksInitForDe(&keyAlias, decryptParamSet, &handleDecrypt, nullptr);
1122 ret = HksInitForDe(&keyAlias, encryptParamSet, &handleEncrypt, nullptr);
1173 ret = HksInitForDe(NULL, encryptParamSet, &handleEncrypt, nullptr);
H A Dhks_aes_cipher_ccm_test.cpp541 ret = HksInitForDe(keyAlias, paramSet, &handle, nullptr); in TestAesCcmAbort()
613 int32_t ret = HksInitForDe(keyAlias, encParamSet, &handleEncrypt, nullptr); in HksAesCcmCipherTestEncrypt()
651 ret = HksInitForDe(keyAlias, decParamSet, &handleDecrypt, nullptr); in HksAesCcmCipherTestDecrypt()
1931 ret = HksInitForDe(&keyAlias, encParamSet, &handleEncrypt, &tokenBlob);
1938 ret = HksInitForDe(&keyAlias, decParamSet, &handleEncrypt, &tokenBlob);
1987 ret = HksInitForDe(&keyAlias, encParamSet, &handleEncrypt, &tokenBlob);
1995 ret = HksInitForDe(&keyAlias, decParamSet, &handleEncrypt, &tokenBlob);
/ohos5.0/base/security/huks/test/unittest/huks_standard_test/three_stage_test/src/asymmetric_alg_test/
H A Dhks_rsa_sign_verify_test_common.cpp53 ret = HksInitForDe(&keyAlias, signParamSet, &handleSign, nullptr); in RsaSignVerifyTestNormalCase()
84 ret = HksInitForDe(&newKeyAlias, verifyParamSet, &handleVerify, nullptr); in RsaSignVerifyTestNormalCase()
177 ret = HksInitForDe(&keyAlias, signParamSet, &handleSign, nullptr); in HksRsaSignVerifyTestParamAbsentCase()
195 ret = HksInitForDe(&keyAlias, signParamSet, &handleSign, nullptr); in HksRsaSignVerifyTestParamPSSaltLenFailureCase()
223 ret = HksInitForDe(&keyAlias, signParamSet, &handleSign, nullptr); in RSASignVerifyTestAbnormalCase()
252 ret = HksInitForDe(&newKeyAlias, verifyParamSet, &handleVerify, nullptr); in RSASignVerifyTestAbnormalCase()
284 ret = HksInitForDe(&keyAlias, signParamSet, &handleSign, nullptr); in RSASignVerifyTestAbnormalCaseNoPadding()
H A Dhks_rsa_cipher_test_common.cpp26 int32_t ret = HksInitForDe(keyAlias, encryptParamSet, &handleEncrypt, nullptr); in HksRsaCipherTestEncryptAbnormal()
58 int32_t ret = HksInitForDe(keyAlias, encryptParamSet, &handleEncrypt, nullptr); in HksRsaCipherTestEncrypt()
88 int32_t ret = HksInitForDe(keyAlias, decryptParamSet, &handleDecrypt, nullptr); in HksRsaCipherTestDecrypt()
H A Dhks_ed25519_sign_verify_test.cpp68 int32_t ret = HksInitForDe(keyAlias, paramSet, &handleTest, nullptr); in HksTestSignVerify()
238 ret = HksInitForDe(&keyAlias, signParamSet, &handleSign, nullptr);
265 ret = HksInitForDe(&newKeyAlias, verifyParamSet, &handleVerify, nullptr);
311 ret = HksInitForDe(&keyAlias, signParamSet, &handleSign, nullptr);
356 ret = HksInitForDe(NULL, signParamSet, &handleSign, nullptr);
H A Dhks_ecc_sign_verify_test_common.cpp28 int32_t ret = HksInitForDe(keyAlias, paramSet, &handle, nullptr); in HksTestSignVerify()
120 ret = HksInitForDe(&keyAlias, signParamSet, &handle, nullptr); in HksTestSignVerifyParamAbsent()
H A Dhks_ecdh_agree_test_common.cpp33 int32_t ret = HksInitForDe(keyAlias, initParamSet, &handle, nullptr); in HksEcdhAgreeFinish()
60 int32_t ret = HksInitForDe(keyAlias, initParamSet, &handle, nullptr); in HksEcdhAgreeAbort()
H A Dhks_rsa_sign_verify_part8_test.cpp390 ret = HksInitForDe(&keyAlias, signParamSet, &handleSign, nullptr);
419 ret = HksInitForDe(&newKeyAlias, verifyParamSet, &handleVerify, nullptr);
467 ret = HksInitForDe(&keyAlias, signParamSet, &handleSign, nullptr);
510 ret = HksInitForDe(NULL, signParamSet, &handleSign, nullptr);
H A Dhks_rsa_cipher_part5_test.cpp413 ret = HksInitForDe(&newKeyAlias, encryptParamSet, &handleEncrypt, nullptr);
428 ret = HksInitForDe(&keyAlias, decryptParamSet, &handleDecrypt, nullptr);
485 ret = HksInitForDe(&newKeyAlias, encryptParamSet, &handleEncrypt, nullptr);
539 ret = HksInitForDe(NULL, encryptParamSet, &handleEncrypt, nullptr);
H A Dhks_dsa_sign_verify_test.cpp431 int32_t ret = HksInitForDe(keyAlias, paramSet, &handle, nullptr); in HksTestSignVerify()
748 ret = HksInitForDe(&keyAlias, signParamSet, &handleSign, nullptr);
794 ret = HksInitForDe(NULL, signParamSet, &handleSign, nullptr);
873 ret = HksInitForDe(&keyAlias, signParamSet, &handleSign, nullptr);
H A Dhks_dh_agree_test.cpp330 int32_t ret = HksInitForDe(keyAlias, initParamSet, &handle, nullptr); in HksDhAgreeFinish()
352 int32_t ret = HksInitForDe(keyAlias, initParamSet, &handle, nullptr); in HksDhAgreeAbort()
813 ret = HksInitForDe(NULL, initParamSet01, &handle, nullptr);
815 ret = HksInitForDe(NULL, initParamSet02, &handle, nullptr);
H A Dhks_ecdh_agree_part2_test.cpp533 ret = HksInitForDe(NULL, initParamSet01, &handle, nullptr);
535 ret = HksInitForDe(NULL, initParamSet02, &handle, nullptr);
/ohos5.0/base/security/huks/test/unittest/huks_common_test/include/
H A Dhks_test_adapt_for_de.h78 int32_t HksInitForDe(const struct HksBlob *keyAlias, const struct HksParamSet *paramSet,
/ohos5.0/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/sdk_test/src/
H A Dhks_session_max_test.cpp110 EXPECT_EQ(HksInitForDe(alias, paramSet, &handleBlob, &token), HKS_SUCCESS); in SessionMaxTest()

12