Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
keccak.cpp File Reference
#include "keccak.hpp"
#include "./hash_types.hpp"
#include <endian.h>

Go to the source code of this file.

Macros

#define to_le64(X)   X
 
#define to_be64(X)   __builtin_bswap64(X)
 

Functions

struct keccak256 ethash_keccak256 (const uint8_t *data, size_t size) NOEXCEPT
 
struct keccak256 hash_field_elements (const uint64_t *limbs, size_t num_elements)
 
struct keccak256 hash_field_element (const uint64_t *limb)
 

Macro Definition Documentation

◆ to_be64

#define to_be64 (   X)    __builtin_bswap64(X)

Definition at line 39 of file keccak.cpp.

◆ to_le64

#define to_le64 (   X)    X

Definition at line 33 of file keccak.cpp.

Function Documentation

◆ ethash_keccak256()

struct keccak256 ethash_keccak256 ( const uint8_t *  data,
size_t  size 
)

Definition at line 107 of file keccak.cpp.

◆ hash_field_element()

struct keccak256 hash_field_element ( const uint64_t *  limb)

Definition at line 136 of file keccak.cpp.

◆ hash_field_elements()

struct keccak256 hash_field_elements ( const uint64_t *  limbs,
size_t  num_elements 
)

Definition at line 114 of file keccak.cpp.