Lines Matching refs:GHASH_BLOCK_SIZE
22 #define GHASH_BLOCK_SIZE 16 macro
32 u8 buf[GHASH_BLOCK_SIZE];
51 unsigned int partial = ctx->count % GHASH_BLOCK_SIZE; in ghash_update()
55 if ((partial + len) >= GHASH_BLOCK_SIZE) { in ghash_update()
60 int p = GHASH_BLOCK_SIZE - partial; in ghash_update()
67 blocks = len / GHASH_BLOCK_SIZE; in ghash_update()
68 len %= GHASH_BLOCK_SIZE; in ghash_update()
74 src += blocks * GHASH_BLOCK_SIZE; in ghash_update()
85 unsigned int partial = ctx->count % GHASH_BLOCK_SIZE; in ghash_final()
90 memset(ctx->buf + partial, 0, GHASH_BLOCK_SIZE - partial); in ghash_final()
109 if (keylen != GHASH_BLOCK_SIZE) { in ghash_setkey()
139 .cra_blocksize = GHASH_BLOCK_SIZE,