Blame doc/functions/gnutls_cipher_init

Packit aea12f
Packit aea12f
Packit aea12f
Packit aea12f
Packit aea12f
@deftypefun {int} {gnutls_cipher_init} (gnutls_cipher_hd_t * @var{handle}, gnutls_cipher_algorithm_t @var{cipher}, const gnutls_datum_t * @var{key}, const gnutls_datum_t * @var{iv})
Packit aea12f
@var{handle}: is a @code{gnutls_cipher_hd_t}  type
Packit aea12f
Packit aea12f
@var{cipher}: the encryption algorithm to use
Packit aea12f
Packit aea12f
@var{key}: the key to be used for encryption/decryption
Packit aea12f
Packit aea12f
@var{iv}: the IV to use (if not applicable set NULL)
Packit aea12f
Packit aea12f
This function will initialize the  @code{handle} context to be usable
Packit aea12f
for encryption/decryption of data. This will effectively use the
Packit aea12f
current crypto backend in use by gnutls or the cryptographic
Packit aea12f
accelerator in use.
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