Skip to content

Commit a633525

Browse files
AlexLanzanoCopilot
andauthored
Use actual wrappedDataSz returned from the server instead of sizeof
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 108e18c commit a633525

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/wh_test_keywrap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ static int _AesGcm_TestDataWrap(whClientContext* client)
242242
}
243243

244244
ret = wh_Client_DataUnwrap(client, WC_CIPHER_AES_GCM, WH_TEST_KEKID,
245-
wrappedData, sizeof(wrappedData), unwrappedData,
245+
wrappedData, wrappedDataSz, unwrappedData,
246246
&unwrappedDataSz);
247247
if (ret != WH_ERROR_OK) {
248248
WH_ERROR_PRINT("Failed to wh_Client_DataUnwrap %d\n", ret);

0 commit comments

Comments
 (0)