Raven Core  3.0.0
P2P Digital Currency
ripemd160.h
Go to the documentation of this file.
1 // Copyright (c) 2014-2016 The Bitcoin Core developers
2 // Copyright (c) 2017-2019 The Raven Core developers
3 // Distributed under the MIT software license, see the accompanying
4 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
5 
6 #ifndef RAVEN_CRYPTO_RIPEMD160_H
7 #define RAVEN_CRYPTO_RIPEMD160_H
8 
9 #include <stdint.h>
10 #include <stdlib.h>
11 
14 {
15 private:
16  uint32_t s[5];
17  unsigned char buf[64];
18  uint64_t bytes;
19 
20 public:
21  static const size_t OUTPUT_SIZE = 20;
22 
23  CRIPEMD160();
24  CRIPEMD160& Write(const unsigned char* data, size_t len);
25  void Finalize(unsigned char hash[OUTPUT_SIZE]);
26  CRIPEMD160& Reset();
27 };
28 
29 #endif // RAVEN_CRYPTO_RIPEMD160_H
uint64_t bytes
Definition: ripemd160.h:18
unsigned char buf[64]
Definition: ripemd160.h:17
static const size_t OUTPUT_SIZE
Definition: ripemd160.h:21
CRIPEMD160 & Reset()
Definition: ripemd160.cpp:288
uint32_t s[5]
Definition: ripemd160.h:16
CRIPEMD160 & Write(const unsigned char *data, size_t len)
Definition: ripemd160.cpp:248
void Finalize(unsigned char hash[OUTPUT_SIZE])
Definition: ripemd160.cpp:274
A hasher class for RIPEMD-160.
Definition: ripemd160.h:13