aboutsummaryrefslogtreecommitdiff
path: root/src/crypto/ripemd160.h
diff options
context:
space:
mode:
authorPieter Wuille <sipa@ulyssis.org>2014-06-12 13:34:29 +0200
committerPieter Wuille <pieter.wuille@gmail.com>2014-06-21 19:47:43 +0200
commita0495bb68c6eff9c732d458bacab10490d6452b4 (patch)
tree191a3bb7929e1de43ea484873587249fd2533b19 /src/crypto/ripemd160.h
parent4791b99e2dea0593775a8c75f62c8406d340191e (diff)
Add <Hasher>::OUTPUT_SIZE
Diffstat (limited to 'src/crypto/ripemd160.h')
-rw-r--r--src/crypto/ripemd160.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/crypto/ripemd160.h b/src/crypto/ripemd160.h
index cab1d0bb46..44bd4879a5 100644
--- a/src/crypto/ripemd160.h
+++ b/src/crypto/ripemd160.h
@@ -16,9 +16,11 @@ private:
size_t bytes;
public:
+ static const size_t OUTPUT_SIZE = 20;
+
CRIPEMD160();
CRIPEMD160& Write(const unsigned char *data, size_t len);
- void Finalize(unsigned char *hash);
+ void Finalize(unsigned char hash[OUTPUT_SIZE]);
CRIPEMD160& Reset();
};