summaryrefslogtreecommitdiffstats
path: root/doc/functions/gnutls_cipher_decrypt2
diff options
context:
space:
mode:
Diffstat (limited to 'doc/functions/gnutls_cipher_decrypt2')
-rw-r--r--doc/functions/gnutls_cipher_decrypt227
1 files changed, 27 insertions, 0 deletions
diff --git a/doc/functions/gnutls_cipher_decrypt2 b/doc/functions/gnutls_cipher_decrypt2
new file mode 100644
index 0000000..5ab0de8
--- /dev/null
+++ b/doc/functions/gnutls_cipher_decrypt2
@@ -0,0 +1,27 @@
+
+
+
+
+@deftypefun {int} {gnutls_cipher_decrypt2} (gnutls_cipher_hd_t @var{handle}, const void * @var{ctext}, size_t @var{ctext_len}, void * @var{ptext}, size_t @var{ptext_len})
+@var{handle}: is a @code{gnutls_cipher_hd_t} type
+
+@var{ctext}: the data to decrypt
+
+@var{ctext_len}: the length of data to decrypt
+
+@var{ptext}: the decrypted data
+
+@var{ptext_len}: the available length for decrypted data
+
+This function will decrypt the given data using the algorithm
+specified by the context. For block ciphers the @code{ctext_len} must be
+a multiple of the block size. For the supported ciphers the plaintext
+data length will equal the ciphertext size.
+
+Note that in AEAD ciphers, this will not check the tag. You will
+need to compare the tag sent with the value returned from @code{gnutls_cipher_tag()} .
+
+@strong{Returns:} Zero or a negative error code on error.
+
+@strong{Since:} 2.12.0
+@end deftypefun