Searched refs:GHASH_BLOCK_SIZE (Results 1 – 9 of 9) sorted by relevance
/Linux-v4.19/arch/s390/crypto/ |
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); in ghash_init() 46 if (keylen != GHASH_BLOCK_SIZE) { in ghash_setkey() 51 memcpy(ctx->key, key, GHASH_BLOCK_SIZE); in ghash_setkey() 64 u8 *pos = buf + (GHASH_BLOCK_SIZE - dctx->bytes); in ghash_update() 75 GHASH_BLOCK_SIZE); in ghash_update() [all …]
|
D | aes_s390.c | 941 u8 j0[GHASH_BLOCK_SIZE];/* initial counter value */ in gcm_aes_crypt() 1033 .ivsize = GHASH_BLOCK_SIZE - sizeof(u32),
|
/Linux-v4.19/crypto/ |
D | ghash-generic.c | 38 if (keylen != GHASH_BLOCK_SIZE) { in ghash_setkey() 61 u8 *pos = dst + (GHASH_BLOCK_SIZE - dctx->bytes); in ghash_update() 73 while (srclen >= GHASH_BLOCK_SIZE) { in ghash_update() 74 crypto_xor(dst, src, GHASH_BLOCK_SIZE); in ghash_update() 76 src += GHASH_BLOCK_SIZE; in ghash_update() 77 srclen -= GHASH_BLOCK_SIZE; in ghash_update() 81 dctx->bytes = GHASH_BLOCK_SIZE - srclen; in ghash_update() 94 u8 *tmp = dst + (GHASH_BLOCK_SIZE - dctx->bytes); in ghash_flush() 112 memcpy(dst, buf, GHASH_BLOCK_SIZE); in ghash_final() 135 .cra_blocksize = GHASH_BLOCK_SIZE,
|
/Linux-v4.19/arch/arm64/crypto/ |
D | ghash-ce-glue.c | 31 #define GHASH_BLOCK_SIZE 16 macro 46 u8 buf[GHASH_BLOCK_SIZE]; 107 src += GHASH_BLOCK_SIZE; in ghash_do_update() 110 crypto_xor((u8 *)&dst, in, GHASH_BLOCK_SIZE); in ghash_do_update() 120 #define MAX_BLOCKS (SZ_64K / GHASH_BLOCK_SIZE) 126 unsigned int partial = ctx->count % GHASH_BLOCK_SIZE; in ghash_update() 130 if ((partial + len) >= GHASH_BLOCK_SIZE) { in ghash_update() 135 int p = GHASH_BLOCK_SIZE - partial; in ghash_update() 142 blocks = len / GHASH_BLOCK_SIZE; in ghash_update() 143 len %= GHASH_BLOCK_SIZE; in ghash_update() [all …]
|
/Linux-v4.19/arch/arm/crypto/ |
D | ghash-ce-glue.c | 27 #define GHASH_BLOCK_SIZE 16 macro 37 u8 buf[GHASH_BLOCK_SIZE]; 69 unsigned int partial = ctx->count % GHASH_BLOCK_SIZE; in ghash_update() 73 if ((partial + len) >= GHASH_BLOCK_SIZE) { in ghash_update() 78 int p = GHASH_BLOCK_SIZE - partial; in ghash_update() 85 blocks = len / GHASH_BLOCK_SIZE; in ghash_update() 86 len %= GHASH_BLOCK_SIZE; in ghash_update() 92 src += blocks * GHASH_BLOCK_SIZE; in ghash_update() 103 unsigned int partial = ctx->count % GHASH_BLOCK_SIZE; in ghash_final() 108 memset(ctx->buf + partial, 0, GHASH_BLOCK_SIZE - partial); in ghash_final() [all …]
|
/Linux-v4.19/arch/x86/crypto/ |
D | ghash-clmulni-intel_glue.c | 25 #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() 158 .cra_blocksize = GHASH_BLOCK_SIZE, 318 .cra_blocksize = GHASH_BLOCK_SIZE,
|
/Linux-v4.19/include/crypto/ |
D | ghash.h | 12 #define GHASH_BLOCK_SIZE 16 macro 20 u8 buffer[GHASH_BLOCK_SIZE];
|
/Linux-v4.19/drivers/crypto/vmx/ |
D | ghash.c | 114 if (keylen != GHASH_BLOCK_SIZE) in p8_ghash_setkey() 219 .cra_blocksize = GHASH_BLOCK_SIZE,
|
/Linux-v4.19/drivers/crypto/chelsio/ |
D | chcr_crypto.h | 39 #define GHASH_BLOCK_SIZE 16 macro
|