aboutsummaryrefslogtreecommitdiff
path: root/src/hash.h
diff options
context:
space:
mode:
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) {