diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-11-11 11:20:48 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2017-11-11 11:20:48 +0000 |
commit | e3e838d0cfa524f9b4dc90d3a356d5ce26515ddc (patch) | |
tree | 8d1e499d6fedf6f4802a9005d16d0a4fc3520b11 /src | |
parent | keccak: some paranoid "can't happen" checks (diff) | |
download | monero-e3e838d0cfa524f9b4dc90d3a356d5ce26515ddc.tar.xz |
kaccak: remove unused return value
Diffstat (limited to 'src')
-rw-r--r-- | src/crypto/keccak.c | 4 | ||||
-rw-r--r-- | src/crypto/keccak.h | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/crypto/keccak.c b/src/crypto/keccak.c index 5564c7db3..fc6d487c2 100644 --- a/src/crypto/keccak.c +++ b/src/crypto/keccak.c @@ -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) diff --git a/src/crypto/keccak.h b/src/crypto/keccak.h index fbd8e1904..fb9d8bd04 100644 --- a/src/crypto/keccak.h +++ b/src/crypto/keccak.h @@ -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); |