diff options
| author | Pieter Wuille <[email protected]> | 2014-06-12 13:34:29 +0200 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2014-06-21 19:47:43 +0200 |
| commit | a0495bb68c6eff9c732d458bacab10490d6452b4 (patch) | |
| tree | 191a3bb7929e1de43ea484873587249fd2533b19 /src/crypto/sha1.cpp | |
| parent | crypto: create a separate lib for crypto functions (diff) | |
| download | discoin-a0495bb68c6eff9c732d458bacab10490d6452b4.tar.xz discoin-a0495bb68c6eff9c732d458bacab10490d6452b4.zip | |
Add <Hasher>::OUTPUT_SIZE
Diffstat (limited to 'src/crypto/sha1.cpp')
| -rw-r--r-- | src/crypto/sha1.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/crypto/sha1.cpp b/src/crypto/sha1.cpp index e0f32b7d1..304401a50 100644 --- a/src/crypto/sha1.cpp +++ b/src/crypto/sha1.cpp @@ -172,7 +172,7 @@ CSHA1& CSHA1::Write(const unsigned char *data, size_t len) { return *this; } -void CSHA1::Finalize(unsigned char *hash) { +void CSHA1::Finalize(unsigned char hash[OUTPUT_SIZE]) { static const unsigned char pad[64] = {0x80}; unsigned char sizedesc[8]; WriteBE64(sizedesc, bytes << 3); |