Home
last modified time | relevance | path

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

/Linux-v6.6/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()
49 memcpy(ctx->key, key, GHASH_BLOCK_SIZE); in ghash_setkey()
62 u8 *pos = buf + (GHASH_BLOCK_SIZE - dctx->bytes); in ghash_update()
73 GHASH_BLOCK_SIZE); in ghash_update()
[all …]
Daes_s390.c846 u8 j0[GHASH_BLOCK_SIZE];/* initial counter value */ in gcm_aes_crypt()
941 .ivsize = GHASH_BLOCK_SIZE - sizeof(u32),
/Linux-v6.6/crypto/
Dghash-generic.c61 if (keylen != GHASH_BLOCK_SIZE) in ghash_setkey()
67 BUILD_BUG_ON(sizeof(k) != GHASH_BLOCK_SIZE); in ghash_setkey()
68 memcpy(&k, key, GHASH_BLOCK_SIZE); /* avoid violating alignment rules */ in ghash_setkey()
70 memzero_explicit(&k, GHASH_BLOCK_SIZE); in ghash_setkey()
87 u8 *pos = dst + (GHASH_BLOCK_SIZE - dctx->bytes); in ghash_update()
99 while (srclen >= GHASH_BLOCK_SIZE) { in ghash_update()
100 crypto_xor(dst, src, GHASH_BLOCK_SIZE); in ghash_update()
102 src += GHASH_BLOCK_SIZE; in ghash_update()
103 srclen -= GHASH_BLOCK_SIZE; in ghash_update()
107 dctx->bytes = GHASH_BLOCK_SIZE - srclen; in ghash_update()
[all …]
/Linux-v6.6/arch/arm64/crypto/
Dghash-ce-glue.c30 #define GHASH_BLOCK_SIZE 16 macro
42 u8 buf[GHASH_BLOCK_SIZE];
87 src += GHASH_BLOCK_SIZE; in ghash_do_update()
90 crypto_xor((u8 *)&dst, in, GHASH_BLOCK_SIZE); in ghash_do_update()
116 #define MAX_BLOCKS (SZ_64K / GHASH_BLOCK_SIZE)
122 unsigned int partial = ctx->count % GHASH_BLOCK_SIZE; in ghash_update()
126 if ((partial + len) >= GHASH_BLOCK_SIZE) { in ghash_update()
131 int p = GHASH_BLOCK_SIZE - partial; in ghash_update()
138 blocks = len / GHASH_BLOCK_SIZE; in ghash_update()
139 len %= GHASH_BLOCK_SIZE; in ghash_update()
[all …]
Dsm4-ce-gcm-glue.c34 #define GHASH_BLOCK_SIZE 16 macro
77 u8 __aligned(8) buffer[GHASH_BLOCK_SIZE]; in gcm_calculate_auth_mac()
97 if (n + buflen < GHASH_BLOCK_SIZE) { in gcm_calculate_auth_mac()
104 unsigned int l = GHASH_BLOCK_SIZE - buflen; in gcm_calculate_auth_mac()
114 nblocks = n / GHASH_BLOCK_SIZE; in gcm_calculate_auth_mac()
118 ptr += nblocks * GHASH_BLOCK_SIZE; in gcm_calculate_auth_mac()
121 buflen = n % GHASH_BLOCK_SIZE; in gcm_calculate_auth_mac()
132 memset(&buffer[buflen], 0, GHASH_BLOCK_SIZE - buflen); in gcm_calculate_auth_mac()
/Linux-v6.6/drivers/crypto/vmx/
Dghash.c60 if (keylen != GHASH_BLOCK_SIZE) in p8_ghash_setkey()
71 memcpy(&ctx->key, key, GHASH_BLOCK_SIZE); in p8_ghash_setkey()
89 crypto_xor((u8 *)dctx->shash, dctx->buffer, GHASH_BLOCK_SIZE); in __ghash_block()
108 while (srclen >= GHASH_BLOCK_SIZE) { in __ghash_blocks()
109 crypto_xor((u8 *)dctx->shash, src, GHASH_BLOCK_SIZE); in __ghash_blocks()
111 srclen -= GHASH_BLOCK_SIZE; in __ghash_blocks()
112 src += GHASH_BLOCK_SIZE; in __ghash_blocks()
181 .cra_blocksize = GHASH_BLOCK_SIZE,
/Linux-v6.6/arch/arm/crypto/
Dghash-ce-glue.c35 #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()
[all …]
/Linux-v6.6/arch/x86/crypto/
Dghash-clmulni-intel_glue.c24 #define GHASH_BLOCK_SIZE 16 macro
41 u8 buffer[GHASH_BLOCK_SIZE];
60 if (keylen != GHASH_BLOCK_SIZE) in ghash_setkey()
105 u8 *pos = dst + (GHASH_BLOCK_SIZE - dctx->bytes); in ghash_update()
123 dctx->bytes = GHASH_BLOCK_SIZE - srclen; in ghash_update()
136 u8 *tmp = dst + (GHASH_BLOCK_SIZE - dctx->bytes); in ghash_flush()
156 memcpy(dst, buf, GHASH_BLOCK_SIZE); in ghash_final()
173 .cra_blocksize = GHASH_BLOCK_SIZE,
326 .cra_blocksize = GHASH_BLOCK_SIZE,
/Linux-v6.6/include/crypto/
Dghash.h12 #define GHASH_BLOCK_SIZE 16 macro
20 u8 buffer[GHASH_BLOCK_SIZE];
/Linux-v6.6/lib/crypto/
Daesgcm.c68 crypto_xor((u8 *)ghash, src, min(len, GHASH_BLOCK_SIZE)); in aesgcm_ghash()
71 src += GHASH_BLOCK_SIZE; in aesgcm_ghash()
72 len -= GHASH_BLOCK_SIZE; in aesgcm_ghash()
/Linux-v6.6/drivers/crypto/chelsio/
Dchcr_crypto.h39 #define GHASH_BLOCK_SIZE 16 macro
/Linux-v6.6/drivers/crypto/inside-secure/
Dsafexcel_cipher.c2634 ctx->state_sz = GHASH_BLOCK_SIZE; in safexcel_aead_gcm_cra_init()