mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-23 10:37:37 -07:00
kaccak: remove unused return value
This commit is contained in:
parent
4877aca2b6
commit
e3e838d0cf
@ -75,7 +75,7 @@ void keccakf(uint64_t st[25], int rounds)
|
||||
// compute a keccak hash (md) of given byte length from "in"
|
||||
typedef uint64_t state_t[25];
|
||||
|
||||
int keccak(const uint8_t *in, size_t inlen, uint8_t *md, int mdlen)
|
||||
void keccak(const uint8_t *in, size_t inlen, uint8_t *md, int mdlen)
|
||||
{
|
||||
state_t st;
|
||||
uint8_t temp[144];
|
||||
@ -116,8 +116,6 @@ int keccak(const uint8_t *in, size_t inlen, uint8_t *md, int mdlen)
|
||||
keccakf(st, KECCAK_ROUNDS);
|
||||
|
||||
memcpy(md, st, mdlen);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
void keccak1600(const uint8_t *in, size_t inlen, uint8_t *md)
|
||||
|
@ -16,7 +16,7 @@
|
||||
#endif
|
||||
|
||||
// compute a keccak hash (md) of given byte length from "in"
|
||||
int keccak(const uint8_t *in, size_t inlen, uint8_t *md, int mdlen);
|
||||
void keccak(const uint8_t *in, size_t inlen, uint8_t *md, int mdlen);
|
||||
|
||||
// update the state
|
||||
void keccakf(uint64_t st[25], int norounds);
|
||||
|
@ -74,16 +74,12 @@ namespace
|
||||
{
|
||||
size_t inlen = sizeof(source);
|
||||
int mdlen = (int)sizeof(md);
|
||||
int ret = keccak(source, inlen, md, mdlen);
|
||||
keccak(source, inlen, md, mdlen);
|
||||
|
||||
if (md[0] != 0x00)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else if (!ret)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user