49 #define SPH_SIZE_jh224 224 54 #define SPH_SIZE_jh256 256 59 #define SPH_SIZE_jh384 384 64 #define SPH_SIZE_jh512 512 77 #ifndef DOXYGEN_IGNORE 78 unsigned char buf[64];
130 void sph_jh224(
void *cc,
const void *data,
size_t len);
157 void *cc,
unsigned ub,
unsigned n,
void *dst);
175 void sph_jh256(
void *cc,
const void *data,
size_t len);
202 void *cc,
unsigned ub,
unsigned n,
void *dst);
220 void sph_jh384(
void *cc,
const void *data,
size_t len);
247 void *cc,
unsigned ub,
unsigned n,
void *dst);
265 void sph_jh512(
void *cc,
const void *data,
size_t len);
292 void *cc,
unsigned ub,
unsigned n,
void *dst);
void sph_jh224_close(void *cc, void *dst)
Terminate the current JH-224 computation and output the result into the provided buffer.
void sph_jh256_init(void *cc)
Initialize a JH-256 context.
void sph_jh512_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_jh224_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_jh256_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_jh_context sph_jh512_context
Type for a JH-512 context (identical to the common context).
void sph_jh224(void *cc, const void *data, size_t len)
Process some data bytes.
void sph_jh512_init(void *cc)
Initialize a JH-512 context.
void sph_jh256_close(void *cc, void *dst)
Terminate the current JH-256 computation and output the result into the provided buffer.
sph_jh_context sph_jh224_context
Type for a JH-224 context (identical to the common context).
sph_jh_context sph_jh384_context
Type for a JH-384 context (identical to the common context).
void sph_jh384(void *cc, const void *data, size_t len)
Process some data bytes.
void sph_jh512(void *cc, const void *data, size_t len)
Process some data bytes.
void sph_jh384_close(void *cc, void *dst)
Terminate the current JH-384 computation and output the result into the provided buffer.
void sph_jh224_init(void *cc)
Initialize a JH-224 context.
sph_jh_context sph_jh256_context
Type for a JH-256 context (identical to the common context).
void sph_jh256(void *cc, const void *data, size_t len)
Process some data bytes.
This structure is a context for JH computations: it contains the intermediate values and some data fr...
void sph_jh384_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_jh512_close(void *cc, void *dst)
Terminate the current JH-512 computation and output the result into the provided buffer.
void sph_jh384_init(void *cc)
Initialize a JH-384 context.