Home
last modified time | relevance | path

Searched refs:GHASH_BLOCK_SIZE (Results 1 – 6 of 6) sorted by relevance

/linux-4.4.14/arch/s390/crypto/
Dghash_s390.c16 #define GHASH_BLOCK_SIZE 16 macro
20 u8 key[GHASH_BLOCK_SIZE];
24 u8 icv[GHASH_BLOCK_SIZE];
25 u8 key[GHASH_BLOCK_SIZE];
26 u8 buffer[GHASH_BLOCK_SIZE];
36 memcpy(dctx->key, ctx->key, GHASH_BLOCK_SIZE); in ghash_init()
46 if (keylen != GHASH_BLOCK_SIZE) { in ghash_setkey()
51 memcpy(ctx->key, key, GHASH_BLOCK_SIZE); in ghash_setkey()
65 u8 *pos = buf + (GHASH_BLOCK_SIZE - dctx->bytes); in ghash_update()
76 GHASH_BLOCK_SIZE); in ghash_update()
[all …]
/linux-4.4.14/arch/arm64/crypto/
Dghash-ce-glue.c22 #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()
[all …]
/linux-4.4.14/crypto/
Dghash-generic.c23 #define GHASH_BLOCK_SIZE 16 macro
31 u8 buffer[GHASH_BLOCK_SIZE];
49 if (keylen != GHASH_BLOCK_SIZE) { in ghash_setkey()
75 u8 *pos = dst + (GHASH_BLOCK_SIZE - dctx->bytes); in ghash_update()
87 while (srclen >= GHASH_BLOCK_SIZE) { in ghash_update()
88 crypto_xor(dst, src, GHASH_BLOCK_SIZE); in ghash_update()
90 src += GHASH_BLOCK_SIZE; in ghash_update()
91 srclen -= GHASH_BLOCK_SIZE; in ghash_update()
95 dctx->bytes = GHASH_BLOCK_SIZE - srclen; in ghash_update()
108 u8 *tmp = dst + (GHASH_BLOCK_SIZE - dctx->bytes); in ghash_flush()
[all …]
/linux-4.4.14/arch/arm/crypto/
Dghash-ce-glue.c25 #define GHASH_BLOCK_SIZE 16 macro
35 u8 buf[GHASH_BLOCK_SIZE];
58 unsigned int partial = ctx->count % GHASH_BLOCK_SIZE; in ghash_update()
62 if ((partial + len) >= GHASH_BLOCK_SIZE) { in ghash_update()
67 int p = GHASH_BLOCK_SIZE - partial; in ghash_update()
74 blocks = len / GHASH_BLOCK_SIZE; in ghash_update()
75 len %= GHASH_BLOCK_SIZE; in ghash_update()
81 src += blocks * GHASH_BLOCK_SIZE; in ghash_update()
92 unsigned int partial = ctx->count % GHASH_BLOCK_SIZE; in ghash_final()
97 memset(ctx->buf + partial, 0, GHASH_BLOCK_SIZE - partial); in ghash_final()
[all …]
/linux-4.4.14/arch/x86/crypto/
Dghash-clmulni-intel_glue.c25 #define GHASH_BLOCK_SIZE 16 macro
42 u8 buffer[GHASH_BLOCK_SIZE];
62 if (keylen != GHASH_BLOCK_SIZE) { in ghash_setkey()
90 u8 *pos = dst + (GHASH_BLOCK_SIZE - dctx->bytes); in ghash_update()
108 dctx->bytes = GHASH_BLOCK_SIZE - srclen; in ghash_update()
121 u8 *tmp = dst + (GHASH_BLOCK_SIZE - dctx->bytes); in ghash_flush()
141 memcpy(dst, buf, GHASH_BLOCK_SIZE); in ghash_final()
159 .cra_blocksize = GHASH_BLOCK_SIZE,
299 .cra_blocksize = GHASH_BLOCK_SIZE,
/linux-4.4.14/drivers/crypto/vmx/
Dghash.c35 #define GHASH_BLOCK_SIZE (16) macro
224 .cra_blocksize = GHASH_BLOCK_SIZE,