Lines Matching refs:GHASH_BLOCK_SIZE
35 #define GHASH_BLOCK_SIZE 16 macro
54 u8 buf[GHASH_BLOCK_SIZE];
99 src += GHASH_BLOCK_SIZE; in ghash_do_update()
102 crypto_xor((u8 *)&dst, in, GHASH_BLOCK_SIZE); in ghash_do_update()
115 unsigned int partial = ctx->count % GHASH_BLOCK_SIZE; in ghash_update()
119 if ((partial + len) >= GHASH_BLOCK_SIZE) { in ghash_update()
124 int p = GHASH_BLOCK_SIZE - partial; in ghash_update()
131 blocks = len / GHASH_BLOCK_SIZE; in ghash_update()
132 len %= GHASH_BLOCK_SIZE; in ghash_update()
136 src += blocks * GHASH_BLOCK_SIZE; in ghash_update()
147 unsigned int partial = ctx->count % GHASH_BLOCK_SIZE; in ghash_final()
152 memset(ctx->buf + partial, 0, GHASH_BLOCK_SIZE - partial); in ghash_final()
178 if (keylen != GHASH_BLOCK_SIZE) in ghash_setkey()
182 memcpy(&key->k, inkey, GHASH_BLOCK_SIZE); in ghash_setkey()
211 .base.cra_blocksize = GHASH_BLOCK_SIZE,
356 .cra_blocksize = GHASH_BLOCK_SIZE,
425 int buf_added = min(count, GHASH_BLOCK_SIZE - *buf_count); in gcm_update_mac()
434 if (count >= GHASH_BLOCK_SIZE || *buf_count == GHASH_BLOCK_SIZE) { in gcm_update_mac()
435 int blocks = count / GHASH_BLOCK_SIZE; in gcm_update_mac()
440 src += blocks * GHASH_BLOCK_SIZE; in gcm_update_mac()
441 count %= GHASH_BLOCK_SIZE; in gcm_update_mac()
455 u8 buf[GHASH_BLOCK_SIZE]; in gcm_calculate_auth_mac()
485 memset(&buf[buf_count], 0, GHASH_BLOCK_SIZE - buf_count); in gcm_calculate_auth_mac()