1gnutls_aead_cipher_encryptv(3)      gnutls      gnutls_aead_cipher_encryptv(3)
2
3
4

NAME

6       gnutls_aead_cipher_encryptv - API function
7

SYNOPSIS

9       #include <gnutls/crypto.h>
10
11       int  gnutls_aead_cipher_encryptv(gnutls_aead_cipher_hd_t  handle, const
12       void  *  nonce,  size_t  nonce_len,  const  giovec_t  *  auth_iov,  int
13       auth_iovcnt,  size_t tag_size, const giovec_t * iov, int iovcnt, void *
14       ctext, size_t * ctext_len);
15

ARGUMENTS

17       gnutls_aead_cipher_hd_t handle
18                   is a gnutls_aead_cipher_hd_t type.
19
20       const void * nonce
21                   the nonce to set
22
23       size_t nonce_len
24                   The length of the nonce
25
26       const giovec_t * auth_iov
27                   additional data to be authenticated
28
29       int auth_iovcnt
30                   The number of buffers in  auth_iov
31
32       size_t tag_size
33                   The size of the tag to use (use zero for the default)
34
35       const giovec_t * iov
36                   the data to be encrypted
37
38       int iovcnt  The number of buffers in  iov
39
40       void * ctext
41                   the encrypted data including authentication tag
42
43       size_t * ctext_len
44                   the length of encrypted data (initially must hold the maxi‐
45                   mum available size, including space for tag)
46

DESCRIPTION

48       This  function  will  encrypt the provided data buffers using the algo‐
49       rithm specified by the  context.  The  output  data  will  contain  the
50       authentication tag.
51

RETURNS

53       Zero or a negative error code on error.
54

SINCE

56       3.6.3
57

REPORTING BUGS

59       Report bugs to <bugs@gnutls.org>.
60       Home page: https://www.gnutls.org
61
62
64       Copyright © 2001-2019 Free Software Foundation, Inc., and others.
65       Copying  and  distribution  of this file, with or without modification,
66       are permitted in any medium  without  royalty  provided  the  copyright
67       notice and this notice are preserved.
68

SEE ALSO

70       The  full  documentation  for gnutls is maintained as a Texinfo manual.
71       If the /usr/share/doc/gnutls/ directory does not contain the HTML  form
72       visit
73
74       https://www.gnutls.org/manual/
75
76gnutls                              3.6.11      gnutls_aead_cipher_encryptv(3)
Impressum