---
name: "crypto_alloc_akcipher"
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_alloc_akcipher"
---

# crypto\_alloc\_akcipher(9)

allocate AKCIPHER tfm handle

## NAME

crypto\_alloc\_akcipher - allocate AKCIPHER tfm handle

## SYNOPSIS

**struct crypto\_akcipher \* crypto\_alloc\_akcipher(const char \*** *alg\_name***, u32** *type***, u32** *mask***);**

## ARGUMENTS

*alg\_name*

is the cra\_name / name or cra\_driver\_name / driver name of the public key algorithm e.g. “rsa”

*type*

specifies the type of the algorithm

*mask*

specifies the mask for the algorithm

## DESCRIPTION

Allocate a handle for public key algorithm. The returned struct crypto\_akcipher is the handle that is required for any subsequent API invocation for the public key operations.

## RETURN

allocated handle in case of success; **IS\_ERR** is true in case of an error, **PTR\_ERR** returns the error code.

## AUTHORS

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

Author.

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

Author.

## COPYRIGHT
