From 2b821751fe1b2ed9fa350ada9100a86c986278b4 Mon Sep 17 00:00:00 2001 From: Ross Nicoll Date: Sat, 20 Jan 2018 17:51:39 +0000 Subject: Replace HMAC_SHA256 with Bitcoin's version --- src/crypto/hmac_sha256.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/crypto/hmac_sha256.h') diff --git a/src/crypto/hmac_sha256.h b/src/crypto/hmac_sha256.h index d31fda1dd..5bdc9bc59 100644 --- a/src/crypto/hmac_sha256.h +++ b/src/crypto/hmac_sha256.h @@ -9,6 +9,7 @@ #include #include +#include /** A hasher class for HMAC-SHA-256. */ class CHMAC_SHA256 @@ -21,6 +22,10 @@ public: static const size_t OUTPUT_SIZE = 32; CHMAC_SHA256(const unsigned char* key, size_t keylen); + void Copy(CHMAC_SHA256* dest) + { + memcpy(dest, this, sizeof(CHMAC_SHA256)); + } CHMAC_SHA256& Write(const unsigned char* data, size_t len) { inner.Write(data, len); -- cgit v1.2.3