Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
hash_types.hpp
Go to the documentation of this file.
1
// === AUDIT STATUS ===
2
// internal: { status: Complete, auditors: [Nishat], commit: }
3
// external_1: { status: not started, auditors: [], commit: }
4
// external_2: { status: not started, auditors: [], commit: }
5
// =====================
6
7
/* ethash: C/C++ implementation of Ethash, the Ethereum Proof of Work algorithm.
8
* Copyright 2018-2019 Pawel Bylica.
9
* Licensed under the Apache License, Version 2.0.
10
*/
11
12
#pragma once
13
14
#include <stdint.h>
15
16
#ifdef __cplusplus
17
extern
"C"
{
18
#endif
19
20
enum
{
21
KECCAKF1600_LANES
= 25,
22
KECCAKF1600_ROUNDS
= 24,
23
KECCAK256_OUTPUT_BYTES
= 32,
24
KECCAK256_OUTPUT_WORDS
= 4
// 4 * 64 = 256 bits
25
};
26
struct
keccak256
{
27
uint64_t
word64s
[
KECCAK256_OUTPUT_WORDS
];
28
};
29
30
#ifdef __cplusplus
31
}
32
#endif
KECCAK256_OUTPUT_BYTES
@ KECCAK256_OUTPUT_BYTES
Definition
hash_types.hpp:23
KECCAK256_OUTPUT_WORDS
@ KECCAK256_OUTPUT_WORDS
Definition
hash_types.hpp:24
KECCAKF1600_ROUNDS
@ KECCAKF1600_ROUNDS
Definition
hash_types.hpp:22
KECCAKF1600_LANES
@ KECCAKF1600_LANES
Definition
hash_types.hpp:21
keccak256
Definition
hash_types.hpp:26
keccak256::word64s
uint64_t word64s[KECCAK256_OUTPUT_WORDS]
Definition
hash_types.hpp:27
src
barretenberg
crypto
keccak
hash_types.hpp
Generated by
1.9.8