48 #define SPH_SIZE_hamsi224 224 53 #define SPH_SIZE_hamsi256 256 58 #define SPH_SIZE_hamsi384 384 63 #define SPH_SIZE_hamsi512 512 76 #ifndef DOXYGEN_IGNORE 77 unsigned char partial[4];
111 #ifndef DOXYGEN_IGNORE 112 unsigned char partial[8];
151 void sph_hamsi224(
void *cc,
const void *data,
size_t len);
178 void *cc,
unsigned ub,
unsigned n,
void *dst);
196 void sph_hamsi256(
void *cc,
const void *data,
size_t len);
223 void *cc,
unsigned ub,
unsigned n,
void *dst);
241 void sph_hamsi384(
void *cc,
const void *data,
size_t len);
268 void *cc,
unsigned ub,
unsigned n,
void *dst);
286 void sph_hamsi512(
void *cc,
const void *data,
size_t len);
313 void *cc,
unsigned ub,
unsigned n,
void *dst);
void sph_hamsi224_init(void *cc)
Initialize a Hamsi-224 context.
void sph_hamsi384_close(void *cc, void *dst)
Terminate the current Hamsi-384 computation and output the result into the provided buffer...
void sph_hamsi384_init(void *cc)
Initialize a Hamsi-384 context.
void sph_hamsi512_close(void *cc, void *dst)
Terminate the current Hamsi-512 computation and output the result into the provided buffer...
void sph_hamsi512_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_hamsi_big_context sph_hamsi384_context
This structure is a context for Hamsi-384 computations.
void sph_hamsi256_init(void *cc)
Initialize a Hamsi-256 context.
void sph_hamsi224(void *cc, const void *data, size_t len)
Process some data bytes.
void sph_hamsi224_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_hamsi_big_context sph_hamsi512_context
This structure is a context for Hamsi-512 computations.
This structure is a context for Hamsi-384 and Hamsi-512 computations: it contains the intermediate va...
void sph_hamsi256_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_hamsi_small_context sph_hamsi224_context
This structure is a context for Hamsi-224 computations.
void sph_hamsi512(void *cc, const void *data, size_t len)
Process some data bytes.
sph_hamsi_small_context sph_hamsi256_context
This structure is a context for Hamsi-256 computations.
void sph_hamsi224_close(void *cc, void *dst)
Terminate the current Hamsi-224 computation and output the result into the provided buffer...
void sph_hamsi512_init(void *cc)
Initialize a Hamsi-512 context.
void sph_hamsi384(void *cc, const void *data, size_t len)
Process some data bytes.
void sph_hamsi384_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...
This structure is a context for Hamsi-224 and Hamsi-256 computations: it contains the intermediate va...
void sph_hamsi256(void *cc, const void *data, size_t len)
Process some data bytes.
void sph_hamsi256_close(void *cc, void *dst)
Terminate the current Hamsi-256 computation and output the result into the provided buffer...