1gnutls_cipher_decrypt3(3) gnutls gnutls_cipher_decrypt3(3)
2
3
4
6 gnutls_cipher_decrypt3 - API function
7
9 #include <gnutls/crypto.h>
10
11 int gnutls_cipher_decrypt3(gnutls_cipher_hd_t handle, const void *
12 ctext, size_t ctext_len, void * ptext, size_t * ptext_len, unsigned
13 flags);
14
16 gnutls_cipher_hd_t handle
17 is a gnutls_cipher_hd_t type
18
19 const void * ctext
20 the data to decrypt
21
22 size_t ctext_len
23 the length of data to decrypt
24
25 void * ptext
26 the decrypted data
27
28 size_t * ptext_len
29 the available length for decrypted data
30
31 unsigned flags
32 flags for padding
33
35 This function will decrypt the given data using the algorithm specified
36 by the context. If flags is specified, padding for the decrypted data
37 will be removed accordingly and ptext_len will be updated.
38
40 Zero or a negative error code on error.
41
43 3.7.7
44
46 Report bugs to <bugs@gnutls.org>.
47 Home page: https://www.gnutls.org
48
49
51 Copyright © 2001- Free Software Foundation, Inc., and others.
52 Copying and distribution of this file, with or without modification,
53 are permitted in any medium without royalty provided the copyright no‐
54 tice and this notice are preserved.
55
57 The full documentation for gnutls is maintained as a Texinfo manual.
58 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
59 visit
60
61 https://www.gnutls.org/manual/
62
63gnutls 3.7.8 gnutls_cipher_decrypt3(3)