Lines Matching refs:POLYVAL_BLOCK_SIZE
63 u8 buffer[POLYVAL_BLOCK_SIZE];
69 static void copy_and_reverse(u8 dst[POLYVAL_BLOCK_SIZE], in copy_and_reverse() argument
70 const u8 src[POLYVAL_BLOCK_SIZE]) in copy_and_reverse() argument
112 crypto_xor(accumulator, in, POLYVAL_BLOCK_SIZE); in polyval_update_non4k()
114 in += POLYVAL_BLOCK_SIZE; in polyval_update_non4k()
125 if (keylen != POLYVAL_BLOCK_SIZE) in polyval_setkey()
130 BUILD_BUG_ON(sizeof(k) != POLYVAL_BLOCK_SIZE); in polyval_setkey()
135 memzero_explicit(&k, POLYVAL_BLOCK_SIZE); in polyval_setkey()
158 u8 tmp[POLYVAL_BLOCK_SIZE]; in polyval_update()
175 while (srclen >= POLYVAL_BLOCK_SIZE) { in polyval_update()
177 crypto_xor(dctx->buffer, tmp, POLYVAL_BLOCK_SIZE); in polyval_update()
179 src += POLYVAL_BLOCK_SIZE; in polyval_update()
180 srclen -= POLYVAL_BLOCK_SIZE; in polyval_update()
184 dctx->bytes = POLYVAL_BLOCK_SIZE - srclen; in polyval_update()
185 pos = dctx->buffer + POLYVAL_BLOCK_SIZE - 1; in polyval_update()
222 .cra_blocksize = POLYVAL_BLOCK_SIZE,