1gnutls_cipher_encrypt2(3)           gnutls           gnutls_cipher_encrypt2(3)
2
3
4

NAME

6       gnutls_cipher_encrypt2 - API function
7

SYNOPSIS

9       #include <gnutls/crypto.h>
10
11       int  gnutls_cipher_encrypt2(gnutls_cipher_hd_t  handle,  const  void  *
12       ptext, size_t ptext_len, void * ctext, size_t ctext_len);
13

ARGUMENTS

15       gnutls_cipher_hd_t handle
16                   is a gnutls_cipher_hd_t type
17
18       const void * ptext
19                   the data to encrypt
20
21       size_t ptext_len
22                   the length of data to encrypt
23
24       void * ctext
25                   the encrypted data
26
27       size_t ctext_len
28                   the available length for encrypted data
29

DESCRIPTION

31       This function will encrypt the given data using the algorithm specified
32       by  the context. For block ciphers the  ptext_len must be a multiple of
33       the block size. For the supported ciphers  the  encrypted  data  length
34       will equal the plaintext size.
35

RETURNS

37       Zero or a negative error code on error.
38

SINCE

40       2.12.0
41

REPORTING BUGS

43       Report bugs to <bugs@gnutls.org>.
44       Home page: https://www.gnutls.org
45
46
48       Copyright © 2001-2023 Free Software Foundation, Inc., and others.
49       Copying  and  distribution  of this file, with or without modification,
50       are permitted in any medium without royalty provided the copyright  no‐
51       tice and this notice are preserved.
52

SEE ALSO

54       The  full  documentation  for gnutls is maintained as a Texinfo manual.
55       If the /usr/share/doc/gnutls/ directory does not contain the HTML  form
56       visit
57
58       https://www.gnutls.org/manual/
59
60gnutls                               3.8.2           gnutls_cipher_encrypt2(3)
Impressum