Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/api.c
Original file line number Diff line number Diff line change
Expand Up @@ -38112,7 +38112,7 @@ static int rfc9802_verify_one_cert(const char* path, word32 expectedKeyOID,
* its bytes lie between (certBegin + outerSeqHeader) and sigIndex.
* Picking the midpoint ensures we're inside TBS regardless of the
* fixture's DN / extensions layout. */
if (tampered != NULL && sigIndex > certBegin + 8u) {
if (tampered != NULL && sigIndex > certBegin + 8U) {
word32 midTbs = certBegin + 8 + ((sigIndex - (certBegin + 8)) / 2);
XMEMCPY(tampered, buf, (size_t)bytes);
tampered[midTbs] ^= 0x01;
Expand Down
2 changes: 1 addition & 1 deletion tests/api/test_mldsa.c
Original file line number Diff line number Diff line change
Expand Up @@ -3241,9 +3241,9 @@ static int dilithium_oneasymkey_version_check(int level)
ExpectIntEQ(test_pkcs8_get_version_byte(ref, (word32)refSz), 1);

idx = 0;
PRIVATE_KEY_UNLOCK();
ExpectIntEQ(wc_Dilithium_PrivateKeyDecode(ref, &idx, &key2,
(word32)refSz), 0);
PRIVATE_KEY_UNLOCK();
ExpectIntEQ(rtSz = wc_Dilithium_KeyToDer(&key2, rt,
DILITHIUM_MAX_DER_SIZE), refSz);
PRIVATE_KEY_LOCK();
Expand Down
1 change: 1 addition & 0 deletions wolfcrypt/test/test.c
Original file line number Diff line number Diff line change
Expand Up @@ -36887,6 +36887,7 @@ static wc_test_ret_t ecc_test_curve_size(WC_RNG* rng, int keySize, int testVerif
}

x = ECC_SIG_SIZE;
XMEMSET(sig, 0, ECC_SIG_SIZE);
do {
#if defined(WOLFSSL_ASYNC_CRYPT)
ret = wc_AsyncWait(ret, &userA->asyncDev, WC_ASYNC_FLAG_CALL_AGAIN);
Expand Down
Loading