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

# skcipher\_request\_alloc(9)

allocate request data structure

## NAME

skcipher\_request\_alloc - allocate request data structure

## SYNOPSIS

**struct skcipher\_request \* skcipher\_request\_alloc(struct crypto\_skcipher \*** *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 skcipher encrypt and decrypt API calls. During the allocation, the provided skcipher 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
