Searched refs:kekCipherText (Results 1 – 2 of 2) sorted by relevance
| /test/xts/acts/security/huks/huks_napi_BasicTest/src/ |
| D | huks_wrapped_test_common.cpp | 159 … struct OH_Huks_Blob *plainCipherText, struct OH_Huks_Blob *kekCipherText) in EncryptImportedPlainKeyAndKek() argument 168 … ret = HuksEncrypt(params->callerAgreeKeyAlias, encryptParamSet, params->callerKek, kekCipherText); in EncryptImportedPlainKeyAndKek() 174 struct OH_Huks_Blob *kekCipherText, struct OH_Huks_Blob *peerPublicKey, in ImportWrappedKey() argument 195 …if (memcpy_s(agreeKeyTagBuf, tagSize, kekCipherText->data + (kekCipherText->size - tagSize), tagSi… in ImportWrappedKey() 198 kekCipherText->size -= tagSize; in ImportWrappedKey() 200 …uks_Blob *blobArray[] = {peerPublicKey, &commonAad, &commonNonce, &agreeKeyTag, kekCipherText, in ImportWrappedKey() 235 struct OH_Huks_Blob kekCipherText = {OH_HUKS_MAX_KEY_SIZE, kekCipherTextBuffer}; in HksImportWrappedKeyTestCommonCase() local 240 EncryptImportedPlainKeyAndKek(params, &plainCipherText, &kekCipherText); in HksImportWrappedKeyTestCommonCase() 241 … ImportWrappedKey(params, &plainCipherText, &kekCipherText, &callerSelfPublicKey, &wrappedKeyData); in HksImportWrappedKeyTestCommonCase()
|
| /test/xts/acts/security/huks/huks_ndk_Test/entry/src/main/cpp/ |
| D | utils.cpp | 368 struct OH_Huks_Blob* kekCipherText) in EncryptImportedPlainKeyAndKek() argument 380 … ret = HuksEncrypt(params->callerAgreeKeyAlias, encryptParamSet, params->callerKek, kekCipherText); in EncryptImportedPlainKeyAndKek() 385 … struct OH_Huks_Blob* plainCipher, struct OH_Huks_Blob* kekCipherText, in ImportWrappedKey() argument 399 std::copy(kekCipherText->data + (kekCipherText->size - tagSize), in ImportWrappedKey() 400 kekCipherText->data + (kekCipherText->size - tagSize) + tagSize, agreeKeyTagBuf); in ImportWrappedKey() 401 kekCipherText->size -= tagSize; in ImportWrappedKey() 402 …uks_Blob* blobArray[] = {peerPublicKey, &commonAad, &commonNonce, &agreeKeyTag, kekCipherText, in ImportWrappedKey() 430 struct OH_Huks_Blob kekCipherText = {OH_HUKS_MAX_KEY_SIZE, kekCipherTextBuffer}; in HksImportWrappedKeyTestCommonCase() local 444 ret = EncryptImportedPlainKeyAndKek(params, &plainCipherText, &kekCipherText); in HksImportWrappedKeyTestCommonCase() 448 …ret = ImportWrappedKey(params, &plainCipherText, &kekCipherText, &callerSelfPublicKey, &wrappedKey… in HksImportWrappedKeyTestCommonCase()
|