Lines Matching refs:GHASH_BLOCK_SIZE
26 #define GHASH_BLOCK_SIZE 16 macro
40 u8 buf[GHASH_BLOCK_SIZE];
86 src += GHASH_BLOCK_SIZE; in ghash_do_update()
89 crypto_xor((u8 *)&dst, in, GHASH_BLOCK_SIZE); in ghash_do_update()
102 unsigned int partial = ctx->count % GHASH_BLOCK_SIZE; in ghash_update()
106 if ((partial + len) >= GHASH_BLOCK_SIZE) { in ghash_update()
111 int p = GHASH_BLOCK_SIZE - partial; in ghash_update()
118 blocks = len / GHASH_BLOCK_SIZE; in ghash_update()
119 len %= GHASH_BLOCK_SIZE; in ghash_update()
123 src += blocks * GHASH_BLOCK_SIZE; in ghash_update()
134 unsigned int partial = ctx->count % GHASH_BLOCK_SIZE; in ghash_final()
139 memset(ctx->buf + partial, 0, GHASH_BLOCK_SIZE - partial); in ghash_final()
166 if (keylen != GHASH_BLOCK_SIZE) { in ghash_setkey()
172 memcpy(&key->k, inkey, GHASH_BLOCK_SIZE); in ghash_setkey()
199 .base.cra_blocksize = GHASH_BLOCK_SIZE,
349 .cra_blocksize = GHASH_BLOCK_SIZE,