1gnutls_privkey_decrypt_data2(3)     gnutls     gnutls_privkey_decrypt_data2(3)
2
3
4

NAME

6       gnutls_privkey_decrypt_data2 - API function
7

SYNOPSIS

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

ARGUMENTS

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

DESCRIPTION

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

RETURNS

38       On success, GNUTLS_E_SUCCESS (0)  is  returned,  otherwise  a  negative
39       error value.
40

SINCE

42       3.6.5
43

REPORTING BUGS

45       Report bugs to <bugs@gnutls.org>.
46       Home page: http://www.gnutls.org
47
48
50       Copyright © 2001-2018 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
53       notice and this notice are preserved.
54

SEE ALSO

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       http://www.gnutls.org/manual/
61
62gnutls                               3.6.5     gnutls_privkey_decrypt_data2(3)
Impressum