Blame doc/functions/gnutls_cipher_decrypt

Packit aea12f
Packit aea12f
Packit aea12f
Packit aea12f
Packit aea12f
@deftypefun {int} {gnutls_cipher_decrypt} (gnutls_cipher_hd_t @var{handle}, void * @var{ctext}, size_t @var{ctext_len})
Packit aea12f
@var{handle}: is a @code{gnutls_cipher_hd_t}  type
Packit aea12f
Packit aea12f
@var{ctext}: the data to decrypt
Packit aea12f
Packit aea12f
@var{ctext_len}: the length of data to decrypt
Packit aea12f
Packit aea12f
This function will decrypt the given data using the algorithm
Packit aea12f
specified by the context.
Packit aea12f
Packit aea12f
Note that in AEAD ciphers, this will not check the tag. You will
Packit aea12f
need to compare the tag sent with the value returned from @code{gnutls_cipher_tag()} .
Packit aea12f
Packit aea12f
@strong{Returns:} Zero or a negative error code on error.
Packit aea12f
Packit aea12f
@strong{Since:} 2.10.0
Packit aea12f
@end deftypefun