diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2014-05-01 00:43:31 +0200 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2014-06-21 19:47:42 +0200 |
commit | a5bc9c09177420bd1c6a1f9ece9ecfbe80c453fe (patch) | |
tree | 80897d1583c290f1ec077e405cca070f41034eef /src/hash.h | |
parent | 13b5dfef64bbb77d583b2acc59e2b33f89645308 (diff) |
Add built-in RIPEMD-160 implementation
Diffstat (limited to 'src/hash.h')
-rw-r--r-- | src/hash.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/hash.h b/src/hash.h index 318399c334..39d42eefe2 100644 --- a/src/hash.h +++ b/src/hash.h @@ -7,14 +7,13 @@ #define BITCOIN_HASH_H #include "crypto/sha2.h" +#include "crypto/ripemd160.h" #include "serialize.h" #include "uint256.h" #include "version.h" #include <vector> -#include <openssl/ripemd.h> - /** A hasher class for Bitcoin's 256-bit hash (double SHA-256). */ class CHash256 { private: @@ -45,7 +44,7 @@ public: void Finalize(unsigned char *hash) { unsigned char buf[32]; sha.Finalize(buf); - RIPEMD160(buf, 32, hash); + CRIPEMD160().Write(buf, 32).Finalize(hash); } CHash160& Write(const unsigned char *data, size_t len) { |