keccak: fix sanity check bounds test
Nothing calls this with those inputs
This commit is contained in:
parent
ad11db9144
commit
03887f1140
|
@ -99,7 +99,7 @@ void keccak(const uint8_t *in, size_t inlen, uint8_t *md, int mdlen)
|
||||||
}
|
}
|
||||||
|
|
||||||
// last block and padding
|
// last block and padding
|
||||||
if (inlen >= sizeof(temp) || inlen > rsiz || rsiz - inlen + inlen + 1 >= sizeof(temp) || rsiz == 0 || rsiz - 1 >= sizeof(temp) || rsizw * 8 > sizeof(temp))
|
if (inlen + 1 >= sizeof(temp) || inlen > rsiz || rsiz - inlen + inlen + 1 >= sizeof(temp) || rsiz == 0 || rsiz - 1 >= sizeof(temp) || rsizw * 8 > sizeof(temp))
|
||||||
{
|
{
|
||||||
fprintf(stderr, "Bad keccak use");
|
fprintf(stderr, "Bad keccak use");
|
||||||
abort();
|
abort();
|
||||||
|
|
Loading…
Reference in New Issue