/kernel/linux/linux-6.6/lib/crypto/ |
H A D | aesgcm.c | 77 const u8 *assoc, int assoc_len, __be32 *ctr, u8 *authtag) in aesgcm_mac() 89 crypto_xor_cpy(authtag, buf, (u8 *)&ghash, ctx->authsize); in aesgcm_mac() 131 * @authtag: The address of the buffer in memory where the authentication 137 const u8 iv[GCM_AES_IV_SIZE], u8 *authtag) in aesgcm_encrypt() 144 aesgcm_mac(ctx, dst, crypt_len, assoc, assoc_len, ctr, authtag); in aesgcm_encrypt() 159 * @authtag: The address of the buffer in memory where the authentication 168 const u8 *authtag) in aesgcm_decrypt() 176 if (crypto_memneq(authtag, tagbuf, ctx->authsize)) { in aesgcm_decrypt() 76 aesgcm_mac(const struct aesgcm_ctx *ctx, const u8 *src, int src_len, const u8 *assoc, int assoc_len, __be32 *ctr, u8 *authtag) aesgcm_mac() argument 135 aesgcm_encrypt(const struct aesgcm_ctx *ctx, u8 *dst, const u8 *src, int crypt_len, const u8 *assoc, int assoc_len, const u8 iv[GCM_AES_IV_SIZE], u8 *authtag) aesgcm_encrypt() argument 165 aesgcm_decrypt(const struct aesgcm_ctx *ctx, u8 *dst, const u8 *src, int crypt_len, const u8 *assoc, int assoc_len, const u8 iv[GCM_AES_IV_SIZE], const u8 *authtag) aesgcm_decrypt() argument
|
/kernel/linux/linux-6.6/include/crypto/ |
H A D | gcm.h | 78 const u8 iv[GCM_AES_IV_SIZE], u8 *authtag); 83 const u8 *authtag);
|
/kernel/linux/linux-6.6/arch/arm64/crypto/ |
H A D | sm4-ce-gcm-glue.c | 210 /* copy authtag to end of dst */ in gcm_encrypt() 222 u8 authtag[SM4_BLOCK_SIZE]; in gcm_decrypt() local 232 scatterwalk_map_and_copy(authtag, req->src, in gcm_decrypt() 236 if (crypto_memneq(authtag, ghash, authsize)) in gcm_decrypt()
|
H A D | sm4-ce-ccm-glue.c | 233 /* copy authtag to end of dst */ in ccm_encrypt() 246 u8 authtag[SM4_BLOCK_SIZE]; in ccm_decrypt() local 263 scatterwalk_map_and_copy(authtag, req->src, in ccm_decrypt() 267 if (crypto_memneq(authtag, mac, authsize)) in ccm_decrypt()
|
/kernel/linux/linux-6.6/drivers/virt/coco/sev-guest/ |
H A D | sev-guest.h | 44 u8 authtag[MAX_AUTHTAG_LEN]; member
|
H A D | sev-guest.c | 39 u8 *iv, *authtag; member 188 crypto->authtag = kmalloc(crypto->a_len, GFP_KERNEL_ACCOUNT); in init_crypto() 189 if (!crypto->authtag) in init_crypto() 208 kfree(crypto->authtag); in deinit_crypto() 228 * | msg header | plaintext | hdr->authtag | in enc_dec_message() 236 sg_set_buf(&src[2], hdr->authtag, crypto->a_len); in enc_dec_message() 241 sg_set_buf(&dst[2], hdr->authtag, crypto->a_len); in enc_dec_message() 496 * authtag. in get_report() 534 * authtag. in get_derived_key() 596 * authtag in get_ext_report() [all...] |
/kernel/linux/linux-5.10/crypto/ |
H A D | ccm.c | 316 /* copy authtag to end of dst */ in crypto_ccm_encrypt() 353 u8 *authtag = pctx->auth_tag; in crypto_ccm_decrypt() local 360 err = crypto_ccm_init_crypt(req, authtag); in crypto_ccm_decrypt() 364 scatterwalk_map_and_copy(authtag, sg_next(pctx->src), cryptlen, in crypto_ccm_decrypt() 386 if (crypto_memneq(authtag, odata, authsize)) in crypto_ccm_decrypt()
|
/kernel/linux/linux-6.6/crypto/ |
H A D | ccm.c | 317 /* copy authtag to end of dst */ in crypto_ccm_encrypt() 353 u8 *authtag = pctx->auth_tag; in crypto_ccm_decrypt() local 360 err = crypto_ccm_init_crypt(req, authtag); in crypto_ccm_decrypt() 364 scatterwalk_map_and_copy(authtag, sg_next(pctx->src), cryptlen, in crypto_ccm_decrypt() 386 if (crypto_memneq(authtag, odata, authsize)) in crypto_ccm_decrypt()
|