Skip to content

Commit ad1cc4e

Browse files
adjust test case return value check after rebase
1 parent c335f7d commit ad1cc4e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/api.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34801,10 +34801,10 @@ static int test_mldsa_verify_hash(void)
3480134801
#endif
3480234802
ExpectIntEQ(wc_dilithium_make_key(&key, &rng), 0);
3480334803

34804-
/* hashLen=4096 must be rejected with BUFFER_E, not overflow the stack */
34804+
/* hashLen=4096 must be rejected, not overflow the stack */
3480534805
ExpectIntEQ(wc_dilithium_verify_ctx_hash(sig, sizeof(sig), NULL, 0,
3480634806
WC_HASH_TYPE_SHA256, hash, sizeof(hash), &res, &key),
34807-
WC_NO_ERR_TRACE(BUFFER_E));
34807+
WC_NO_ERR_TRACE(BAD_LENGTH_E));
3480834808

3480934809
wc_dilithium_free(&key);
3481034810
DoExpectIntEQ(wc_FreeRng(&rng), 0);

0 commit comments

Comments
 (0)