Updated release notes for added ec_point_formats extension. Fix for setting serial number with random data where the MSB was cleared and resulted in a zero. Fix for build type mismatch error in wolfCrypt test with ed25519 and WOLFSSL_TEST_CERT defined.

This commit is contained in:
David Garske
2017-10-23 15:36:58 -07:00
parent 96667b47ee
commit 2dfad0918a
4 changed files with 10 additions and 4 deletions
+5 -1
View File
@@ -6417,9 +6417,13 @@ WOLFSSL_LOCAL int SetSerialNumber(const byte* sn, word32 snSz, byte* output)
i += SetLength(snSzInt, &output[i]);
XMEMCPY(&output[i], sn, snSzInt);
/* make sure number is positive */
if (snSzInt > 0) {
/* ensure positive (MSB not set) */
/* clear MSB bit */
output[i] &= ~0x80;
/* handle zero case... make 1 */
if (output[i] == 0)
output[i] = 0x01;
}
/* compute final length */
+1 -1
View File
@@ -12880,7 +12880,7 @@ static int ed25519_test_cert(void)
#endif /* HAVE_ED25519_VERIFY */
int ret;
byte* tmp;
int bytes;
size_t bytes;
FILE* file;
tmp = XMALLOC(FOURK_BUF, HEAP_HINT, DYNAMIC_TYPE_TMP_BUFFER);