Lines Matching refs:GHASH_BLOCK_SIZE
27 #define GHASH_BLOCK_SIZE 16 macro
37 u8 buf[GHASH_BLOCK_SIZE];
82 src += GHASH_BLOCK_SIZE; in ghash_do_update()
85 crypto_xor((u8 *)&dst, in, GHASH_BLOCK_SIZE); in ghash_do_update()
98 unsigned int partial = ctx->count % GHASH_BLOCK_SIZE; in ghash_update()
102 if ((partial + len) >= GHASH_BLOCK_SIZE) { in ghash_update()
107 int p = GHASH_BLOCK_SIZE - partial; in ghash_update()
114 blocks = len / GHASH_BLOCK_SIZE; in ghash_update()
115 len %= GHASH_BLOCK_SIZE; in ghash_update()
119 src += blocks * GHASH_BLOCK_SIZE; in ghash_update()
130 unsigned int partial = ctx->count % GHASH_BLOCK_SIZE; in ghash_final()
135 memset(ctx->buf + partial, 0, GHASH_BLOCK_SIZE - partial); in ghash_final()
161 if (keylen != GHASH_BLOCK_SIZE) in ghash_setkey()
165 memcpy(&key->k, inkey, GHASH_BLOCK_SIZE); in ghash_setkey()
194 .base.cra_blocksize = GHASH_BLOCK_SIZE,
339 .cra_blocksize = GHASH_BLOCK_SIZE,