Searched refs:authtag (Results 1 - 7 of 7) sorted by relevance

/linux-master/include/crypto/
H A Dgcm.h78 const u8 iv[GCM_AES_IV_SIZE], u8 *authtag);
83 const u8 *authtag);
/linux-master/drivers/virt/coco/sev-guest/
H A Dsev-guest.h44 u8 authtag[MAX_AUTHTAG_LEN]; member in struct:snp_guest_msg_hdr
H A Dsev-guest.c43 u8 *iv, *authtag; member in struct:snp_guest_crypto
192 crypto->authtag = kmalloc(crypto->a_len, GFP_KERNEL_ACCOUNT);
193 if (!crypto->authtag)
212 kfree(crypto->authtag);
232 * | msg header | plaintext | hdr->authtag |
240 sg_set_buf(&src[2], hdr->authtag, crypto->a_len);
245 sg_set_buf(&dst[2], hdr->authtag, crypto->a_len);
505 * authtag.
543 * authtag.
613 * authtag
[all...]
/linux-master/lib/crypto/
H A Daesgcm.c84 * @authtag: The output buffer for the authentication tag.
90 const u8 *assoc, int assoc_len, __be32 *ctr, u8 *authtag)
102 crypto_xor_cpy(authtag, buf, (u8 *)&ghash, ctx->authsize);
144 * @authtag: The address of the buffer in memory where the authentication
150 const u8 iv[GCM_AES_IV_SIZE], u8 *authtag)
157 aesgcm_mac(ctx, dst, crypt_len, assoc, assoc_len, ctr, authtag);
172 * @authtag: The address of the buffer in memory where the authentication
181 const u8 *authtag)
189 if (crypto_memneq(authtag, tagbuf, ctx->authsize)) {
89 aesgcm_mac(const struct aesgcm_ctx *ctx, const u8 *src, int src_len, const u8 *assoc, int assoc_len, __be32 *ctr, u8 *authtag) argument
148 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) argument
178 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) argument
/linux-master/arch/arm64/crypto/
H A Dsm4-ce-gcm-glue.c210 /* copy authtag to end of dst */
222 u8 authtag[SM4_BLOCK_SIZE]; local
232 scatterwalk_map_and_copy(authtag, req->src,
236 if (crypto_memneq(authtag, ghash, authsize))
H A Dsm4-ce-ccm-glue.c233 /* copy authtag to end of dst */
246 u8 authtag[SM4_BLOCK_SIZE]; local
263 scatterwalk_map_and_copy(authtag, req->src,
267 if (crypto_memneq(authtag, mac, authsize))
/linux-master/crypto/
H A Dccm.c318 /* copy authtag to end of dst */
354 u8 *authtag = pctx->auth_tag; local
361 err = crypto_ccm_init_crypt(req, authtag);
365 scatterwalk_map_and_copy(authtag, sg_next(pctx->src), cryptlen,
387 if (crypto_memneq(authtag, odata, authsize))

Completed in 147 milliseconds