Searched refs:GHASH_BLOCK_SIZE (Results 1 - 13 of 13) sorted by relevance
/linux-master/include/crypto/ |
H A D | ghash.h | 12 #define GHASH_BLOCK_SIZE 16 macro 20 u8 buffer[GHASH_BLOCK_SIZE];
|
/linux-master/arch/s390/crypto/ |
H A D | ghash_s390.c | 16 #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); 46 if (keylen != GHASH_BLOCK_SIZE) 49 memcpy(ctx->key, key, GHASH_BLOCK_SIZE); 62 u8 *pos = buf + (GHASH_BLOCK_SIZE - dctx->bytes); 73 GHASH_BLOCK_SIZE); [all...] |
H A D | aes_s390.c | 848 u8 j0[GHASH_BLOCK_SIZE];/* initial counter value */ 943 .ivsize = GHASH_BLOCK_SIZE - sizeof(u32),
|
/linux-master/arch/riscv/crypto/ |
H A D | ghash-riscv64-glue.c | 29 u8 buffer[GHASH_BLOCK_SIZE]; 38 if (keylen != GHASH_BLOCK_SIZE) 41 memcpy(&tctx->key, key, GHASH_BLOCK_SIZE); 68 GHASH_BLOCK_SIZE); 70 src += GHASH_BLOCK_SIZE; 71 srclen -= GHASH_BLOCK_SIZE; 84 if (dctx->bytes + srclen < GHASH_BLOCK_SIZE) { 90 GHASH_BLOCK_SIZE - dctx->bytes); 92 GHASH_BLOCK_SIZE); 93 src += GHASH_BLOCK_SIZE [all...] |
/linux-master/crypto/ |
H A D | ghash-generic.c | 61 if (keylen != GHASH_BLOCK_SIZE) 67 BUILD_BUG_ON(sizeof(k) != GHASH_BLOCK_SIZE); 68 memcpy(&k, key, GHASH_BLOCK_SIZE); /* avoid violating alignment rules */ 70 memzero_explicit(&k, GHASH_BLOCK_SIZE); 87 u8 *pos = dst + (GHASH_BLOCK_SIZE - dctx->bytes); 99 while (srclen >= GHASH_BLOCK_SIZE) { 100 crypto_xor(dst, src, GHASH_BLOCK_SIZE); 102 src += GHASH_BLOCK_SIZE; 103 srclen -= GHASH_BLOCK_SIZE; 107 dctx->bytes = GHASH_BLOCK_SIZE [all...] |
/linux-master/arch/powerpc/crypto/ |
H A D | ghash.c | 60 if (keylen != GHASH_BLOCK_SIZE) 71 memcpy(&ctx->key, key, GHASH_BLOCK_SIZE); 89 crypto_xor((u8 *)dctx->shash, dctx->buffer, GHASH_BLOCK_SIZE); 108 while (srclen >= GHASH_BLOCK_SIZE) { 109 crypto_xor((u8 *)dctx->shash, src, GHASH_BLOCK_SIZE); 111 srclen -= GHASH_BLOCK_SIZE; 112 src += GHASH_BLOCK_SIZE; 181 .cra_blocksize = GHASH_BLOCK_SIZE,
|
/linux-master/arch/arm64/crypto/ |
H A D | ghash-ce-glue.c | 30 #define GHASH_BLOCK_SIZE 16 macro 42 u8 buf[GHASH_BLOCK_SIZE]; 87 src += GHASH_BLOCK_SIZE; 90 crypto_xor((u8 *)&dst, in, GHASH_BLOCK_SIZE); 116 #define MAX_BLOCKS (SZ_64K / GHASH_BLOCK_SIZE) 122 unsigned int partial = ctx->count % GHASH_BLOCK_SIZE; 126 if ((partial + len) >= GHASH_BLOCK_SIZE) { 131 int p = GHASH_BLOCK_SIZE - partial; 138 blocks = len / GHASH_BLOCK_SIZE; 139 len %= GHASH_BLOCK_SIZE; [all...] |
H A D | sm4-ce-gcm-glue.c | 34 #define GHASH_BLOCK_SIZE 16 macro 77 u8 __aligned(8) buffer[GHASH_BLOCK_SIZE]; 97 if (n + buflen < GHASH_BLOCK_SIZE) { 104 unsigned int l = GHASH_BLOCK_SIZE - buflen; 114 nblocks = n / GHASH_BLOCK_SIZE; 118 ptr += nblocks * GHASH_BLOCK_SIZE; 121 buflen = n % GHASH_BLOCK_SIZE; 132 memset(&buffer[buflen], 0, GHASH_BLOCK_SIZE - buflen);
|
/linux-master/arch/x86/crypto/ |
H A D | ghash-clmulni-intel_glue.c | 24 #define GHASH_BLOCK_SIZE 16 macro 41 u8 buffer[GHASH_BLOCK_SIZE]; 60 if (keylen != GHASH_BLOCK_SIZE) 105 u8 *pos = dst + (GHASH_BLOCK_SIZE - dctx->bytes); 123 dctx->bytes = GHASH_BLOCK_SIZE - srclen; 136 u8 *tmp = dst + (GHASH_BLOCK_SIZE - dctx->bytes); 156 memcpy(dst, buf, GHASH_BLOCK_SIZE); 173 .cra_blocksize = GHASH_BLOCK_SIZE, 326 .cra_blocksize = GHASH_BLOCK_SIZE,
|
/linux-master/arch/arm/crypto/ |
H A D | ghash-ce-glue.c | 35 #define GHASH_BLOCK_SIZE 16 macro 54 u8 buf[GHASH_BLOCK_SIZE]; 99 src += GHASH_BLOCK_SIZE; 102 crypto_xor((u8 *)&dst, in, GHASH_BLOCK_SIZE); 115 unsigned int partial = ctx->count % GHASH_BLOCK_SIZE; 119 if ((partial + len) >= GHASH_BLOCK_SIZE) { 124 int p = GHASH_BLOCK_SIZE - partial; 131 blocks = len / GHASH_BLOCK_SIZE; 132 len %= GHASH_BLOCK_SIZE; 136 src += blocks * GHASH_BLOCK_SIZE; [all...] |
/linux-master/lib/crypto/ |
H A D | aesgcm.c | 68 crypto_xor((u8 *)ghash, src, min(len, GHASH_BLOCK_SIZE)); 71 src += GHASH_BLOCK_SIZE; 72 len -= GHASH_BLOCK_SIZE;
|
/linux-master/drivers/crypto/chelsio/ |
H A D | chcr_crypto.h | 39 #define GHASH_BLOCK_SIZE 16 macro
|
/linux-master/drivers/crypto/inside-secure/ |
H A D | safexcel_cipher.c | 2561 ctx->state_sz = GHASH_BLOCK_SIZE;
|
Completed in 140 milliseconds