---
name: "crypto_akcipher_set_priv_key"
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_set_priv_key"
---

# crypto\_akcipher\_set\_priv\_key(9)

Invoke set private key operation

## NAME

crypto\_akcipher\_set\_priv\_key - Invoke set private key operation

## SYNOPSIS

**int crypto\_akcipher\_set\_priv\_key(struct crypto\_akcipher \*** *tfm***, const void \*** *key***, unsigned int** *keylen***);**

## ARGUMENTS

*tfm*

tfm handle

*key*

BER encoded private key

*keylen*

length of the key

## DESCRIPTION

Function invokes the algorithm specific set key function, which knows how to decode and interpret the encoded key

## RETURN

zero on success; error code in case of error

## AUTHORS

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

Author.

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

Author.

## COPYRIGHT
