---
name: "aead_request_alloc"
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/aead_request_alloc"
---

# aead\_request\_alloc(9)

allocate request data structure

## NAME

aead\_request\_alloc - allocate request data structure

## SYNOPSIS

**struct aead\_request \* aead\_request\_alloc(struct crypto\_aead \*** *tfm***, gfp\_t** *gfp***);**

## ARGUMENTS

*tfm*

cipher handle to be registered with the request

*gfp*

memory allocation flag that is handed to kmalloc by the API call.

## DESCRIPTION

Allocate the request data structure that must be used with the AEAD encrypt and decrypt API calls. During the allocation, the provided aead handle is registered in the request data structure.

## RETURN

allocated request handle in case of success, or NULL if out of memory

## AUTHORS

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

Author.

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

Author.

## COPYRIGHT
