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