barretenberg
Loading...
Searching...
No Matches
keccak.hpp
1/* ethash: C/C++ implementation of Ethash, the Ethereum Proof of Work algorithm.
2 * Copyright 2018-2019 Pawel Bylica.
3 * Licensed under the Apache License, Version 2.0.
4 */
5
6#pragma once
7
8#include "./hash_types.hpp"
9
10#include <stddef.h>
11
12#ifdef __cplusplus
13#define NOEXCEPT noexcept
14#else
15#define NOEXCEPT
16#endif
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
30void ethash_keccakf1600(uint64_t state[25]) NOEXCEPT;
31
32struct keccak256 ethash_keccak256(const uint8_t* data, size_t size) NOEXCEPT;
33
34struct keccak256 hash_field_elements(const uint64_t* limbs, size_t num_elements);
35
36struct keccak256 hash_field_element(const uint64_t* limb);
37
38#ifdef __cplusplus
39}
40#endif
Definition: hash_types.hpp:14