1KCAPI_AKCIPHER_STREA(3) Programming Interface KCAPI_AKCIPHER_STREA(3)
2
3
4
6 kcapi_akcipher_stream_init_vfy - start an signature verification
7 operation (stream)
8
10 int32_t kcapi_akcipher_stream_init_vfy(struct kcapi_handle * handle,
11 struct iovec * iov,
12 uint32_t iovlen);
13
15 handle
16 [in] cipher handle
17
18 iov
19 [in] scatter/gather list with data to be verified. This is the
20 pointer to the first iov entry if an array of iov entries is
21 supplied. See sendmsg(2) for details on how iov is to be used. This
22 pointer may be NULL if no data to be verified is available at the
23 point of the call.
24
25 iovlen
26 [in] number of scatter/gather list elements. If iov is NULL, this
27 value must be zero.
28
30 A stream signature verification operation is started with this call.
31 Multiple successive kcapi_akcipher_stream_update function calls can be
32 invoked to send more plaintext data to be verified. The last invocation
33 to supply data must be done with kcapi_akcipher_stream_update_last. The
34 kernel buffers the input until kcapi_akcipher_stream_op picks up the
35 verified data. Once plaintext is verified during the
36 kcapi_cipher_stream_op it is removed from the kernel buffer.
37
38 The function calls of kcapi_akcipher_stream_update and
39 kcapi_akcipher_stream_op can be mixed, even by multiple threads of an
40 application.
41
42 return number of bytes sent to the kernel upon success; a negative
43 errno-style error code if an error occurred
44
46 Stephan Mueller <smueller@chronox.de>
47 Author.
48
50libkcapi Manual 1.1.5 January 2020 KCAPI_AKCIPHER_STREA(3)