Skip to content

Commit 14a4327

Browse files
committed
fix ctx_sz bound for prehash signing
Signed-off-by: h2parson <[email protected]>
1 parent 9a060c8 commit 14a4327

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

slh_prehash.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ static size_t hash_slh_dsa_pad(uint8_t *mp, const uint8_t *m, size_t m_sz,
4747
const uint8_t shake_256_oid[11] = {0x06, 0x09, 0x60, 0x86, 0x48, 0x01,
4848
0x65, 0x03, 0x04, 0x02, 0x0C};
4949

50-
if (ctx_sz > 256)
50+
if (ctx_sz > 255)
5151
{
5252
return 0;
5353
}

0 commit comments

Comments
 (0)