1gnutls_privkey_decrypt_data2(3) gnutls gnutls_privkey_decrypt_data2(3)
2
3
4
6 gnutls_privkey_decrypt_data2 - API function
7
9 #include <gnutls/abstract.h>
10
11 int gnutls_privkey_decrypt_data2(gnutls_privkey_t key, unsigned int
12 flags, const gnutls_datum_t * ciphertext, unsigned char * plaintext,
13 size_t plaintext_size);
14
16 gnutls_privkey_t key
17 Holds the key
18
19 unsigned int flags
20 zero for now
21
22 const gnutls_datum_t * ciphertext
23 holds the data to be decrypted
24
25 unsigned char * plaintext
26 a preallocated buffer that will be filled with the plain‐
27 text
28
29 size_t plaintext_size
30 in/out size of the plaintext
31
33 This function will decrypt the given data using the algorithm supported
34 by the private key. Unlike with gnutls_privkey_decrypt_data() this
35 function operates in constant time and constant memory access.
36
38 On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative er‐
39 ror value.
40
42 3.6.5
43
45 Report bugs to <bugs@gnutls.org>.
46 Home page: https://www.gnutls.org
47
48
50 Copyright © 2001- Free Software Foundation, Inc., and others.
51 Copying and distribution of this file, with or without modification,
52 are permitted in any medium without royalty provided the copyright no‐
53 tice and this notice are preserved.
54
56 The full documentation for gnutls is maintained as a Texinfo manual.
57 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
58 visit
59
60 https://www.gnutls.org/manual/
61
62gnutls 3.7.2 gnutls_privkey_decrypt_data2(3)