1gnutls_cipher_decrypt2(3)           gnutls           gnutls_cipher_decrypt2(3)
2
3
4

NAME

6       gnutls_cipher_decrypt2 - API function
7

SYNOPSIS

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

ARGUMENTS

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

DESCRIPTION

31       This function will decrypt the given data using the algorithm specified
32       by  the context. For block ciphers the  ctext_len must be a multiple of
33       the block size. For the supported ciphers  the  plaintext  data  length
34       will equal the ciphertext size.
35
36       Note  that  in AEAD ciphers, this will not check the tag. You will need
37       to compare the  tag  sent  with  the  value  returned  from  gnutls_ci‐
38       pher_tag().
39

RETURNS

41       Zero or a negative error code on error.
42

SINCE

44       2.12.0
45

REPORTING BUGS

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

SEE ALSO

58       The  full  documentation  for gnutls is maintained as a Texinfo manual.
59       If the /usr/share/doc/gnutls/ directory does not contain the HTML  form
60       visit
61
62       https://www.gnutls.org/manual/
63
64gnutls                               3.7.6           gnutls_cipher_decrypt2(3)
Impressum