1gnutls_privkey_decrypt_data(3)      gnutls      gnutls_privkey_decrypt_data(3)
2
3
4

NAME

6       gnutls_privkey_decrypt_data - API function
7

SYNOPSIS

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

ARGUMENTS

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

DESCRIPTION

29       This function will decrypt the given data using the algorithm supported
30       by the private key.
31

RETURNS

33       On success, GNUTLS_E_SUCCESS (0)  is  returned,  otherwise  a  negative
34       error value.
35

SINCE

37       2.12.0
38

REPORTING BUGS

40       Report bugs to <bugs@gnutls.org>.
41       Home page: http://www.gnutls.org
42
43
45       Copyright © 2001-2018 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
48       notice and this notice are preserved.
49

SEE ALSO

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       http://www.gnutls.org/manual/
56
57gnutls                               3.6.5      gnutls_privkey_decrypt_data(3)
Impressum