Merge pull request #1199 from JacobBarthelmeh/fast-rsa

increase test buffer size to account for edge case
This commit is contained in:
dgarske 2017-10-27 15:48:14 -07:00 committed by GitHub
commit 2037a6c9ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -7821,7 +7821,9 @@ static int test_wc_RsaKeyToDer (void)
WC_RNG rng;
byte* der;
der = (byte*)XMALLOC(610, NULL, DYNAMIC_TYPE_TMP_BUFFER);
/* (2 x 128) + 2 (possible leading 00) + (5 x 64) + 5 (possible leading 00)
+ 3 (e) + 8 (ASN tag) + 10 (ASN length) + 4 seqSz + 3 version */
der = (byte*)XMALLOC(611, NULL, DYNAMIC_TYPE_TMP_BUFFER);
if (der == NULL) {
ret = WOLFSSL_FATAL_ERROR;
}