Skip to content

Commit a32df9f

Browse files
committed
Size the RSA 2048 key export buffers so the UEFI test does not fail on BUFFER_E
1 parent 86f07c7 commit a32df9f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

uefi-library/src/test_app.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -961,7 +961,7 @@ static EFI_STATUS TestRsa(void)
961961

962962
/* Export key components */
963963
{
964-
UINT8 e[4], n[128], d[128], p[64], q[64];
964+
UINT8 e[4], n[256], d[256], p[128], q[128];
965965
word32 eSz=sizeof(e), nSz=sizeof(n), dSz=sizeof(d), pSz=sizeof(p), qSz=sizeof(q);
966966
ret = Api->wc_RsaExportKey(&key, e,&eSz, n,&nSz, d,&dSz, p,&pSz, q,&qSz);
967967
status = CheckWolfResult(ret, L"wc_RsaExportKey"); if (EFI_ERROR(status)) goto cleanup;

0 commit comments

Comments
 (0)