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

# ahash\_request\_set\_crypt(9)

set data buffers

## NAME

ahash\_request\_set\_crypt - set data buffers

## SYNOPSIS

**void ahash\_request\_set\_crypt(struct ahash\_request \*** *req***, struct scatterlist \*** *src***, u8 \*** *result***, unsigned int** *nbytes***);**

## ARGUMENTS

*req*

ahash\_request handle to be updated

*src*

source scatter/gather list

*result*

buffer that is filled with the message digest -- the caller must ensure that the buffer has sufficient space by, for example, calling **crypto\_ahash\_digestsize**

*nbytes*

number of bytes to process from the source scatter/gather list

## DESCRIPTION

By using this call, the caller references the source scatter/gather list. The source scatter/gather list points to the data the message digest is to be calculated for.

## AUTHORS

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

Author.

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

Author.

## COPYRIGHT
