---
name: "crypto_aead_setauthsize"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/crypto_aead_setauthsize"
---

# crypto\_aead\_setauthsize(9)

set authentication data size

## NAME

crypto\_aead\_setauthsize - set authentication data size

## SYNOPSIS

**int crypto\_aead\_setauthsize(struct crypto\_aead \*** *tfm***, unsigned int** *authsize***);**

## ARGUMENTS

*tfm*

cipher handle

*authsize*

size of the authentication data / tag in bytes

## DESCRIPTION

Set the authentication data size / tag size. AEAD requires an authentication tag (or MAC) in addition to the associated data.

## RETURN

0 if the setting of the key was successful; \< 0 if an error occurred

## AUTHORS

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

Author.

**Marek Vasut** \<marek@denx.de\>

Author.

## COPYRIGHT
