|
|
@ -25,11 +25,13 @@ |
|
|
|
extern "C" { |
|
|
|
struct ethash_h256; |
|
|
|
typedef struct ethash_h256 ethash_h256_t; |
|
|
|
void SHA3_256(ethash_h256_t const* ret, const uint8_t *data, size_t size) { |
|
|
|
void SHA3_256(ethash_h256_t const* ret, const uint8_t *data, size_t size) |
|
|
|
{ |
|
|
|
CryptoPP::SHA3_256().CalculateDigest((uint8_t*)ret, data, size); |
|
|
|
} |
|
|
|
|
|
|
|
void SHA3_512(uint8_t *const ret, const uint8_t *data, size_t size) { |
|
|
|
void SHA3_512(uint8_t *const ret, const uint8_t *data, size_t size) |
|
|
|
{ |
|
|
|
CryptoPP::SHA3_512().CalculateDigest(ret, data, size); |
|
|
|
} |
|
|
|
} |
|
|
|