hdac SDK
SDK for hdac blockchain development
ripemd160.h
1 // Copyright (c) 2014 The Bitcoin developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 
5 #ifndef BITCOIN_CRYPTO_RIPEMD160_H
6 #define BITCOIN_CRYPTO_RIPEMD160_H
7 
8 #include <stdint.h>
9 #include <stdlib.h>
10 
11 #include "crypto_global.h"
12 
15 {
16 private:
17  uint32_t s[5];
18  unsigned char buf[64];
19  size_t bytes;
20 
21 public:
22  static const size_t OUTPUT_SIZE = 20;
23 
24  CRIPEMD160();
25  CRIPEMD160& Write(const unsigned char* data, size_t len);
26  void Finalize(unsigned char hash[OUTPUT_SIZE]);
27  CRIPEMD160& Reset();
28 };
29 
30 #endif // BITCOIN_CRYPTO_RIPEMD160_H
Definition: ripemd160.h:14