BSHA3  0.17.99
P2P Blockchain, based on Bitcoin
sha3512.h
Go to the documentation of this file.
1 // Copyright (c) 2018 BSHA3 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_SHA3512_H
6 #define BITCOIN_CRYPTO_SHA3512_H
7 
8 #include <stdint.h>
9 #include <stdlib.h>
10 
11 #include <crypto/keccak/SHA3.h>
12 
14 class CSHA3512
15 {
16 private:
17  //uint32_t s[5];
18  //unsigned char buf[64];
19  //uint64_t bytes;
21 
22 public:
23  static const size_t OUTPUT_SIZE = 64;
24 
25  CSHA3512();
26  CSHA3512& Write(const unsigned char* data, size_t len);
27  void Finalize(unsigned char hash[OUTPUT_SIZE]);
28  CSHA3512& Reset();
29 };
30 
31 #endif // BITCOIN_CRYPTO_SHA3512_H
CSHA3512 & Write(const unsigned char *data, size_t len)
Definition: sha3512.cpp:30
static const size_t OUTPUT_SIZE
Definition: sha3512.h:23
SHA3_512 sha3Hasher
Definition: sha3512.h:20
void Finalize(unsigned char hash[OUTPUT_SIZE])
Definition: sha3512.cpp:36
SHA3-512 hash algorithm.
Definition: SHA3.h:51
CSHA3512()
Definition: sha3512.cpp:25
A hasher class for SHA3-512.
Definition: sha3512.h:14
CSHA3512 & Reset()
Definition: sha3512.cpp:41