---
name: "crypto_cipher_encrypt_one"
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_cipher_encrypt_one"
---

# crypto\_cipher\_encrypt\_one(9)

encrypt one block of plaintext

## NAME

crypto\_cipher\_encrypt\_one - encrypt one block of plaintext

## SYNOPSIS

**void crypto\_cipher\_encrypt\_one(struct crypto\_cipher \*** *tfm***, u8 \*** *dst***, const u8 \*** *src***);**

## ARGUMENTS

*tfm*

cipher handle

*dst*

points to the buffer that will be filled with the ciphertext

*src*

buffer holding the plaintext to be encrypted

## DESCRIPTION

Invoke the encryption operation of one block. The caller must ensure that the plaintext and ciphertext buffers are at least one block in size.

## AUTHORS

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

Author.

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

Author.

## COPYRIGHT
