diff options
author | Jeffrey Ryan <jeffreyryan@tutanota.com> | 2022-05-28 13:09:07 -0500 |
---|---|---|
committer | Jeffrey Ryan <jeffreyryan@tutanota.com> | 2022-07-11 20:32:03 -0500 |
commit | 4d7f6f5cd51c0c02ab00c4f652015331e69ea1e0 (patch) | |
tree | c4c7f346f087d40e7b04a3aec615c97a2dde3761 /src/crypto/hash-extra-skein.c | |
parent | Merge pull request #8340 (diff) | |
download | monero-4d7f6f5cd51c0c02ab00c4f652015331e69ea1e0.tar.xz |
GCC: fix some unused warnings
hash_extra: don't test for success in `jh_hash` and `skein_hash` since its guaranteed
device_ledger: move anonymous global variable apdu_verbose into .cpp file
Add comments to `refreshed` method variable in wallet2
Diffstat (limited to '')
-rw-r--r-- | src/crypto/hash-extra-skein.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/crypto/hash-extra-skein.c b/src/crypto/hash-extra-skein.c index 9ea9c4faa..3eacaba58 100644 --- a/src/crypto/hash-extra-skein.c +++ b/src/crypto/hash-extra-skein.c @@ -34,7 +34,9 @@ #include "hash-ops.h" #include "skein.h" +#define SKEIN_HASH_BITLEN HASH_SIZE * 8 + void hash_extra_skein(const void *data, size_t length, char *hash) { - int r = skein_hash(8 * HASH_SIZE, data, 8 * length, (uint8_t*)hash); - assert(SKEIN_SUCCESS == r); + // No need to check for failure b/c skein_hash only fails for invalid hash size + skein_hash(SKEIN_HASH_BITLEN, data, 8 * length, (uint8_t*)hash); } |