Home
last modified time | relevance | path

Searched refs:cipherTextBlob (Results 1 – 5 of 5) sorted by relevance

/ohos5.0/base/security/huks/test/fuzz_test/innerapi_fuzzer/hksrkc_fuzzer/
H A Dhksrkc_fuzzer.cpp45 …struct HksBlob cipherTextBlob = { sizeof(ksfDataV1.ksfDataMk.mkCiphertext), ksfDataV1.ksfDataMk.mk… in TestGetMkFromOldKsfFile() local
46 ret = RkcMkCryptV1(&ksfDataV1, &tempMkBlob, &cipherTextBlob, false); in TestGetMkFromOldKsfFile()
61 …struct HksBlob cipherTextBlob = { sizeof(newMk.ksfDataMk.mkCiphertext), newMk.ksfDataMk.mkCipherte… in TestStoreNewKsfFile() local
62 ret = RkcMkCrypt(&(newRkc.ksfDataRkc), &(newMk.ksfDataMk), &tempMkBlob, &cipherTextBlob, true); in TestStoreNewKsfFile()
82 …struct HksBlob cipherTextBlob = { sizeof(newMk.ksfDataMk.mkCiphertext), newMk.ksfDataMk.mkCipherte… in TestGetMkFromNewKsfFile() local
83 ret = RkcMkCrypt(&newRkc.ksfDataRkc, &newMk.ksfDataMk, &tempMkBlob, &cipherTextBlob, false); in TestGetMkFromNewKsfFile()
/ohos5.0/base/security/huks/test/unittest/huks_lite_test/liteos_a_adapter/upgrade_test/version_two/
H A Dhks_upgrade_rkc_test.cpp75 …struct HksBlob cipherTextBlob = { sizeof(ksfDataV1.ksfDataMk.mkCiphertext), ksfDataV1.ksfDataMk.mk… in TestGetMkFromOldKsfFile() local
76 ret = RkcMkCryptV1(&ksfDataV1, &tempMkBlob, &cipherTextBlob, false); in TestGetMkFromOldKsfFile()
93 …struct HksBlob cipherTextBlob = { sizeof(newMk.ksfDataMk.mkCiphertext), newMk.ksfDataMk.mkCipherte… in TestStoreNewKsfFile() local
94 ret = RkcMkCrypt(&(newRkc.ksfDataRkc), &(newMk.ksfDataMk), &tempMkBlob, &cipherTextBlob, true); in TestStoreNewKsfFile()
120 …struct HksBlob cipherTextBlob = { sizeof(newMk.ksfDataMk.mkCiphertext), newMk.ksfDataMk.mkCipherte… in TestGetMkFromNewKsfFile() local
121 ret = RkcMkCrypt(&newRkc.ksfDataRkc, &newMk.ksfDataMk, &tempMkBlob, &cipherTextBlob, false); in TestGetMkFromNewKsfFile()
/ohos5.0/base/security/crypto_framework/frameworks/js/napi/crypto/src/
H A Dnapi_sm2_crypto_util.cpp74 HcfBlob *cipherTextBlob = GetBlobFromNapi(env, arg, SM2_UTIL_PARAM_CIPHER_TEXT_DATA); in GetSm2CipherTextSpecFromNapiValue() local
75 if (cipherTextBlob == nullptr) { in GetSm2CipherTextSpecFromNapiValue()
83 HcfBlobDataFree(cipherTextBlob); in GetSm2CipherTextSpecFromNapiValue()
84 HcfFree(cipherTextBlob); in GetSm2CipherTextSpecFromNapiValue()
88 tempSpec->cipherTextData = *cipherTextBlob; in GetSm2CipherTextSpecFromNapiValue()
91 HcfFree(cipherTextBlob); in GetSm2CipherTextSpecFromNapiValue()
/ohos5.0/base/security/huks/frameworks/huks_standard/main/crypto_engine/rkc/src/
H A Dhks_rkc_v1.c276 …struct HksBlob cipherTextBlob = { HKS_RKC_MK_CIPHER_TEXT_LEN, newKsfDataMkWithVer->ksfDataMk.mkCip… in UpgradeV1ToV2() local
278 &cipherTextBlob, true); /* true: encrypt */ in UpgradeV1ToV2()
H A Dhks_rkc.c325 struct HksBlob cipherTextBlob = { HKS_RKC_MK_CIPHER_TEXT_LEN, ksfDataMk->mkCiphertext }; in RkcMakeMk() local
326 ret = RkcMkCrypt(ksfDataRkc, ksfDataMk, &mk, &cipherTextBlob, true); /* true: encrypt */ in RkcMakeMk()