Lines Matching refs:GHASH_BLOCK_SIZE
61 if (keylen != GHASH_BLOCK_SIZE) in ghash_setkey()
67 BUILD_BUG_ON(sizeof(k) != GHASH_BLOCK_SIZE); in ghash_setkey()
68 memcpy(&k, key, GHASH_BLOCK_SIZE); /* avoid violating alignment rules */ in ghash_setkey()
70 memzero_explicit(&k, GHASH_BLOCK_SIZE); in ghash_setkey()
87 u8 *pos = dst + (GHASH_BLOCK_SIZE - dctx->bytes); in ghash_update()
99 while (srclen >= GHASH_BLOCK_SIZE) { in ghash_update()
100 crypto_xor(dst, src, GHASH_BLOCK_SIZE); in ghash_update()
102 src += GHASH_BLOCK_SIZE; in ghash_update()
103 srclen -= GHASH_BLOCK_SIZE; in ghash_update()
107 dctx->bytes = GHASH_BLOCK_SIZE - srclen; in ghash_update()
120 u8 *tmp = dst + (GHASH_BLOCK_SIZE - dctx->bytes); in ghash_flush()
138 memcpy(dst, buf, GHASH_BLOCK_SIZE); in ghash_final()
161 .cra_blocksize = GHASH_BLOCK_SIZE,