Searched refs:ghash (Results 1 – 5 of 5) sorted by relevance
| /linux/arch/arm64/crypto/ |
| H A D | sm4-ce-gcm-glue.c | 23 asmlinkage void pmull_ghash_update(const u8 *ghash_table, u8 *ghash, 27 unsigned int nbytes, u8 *ghash, 31 unsigned int nbytes, u8 *ghash, 71 static void gcm_calculate_auth_mac(struct aead_request *req, u8 ghash[]) in gcm_calculate_auth_mac() argument 103 pmull_ghash_update(ctx->ghash_table, ghash, in gcm_calculate_auth_mac() 109 pmull_ghash_update(ctx->ghash_table, ghash, in gcm_calculate_auth_mac() 126 pmull_ghash_update(ctx->ghash_table, ghash, buffer, 1); in gcm_calculate_auth_mac() 131 u8 ghash[], int err, in gcm_crypt() argument 134 unsigned int nbytes, u8 *ghash, in gcm_crypt() argument 142 memset(ghash, 0, SM4_BLOCK_SIZE); in gcm_crypt() [all …]
|
| /linux/crypto/ |
| H A D | gcm.c | 23 struct crypto_ahash_spawn ghash; member 28 struct crypto_ahash *ghash; member 92 struct crypto_ahash *ghash = ctx->ghash; in crypto_gcm_setkey() local 133 crypto_ahash_clear_flags(ghash, CRYPTO_TFM_REQ_MASK); in crypto_gcm_setkey() 134 crypto_ahash_set_flags(ghash, crypto_aead_get_flags(aead) & in crypto_gcm_setkey() 136 err = crypto_ahash_setkey(ghash, (u8 *)&data->hash, sizeof(be128)); in crypto_gcm_setkey() 398 ahash_request_set_tfm(ahreq, ctx->ghash); in gcm_hash() 521 struct crypto_ahash *ghash; in crypto_gcm_init_tfm() local 525 ghash = crypto_spawn_ahash(&ictx->ghash); in crypto_gcm_init_tfm() 526 if (IS_ERR(ghash)) in crypto_gcm_init_tfm() [all …]
|
| /linux/lib/crypto/ |
| H A D | aesgcm.c | 10 #include <crypto/ghash.h> 63 static void aesgcm_ghash(be128 *ghash, const be128 *key, const void *src, in aesgcm_ghash() argument 67 crypto_xor((u8 *)ghash, src, min(len, GHASH_BLOCK_SIZE)); in aesgcm_ghash() 68 gf128mul_lle(ghash, key); in aesgcm_ghash() 93 be128 ghash = {}; in aesgcm_mac() local 95 aesgcm_ghash(&ghash, &ctx->ghash_key, assoc, assoc_len); in aesgcm_mac() 96 aesgcm_ghash(&ghash, &ctx->ghash_key, src, src_len); in aesgcm_mac() 97 aesgcm_ghash(&ghash, &ctx->ghash_key, &tail, sizeof(tail)); in aesgcm_mac() 101 crypto_xor_cpy(authtag, buf, (u8 *)&ghash, ctx->authsize); in aesgcm_mac() 103 memzero_explicit(&ghash, sizeo in aesgcm_mac() [all...] |
| /linux/arch/riscv/crypto/ |
| H A D | Makefile | 7 obj-$(CONFIG_CRYPTO_GHASH_RISCV64) += ghash-riscv64.o 8 ghash-riscv64-y := ghash-riscv64-glue.o ghash-riscv64-zvkg.o
|
| /linux/ |
| H A D | MAINTAINERS | 12277 F: arch/powerpc/crypto/ghash.c
|