Home
last modified time | relevance | path

Searched refs:SKEIN_512_BLOCK_BYTES (Results 1 – 4 of 4) sorted by relevance

/drivers/staging/skein/
Dskein_base.c374 skein_assert_ret(ctx->h.b_cnt <= SKEIN_512_BLOCK_BYTES, SKEIN_FAIL); in skein_512_update()
377 if (msg_byte_cnt + ctx->h.b_cnt > SKEIN_512_BLOCK_BYTES) { in skein_512_update()
381 n = SKEIN_512_BLOCK_BYTES - ctx->h.b_cnt; in skein_512_update()
390 skein_assert(ctx->h.b_cnt == SKEIN_512_BLOCK_BYTES); in skein_512_update()
392 SKEIN_512_BLOCK_BYTES); in skein_512_update()
399 if (msg_byte_cnt > SKEIN_512_BLOCK_BYTES) { in skein_512_update()
401 n = (msg_byte_cnt - 1) / SKEIN_512_BLOCK_BYTES; in skein_512_update()
403 SKEIN_512_BLOCK_BYTES); in skein_512_update()
404 msg_byte_cnt -= n * SKEIN_512_BLOCK_BYTES; in skein_512_update()
405 msg += n * SKEIN_512_BLOCK_BYTES; in skein_512_update()
[all …]
Dskein_base.h60 #define SKEIN_512_BLOCK_BYTES (8 * SKEIN_512_STATE_WORDS) macro
78 u8 b[SKEIN_512_BLOCK_BYTES]; /* partial block buf (8-byte aligned) */
Dskein_generic.c159 .cra_blocksize = SKEIN_512_BLOCK_BYTES,
Dskein_block.c545 blk_ptr += SKEIN_512_BLOCK_BYTES; in skein_512_process_block()