---
name: "kcapi_aead_settaglen"
section: "3"
platform: "linux"
package: "libkcapi-dev"
version: "1.4.0-1+b2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/kcapi_aead_settaglen"
---

# kcapi\_aead\_settaglen(3)

set authentication tag size

## NAME

kcapi\_aead\_settaglen - set authentication tag size

## SYNOPSIS

**int kcapi\_aead\_settaglen(struct kcapi\_handle \*** *handle***, uint32\_t** *taglen***);**

## ARGUMENTS

*handle*

\[in\] cipher handle

*taglen*

\[in\] length of authentication tag

## DESCRIPTION

Set the authentication tag size needed for encryption operation. The tag is created during encryption operation with the size provided with this call.

*return* 0 upon success; a negative errno-style error code if an error occurred

## AUTHOR

**Stephan Mueller** \<smueller@chronox.de\>

Author.

## COPYRIGHT
