mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-13 14:14:00 +01:00
Add HMAC-SHA512 to hash
This commit is contained in:
10
src/hash.h
10
src/hash.h
@@ -123,4 +123,14 @@ inline uint160 Hash160(const std::vector<unsigned char>& vch)
|
||||
|
||||
unsigned int MurmurHash3(unsigned int nHashSeed, const std::vector<unsigned char>& vDataToHash);
|
||||
|
||||
typedef struct
|
||||
{
|
||||
SHA512_CTX ctxInner;
|
||||
SHA512_CTX ctxOuter;
|
||||
} HMAC_SHA512_CTX;
|
||||
|
||||
int HMAC_SHA512_Init(HMAC_SHA512_CTX *pctx, const void *pkey, size_t len);
|
||||
int HMAC_SHA512_Update(HMAC_SHA512_CTX *pctx, const void *pdata, size_t len);
|
||||
int HMAC_SHA512_Final(unsigned char *pmd, HMAC_SHA512_CTX *pctx);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user