diff options
| author | Pieter Wuille <[email protected]> | 2014-05-01 00:43:31 +0200 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2014-06-21 19:47:42 +0200 |
| commit | a5bc9c09177420bd1c6a1f9ece9ecfbe80c453fe (patch) | |
| tree | 80897d1583c290f1ec077e405cca070f41034eef /src/hash.h | |
| parent | Move crypto implementations to src/crypto/ (diff) | |
| download | discoin-a5bc9c09177420bd1c6a1f9ece9ecfbe80c453fe.tar.xz discoin-a5bc9c09177420bd1c6a1f9ece9ecfbe80c453fe.zip | |
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 318399c33..39d42eefe 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) { |