---
name: "crypto_akcipher_maxsize"
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_akcipher_maxsize"
---

# crypto\_akcipher\_maxsize(9)

Get len for output buffer

## NAME

crypto\_akcipher\_maxsize - Get len for output buffer

## SYNOPSIS

**int crypto\_akcipher\_maxsize(struct crypto\_akcipher \*** *tfm***);**

## ARGUMENTS

*tfm*

AKCIPHER tfm handle allocated with **crypto\_alloc\_akcipher**

## DESCRIPTION

Function returns the dest buffer size required for a given key

## RETURN

minimum len for output buffer or error code in key hasn't been set

## AUTHORS

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

Author.

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

Author.

## COPYRIGHT
