Fix CVE-2017-6891 in minitasn1 code
[platform/upstream/gnutls.git] / doc / functions / gnutls_cipher_decrypt
1
2
3
4
5 @deftypefun {int} {gnutls_cipher_decrypt} (gnutls_cipher_hd_t @var{handle}, void * @var{ciphertext}, size_t @var{ciphertextlen})
6 @var{handle}: is a @code{gnutls_cipher_hd_t}  structure.
7
8 @var{ciphertext}: the data to encrypt
9
10 @var{ciphertextlen}: The length of data to encrypt
11
12 This function will decrypt the given data using the algorithm
13 specified by the context.
14
15 Note that in AEAD ciphers, this will not check the tag. You will
16 need to compare the tag sent with the value returned from @code{gnutls_cipher_tag()} .
17
18 @strong{Returns:} Zero or a negative error code on error.
19
20 @strong{Since:} 2.10.0
21 @end deftypefun