#include "internal/Hacl_Hash_SHA3.h"
const
uint32_t
Hacl_Hash_SHA3_keccak_rotc[24U] = …;
const
uint32_t
Hacl_Hash_SHA3_keccak_piln[24U] = …;
const
uint64_t
Hacl_Hash_SHA3_keccak_rndc[24U] = …;
static void absorb_inner_32(uint8_t *b, uint64_t *s)
{ … }
static uint32_t block_len(Spec_Hash_Definitions_hash_alg a)
{ … }
static uint32_t hash_len(Spec_Hash_Definitions_hash_alg a)
{ … }
void
Hacl_Hash_SHA3_update_multi_sha3(
Spec_Hash_Definitions_hash_alg a,
uint64_t *s,
uint8_t *blocks,
uint32_t n_blocks
)
{ … }
void
Hacl_Hash_SHA3_update_last_sha3(
Spec_Hash_Definitions_hash_alg a,
uint64_t *s,
uint8_t *input,
uint32_t input_len
)
{ … }
hash_buf2;
Spec_Hash_Definitions_hash_alg Hacl_Hash_SHA3_get_alg(Hacl_Hash_SHA3_state_t *s)
{ … }
Hacl_Hash_SHA3_state_t *Hacl_Hash_SHA3_malloc(Spec_Hash_Definitions_hash_alg a)
{ … }
void Hacl_Hash_SHA3_free(Hacl_Hash_SHA3_state_t *state)
{ … }
Hacl_Hash_SHA3_state_t *Hacl_Hash_SHA3_copy(Hacl_Hash_SHA3_state_t *state)
{ … }
void Hacl_Hash_SHA3_reset(Hacl_Hash_SHA3_state_t *state)
{ … }
Hacl_Streaming_Types_error_code
Hacl_Hash_SHA3_update(Hacl_Hash_SHA3_state_t *state, uint8_t *chunk, uint32_t chunk_len)
{ … }
static void
digest_(
Spec_Hash_Definitions_hash_alg a,
Hacl_Hash_SHA3_state_t *state,
uint8_t *output,
uint32_t l
)
{ … }
Hacl_Streaming_Types_error_code
Hacl_Hash_SHA3_digest(Hacl_Hash_SHA3_state_t *state, uint8_t *output)
{ … }
Hacl_Streaming_Types_error_code
Hacl_Hash_SHA3_squeeze(Hacl_Hash_SHA3_state_t *s, uint8_t *dst, uint32_t l)
{ … }
uint32_t Hacl_Hash_SHA3_block_len(Hacl_Hash_SHA3_state_t *s)
{ … }
uint32_t Hacl_Hash_SHA3_hash_len(Hacl_Hash_SHA3_state_t *s)
{ … }
bool Hacl_Hash_SHA3_is_shake(Hacl_Hash_SHA3_state_t *s)
{ … }
void Hacl_Hash_SHA3_absorb_inner_32(uint32_t rateInBytes, uint8_t *b, uint64_t *s)
{ … }
void
Hacl_Hash_SHA3_shake128(
uint8_t *output,
uint32_t outputByteLen,
uint8_t *input,
uint32_t inputByteLen
)
{ … }
void
Hacl_Hash_SHA3_shake256(
uint8_t *output,
uint32_t outputByteLen,
uint8_t *input,
uint32_t inputByteLen
)
{ … }
void Hacl_Hash_SHA3_sha3_224(uint8_t *output, uint8_t *input, uint32_t inputByteLen)
{ … }
void Hacl_Hash_SHA3_sha3_256(uint8_t *output, uint8_t *input, uint32_t inputByteLen)
{ … }
void Hacl_Hash_SHA3_sha3_384(uint8_t *output, uint8_t *input, uint32_t inputByteLen)
{ … }
void Hacl_Hash_SHA3_sha3_512(uint8_t *output, uint8_t *input, uint32_t inputByteLen)
{ … }
uint64_t *Hacl_Hash_SHA3_state_malloc(void)
{ … }
void Hacl_Hash_SHA3_state_free(uint64_t *s)
{ … }
void
Hacl_Hash_SHA3_shake128_absorb_nblocks(uint64_t *state, uint8_t *input, uint32_t inputByteLen)
{ … }
void
Hacl_Hash_SHA3_shake128_absorb_final(uint64_t *state, uint8_t *input, uint32_t inputByteLen)
{ … }
void
Hacl_Hash_SHA3_shake128_squeeze_nblocks(
uint64_t *state,
uint8_t *output,
uint32_t outputByteLen
)
{ … }