Home | History | Annotate | Download | only in digest

Lines Matching refs:HASH_CBLOCK

70  * |HASH_CBLOCK| must be defined as the integer block size, in bytes.
78 * uint8_t data[HASH_CBLOCK];
104 * where each block is |HASH_CBLOCK| bytes; i.e. |data| points to a array of
105 * |HASH_CBLOCK * num| bytes. |state| points to the |h| member of a |HASH_CTX|,
116 #ifndef HASH_CBLOCK
117 #error "HASH_CBLOCK must be defined!"
246 if (len >= HASH_CBLOCK || len + n >= HASH_CBLOCK) {
247 memcpy(c->data + n, data, HASH_CBLOCK - n);
249 n = HASH_CBLOCK - n;
254 memset(c->data, 0, HASH_CBLOCK);
262 n = len / HASH_CBLOCK;
265 n *= HASH_CBLOCK;
287 assert(n < HASH_CBLOCK);
292 if (n > (HASH_CBLOCK - 8)) {
293 memset(c->data + n, 0, HASH_CBLOCK - n);
297 memset(c->data + n, 0, HASH_CBLOCK - 8 - n);
300 uint8_t *p = c->data + HASH_CBLOCK - 8;
308 assert(p == c->data + HASH_CBLOCK);
311 memset(c->data, 0, HASH_CBLOCK);