36 #ifndef SPH_KECCAK_H__ 37 #define SPH_KECCAK_H__ 49 #define SPH_SIZE_keccak224 224 54 #define SPH_SIZE_keccak256 256 59 #define SPH_SIZE_keccak384 384 64 #define SPH_SIZE_keccak512 512 77 #ifndef DOXYGEN_IGNORE 78 unsigned char buf[144];
152 void *cc,
unsigned ub,
unsigned n,
void *dst);
197 void *cc,
unsigned ub,
unsigned n,
void *dst);
242 void *cc,
unsigned ub,
unsigned n,
void *dst);
287 void *cc,
unsigned ub,
unsigned n,
void *dst);
void sph_keccak384_addbits_and_close(void *cc, unsigned ub, unsigned n, void *dst)
Add a few additional bits (0 to 7) to the current computation, then terminate it and output the resul...
sph_keccak_context sph_keccak256_context
Type for a Keccak-256 context (identical to the common context).
sph_keccak_context sph_keccak224_context
Type for a Keccak-224 context (identical to the common context).
void sph_keccak512_init(void *cc)
Initialize a Keccak-512 context.
void sph_keccak512_addbits_and_close(void *cc, unsigned ub, unsigned n, void *dst)
Add a few additional bits (0 to 7) to the current computation, then terminate it and output the resul...
void sph_keccak256(void *cc, const void *data, size_t len)
Process some data bytes.
void sph_keccak256_addbits_and_close(void *cc, unsigned ub, unsigned n, void *dst)
Add a few additional bits (0 to 7) to the current computation, then terminate it and output the resul...
void sph_keccak256_init(void *cc)
Initialize a Keccak-256 context.
void sph_keccak512(void *cc, const void *data, size_t len)
Process some data bytes.
void sph_keccak224_close(void *cc, void *dst)
Terminate the current Keccak-224 computation and output the result into the provided buffer...
sph_keccak_context sph_keccak384_context
Type for a Keccak-384 context (identical to the common context).
void sph_keccak224_init(void *cc)
Initialize a Keccak-224 context.
void sph_keccak224(void *cc, const void *data, size_t len)
Process some data bytes.
sph_keccak_context sph_keccak512_context
Type for a Keccak-512 context (identical to the common context).
void sph_keccak384(void *cc, const void *data, size_t len)
Process some data bytes.
void sph_keccak384_init(void *cc)
Initialize a Keccak-384 context.
void sph_keccak224_addbits_and_close(void *cc, unsigned ub, unsigned n, void *dst)
Add a few additional bits (0 to 7) to the current computation, then terminate it and output the resul...
void sph_keccak256_close(void *cc, void *dst)
Terminate the current Keccak-256 computation and output the result into the provided buffer...
This structure is a context for Keccak computations: it contains the intermediate values and some dat...
void sph_keccak512_close(void *cc, void *dst)
Terminate the current Keccak-512 computation and output the result into the provided buffer...
void sph_keccak384_close(void *cc, void *dst)
Terminate the current Keccak-384 computation and output the result into the provided buffer...