50 #define SPH_SIZE_blake224 224 55 #define SPH_SIZE_blake256 256 62 #define SPH_SIZE_blake384 384 67 #define SPH_SIZE_blake512 512 82 #ifndef DOXYGEN_IGNORE 83 unsigned char buf[64];
116 #ifndef DOXYGEN_IGNORE 117 unsigned char buf[128];
123 } sph_blake_big_context;
129 typedef sph_blake_big_context sph_blake384_context;
135 typedef sph_blake_big_context sph_blake512_context;
155 void sph_blake224(
void *cc,
const void *data,
size_t len);
182 void *cc,
unsigned ub,
unsigned n,
void *dst);
200 void sph_blake256(
void *cc,
const void *data,
size_t len);
227 void *cc,
unsigned ub,
unsigned n,
void *dst);
237 void sph_blake384_init(
void *cc);
247 void sph_blake384(
void *cc,
const void *data,
size_t len);
258 void sph_blake384_close(
void *cc,
void *dst);
273 void sph_blake384_addbits_and_close(
274 void *cc,
unsigned ub,
unsigned n,
void *dst);
282 void sph_blake512_init(
void *cc);
292 void sph_blake512(
void *cc,
const void *data,
size_t len);
303 void sph_blake512_close(
void *cc,
void *dst);
318 void sph_blake512_addbits_and_close(
319 void *cc,
unsigned ub,
unsigned n,
void *dst);
void sph_blake224_close(void *cc, void *dst)
Terminate the current BLAKE-224 computation and output the result into the provided buffer...
This structure is a context for BLAKE-224 and BLAKE-256 computations: it contains the intermediate va...
void sph_blake256(void *cc, const void *data, size_t len)
Process some data bytes.
void sph_blake256_close(void *cc, void *dst)
Terminate the current BLAKE-256 computation and output the result into the provided buffer...
void sph_blake224(void *cc, const void *data, size_t len)
Process some data bytes.
#define S(x0, x1, x2, x3, cb, r)
sph_blake_small_context sph_blake256_context
This structure is a context for BLAKE-256 computations.
sph_blake_small_context sph_blake224_context
This structure is a context for BLAKE-224 computations.
void sph_blake224_init(void *cc)
Initialize a BLAKE-224 context.
void sph_blake224_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_blake256_init(void *cc)
Initialize a BLAKE-256 context.
void sph_blake256_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...