



@deftypefun {int} {gnutls_cipher_encrypt2} (gnutls_cipher_hd_t @var{handle}, const void * @var{text}, size_t @var{textlen}, void * @var{ciphertext}, size_t @var{ciphertextlen})
@var{handle}: is a @code{gnutls_cipher_hd_t}  structure.

@var{text}: the data to encrypt

@var{textlen}: The length of data to encrypt

@var{ciphertext}: the encrypted data

@var{ciphertextlen}: The available length for encrypted data

This function will encrypt the given data using the algorithm
specified by the context.

@strong{Returns:} Zero or a negative error code on error.

@strong{Since:} 2.12.0
@end deftypefun
