Lines Matching refs:GHASH_BLOCK_SIZE
30 #define GHASH_BLOCK_SIZE 16
42 u8 buf[GHASH_BLOCK_SIZE];
87 src += GHASH_BLOCK_SIZE;
90 crypto_xor((u8 *)&dst, in, GHASH_BLOCK_SIZE);
116 #define MAX_BLOCKS (SZ_64K / GHASH_BLOCK_SIZE)
122 unsigned int partial = ctx->count % GHASH_BLOCK_SIZE;
126 if ((partial + len) >= GHASH_BLOCK_SIZE) {
131 int p = GHASH_BLOCK_SIZE - partial;
138 blocks = len / GHASH_BLOCK_SIZE;
139 len %= GHASH_BLOCK_SIZE;
149 src += chunk * GHASH_BLOCK_SIZE;
161 unsigned int partial = ctx->count % GHASH_BLOCK_SIZE;
166 memset(ctx->buf + partial, 0, GHASH_BLOCK_SIZE - partial);
194 if (keylen != GHASH_BLOCK_SIZE)
198 memcpy(&key->k, inkey, GHASH_BLOCK_SIZE);
208 .base.cra_blocksize = GHASH_BLOCK_SIZE,
236 u8 key[GHASH_BLOCK_SIZE];
247 memcpy(&ctx->ghash_key.k, key, GHASH_BLOCK_SIZE);
273 int buf_added = min(count, GHASH_BLOCK_SIZE - *buf_count);
282 if (count >= GHASH_BLOCK_SIZE || *buf_count == GHASH_BLOCK_SIZE) {
283 int blocks = count / GHASH_BLOCK_SIZE;
289 src += blocks * GHASH_BLOCK_SIZE;
290 count %= GHASH_BLOCK_SIZE;
304 u8 buf[GHASH_BLOCK_SIZE];
329 memset(&buf[buf_count], 0, GHASH_BLOCK_SIZE - buf_count);