---
name: "kcapi_aead_stream_update_last"
section: "3"
platform: "linux"
package: "libkcapi-dev"
version: "1.4.0-1+b2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/kcapi_aead_stream_update_last"
---

# kcapi\_aead\_stream\_update\_last(3)

send last data for processing (stream)

## NAME

kcapi\_aead\_stream\_update\_last - send last data for processing (stream)

## SYNOPSIS

**ssize\_t kcapi\_aead\_stream\_update\_last(struct kcapi\_handle \*** *handle***, struct iovec \*** *iov***, size\_t** *iovlen***);**

## ARGUMENTS

*handle*

\[in\] cipher handle

*iov*

\[in\] scatter/gather list with data to be processed by the cipher operation.

*iovlen*

\[in\] number of scatter/gather list elements.

## DESCRIPTION

Using this function call, more plaintext for encryption or ciphertext for decryption can be submitted to the kernel.

This call is identical to the **kcapi\_aead\_stream\_update** call with the exception that it marks the last data buffer before the cipher operation is triggered. Typically, the tag value is provided with this call.

## WARNING

The memory referenced by *iov* is not accessed by the kernel during this call. The memory is first accessed when **kcapi\_cipher\_stream\_op** is called. Thus, you MUST make sure that the referenced memory is still present at the time **kcapi\_cipher\_stream\_op** is called.

*return* number of bytes sent to the kernel upon success; a negative errno-style error code if an error occurred

## AUTHOR

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

Author.

## COPYRIGHT
