49 #define SPH_SIZE_bmw224 224 54 #define SPH_SIZE_bmw256 256 61 #define SPH_SIZE_bmw384 384 66 #define SPH_SIZE_bmw512 512 81 #ifndef DOXYGEN_IGNORE 82 unsigned char buf[64];
118 #ifndef DOXYGEN_IGNORE 119 unsigned char buf[128];
124 } sph_bmw_big_context;
130 typedef sph_bmw_big_context sph_bmw384_context;
136 typedef sph_bmw_big_context sph_bmw512_context;
156 void sph_bmw224(
void *cc,
const void *data,
size_t len);
183 void *cc,
unsigned ub,
unsigned n,
void *dst);
201 void sph_bmw256(
void *cc,
const void *data,
size_t len);
228 void *cc,
unsigned ub,
unsigned n,
void *dst);
238 void sph_bmw384_init(
void *cc);
248 void sph_bmw384(
void *cc,
const void *data,
size_t len);
259 void sph_bmw384_close(
void *cc,
void *dst);
274 void sph_bmw384_addbits_and_close(
275 void *cc,
unsigned ub,
unsigned n,
void *dst);
283 void sph_bmw512_init(
void *cc);
293 void sph_bmw512(
void *cc,
const void *data,
size_t len);
304 void sph_bmw512_close(
void *cc,
void *dst);
319 void sph_bmw512_addbits_and_close(
320 void *cc,
unsigned ub,
unsigned n,
void *dst);
sph_bmw_small_context sph_bmw256_context
This structure is a context for BMW-256 computations.
void sph_bmw224_close(void *cc, void *dst)
Terminate the current BMW-224 computation and output the result into the provided buffer...
void sph_bmw256_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_bmw224(void *cc, const void *data, size_t len)
Process some data bytes.
void sph_bmw224_init(void *cc)
Initialize a BMW-224 context.
void sph_bmw224_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_bmw256(void *cc, const void *data, size_t len)
Process some data bytes.
void sph_bmw256_close(void *cc, void *dst)
Terminate the current BMW-256 computation and output the result into the provided buffer...
void sph_bmw256_init(void *cc)
Initialize a BMW-256 context.
sph_bmw_small_context sph_bmw224_context
This structure is a context for BMW-224 computations.
This structure is a context for BMW-224 and BMW-256 computations: it contains the intermediate values...