@deftypefun {int} {gnutls_cipher_encrypt} (gnutls_cipher_hd_t @var{handle}, void * @var{ptext}, size_t @var{ptext_len}) @var{handle}: is a @code{gnutls_cipher_hd_t} type @var{ptext}: the data to encrypt @var{ptext_len}: the length of data to encrypt 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.10.0 @end deftypefun