aboutsummaryrefslogtreecommitdiff
path: root/src/hash.h
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2014-05-01 00:43:31 +0200
committerPieter Wuille <pieter.wuille@gmail.com>2014-06-21 19:47:42 +0200
commita5bc9c09177420bd1c6a1f9ece9ecfbe80c453fe (patch)
tree80897d1583c290f1ec077e405cca070f41034eef /src/hash.h
parent13b5dfef64bbb77d583b2acc59e2b33f89645308 (diff)
Add built-in RIPEMD-160 implementation
Diffstat (limited to 'src/hash.h')
-rw-r--r--src/hash.h5
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) {