mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-05-04 06:20:49 +02:00
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:
+5
-1
@@ -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 */
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user