Home
last modified time | relevance | path

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

/linux/arch/s390/crypto/
A 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];
46 if (keylen != GHASH_BLOCK_SIZE) in ghash_setkey()
49 memcpy(ctx->key, key, GHASH_BLOCK_SIZE); in ghash_setkey()
73 GHASH_BLOCK_SIZE); in ghash_update()
77 n = srclen & ~(GHASH_BLOCK_SIZE - 1); in ghash_update()
85 dctx->bytes = GHASH_BLOCK_SIZE - srclen; in ghash_update()
[all …]
A Daes_s390.c955 u8 j0[GHASH_BLOCK_SIZE];/* initial counter value */ in gcm_aes_crypt()
1050 .ivsize = GHASH_BLOCK_SIZE - sizeof(u32),
/linux/arch/riscv/crypto/
A Dghash-riscv64-glue.c29 u8 buffer[GHASH_BLOCK_SIZE];
38 if (keylen != GHASH_BLOCK_SIZE) in riscv64_ghash_setkey()
41 memcpy(&tctx->key, key, GHASH_BLOCK_SIZE); in riscv64_ghash_setkey()
68 GHASH_BLOCK_SIZE); in riscv64_ghash_blocks()
70 src += GHASH_BLOCK_SIZE; in riscv64_ghash_blocks()
71 srclen -= GHASH_BLOCK_SIZE; in riscv64_ghash_blocks()
90 GHASH_BLOCK_SIZE - dctx->bytes); in riscv64_ghash_update()
92 GHASH_BLOCK_SIZE); in riscv64_ghash_update()
93 src += GHASH_BLOCK_SIZE - dctx->bytes; in riscv64_ghash_update()
124 GHASH_BLOCK_SIZE); in riscv64_ghash_final()
[all …]
/linux/crypto/
A Dghash-generic.c61 if (keylen != GHASH_BLOCK_SIZE) in ghash_setkey()
67 BUILD_BUG_ON(sizeof(k) != GHASH_BLOCK_SIZE); 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()
138 memcpy(dst, buf, GHASH_BLOCK_SIZE); in ghash_final()
[all …]
/linux/arch/arm64/crypto/
A 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()
138 blocks = len / GHASH_BLOCK_SIZE; in ghash_update()
139 len %= GHASH_BLOCK_SIZE; in ghash_update()
149 src += chunk * GHASH_BLOCK_SIZE; in ghash_update()
194 if (keylen != GHASH_BLOCK_SIZE) in ghash_setkey()
236 u8 key[GHASH_BLOCK_SIZE]; in gcm_aes_setkey()
282 if (count >= GHASH_BLOCK_SIZE || *buf_count == GHASH_BLOCK_SIZE) { in gcm_update_mac()
290 count %= GHASH_BLOCK_SIZE; in gcm_update_mac()
[all …]
A 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/arch/powerpc/crypto/
A 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/arch/arm/crypto/
A 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()
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()
178 if (keylen != GHASH_BLOCK_SIZE) in ghash_setkey()
434 if (count >= GHASH_BLOCK_SIZE || *buf_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()
[all …]
/linux/arch/x86/crypto/
A 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/include/crypto/
A Dghash.h12 #define GHASH_BLOCK_SIZE 16 macro
20 u8 buffer[GHASH_BLOCK_SIZE];
/linux/lib/crypto/
A 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/drivers/crypto/chelsio/
A Dchcr_crypto.h39 #define GHASH_BLOCK_SIZE 16 macro
/linux/drivers/crypto/inside-secure/
A Dsafexcel_cipher.c2561 ctx->state_sz = GHASH_BLOCK_SIZE; in safexcel_aead_gcm_cra_init()

Completed in 40 milliseconds