We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 36328e3 commit adc7b81Copy full SHA for adc7b81
1 file changed
wolfcrypt/src/ripemd.c
@@ -317,7 +317,7 @@ int wc_RipeMdFinal(RipeMd* ripemd, byte* hash)
317
AddLength(ripemd, ripemd->buffLen); /* before adding pads */
318
319
/* ensure we have a valid buffer length; */
320
- if (ripemd->buffLen > RIPEMD_BLOCK_SIZE) {
+ if (ripemd->buffLen >= RIPEMD_BLOCK_SIZE) {
321
/* exit with error code if there's a bad buffer size in buffLen */
322
return BAD_STATE_E;
323
} /* buffLen check */
0 commit comments