1gnutls_privkey_import_ext(3)        gnutls        gnutls_privkey_import_ext(3)
2
3
4

NAME

6       gnutls_privkey_import_ext - API function
7

SYNOPSIS

9       #include <gnutls/abstract.h>
10
11       int  gnutls_privkey_import_ext(gnutls_privkey_t  pkey,  gnutls_pk_algo‐
12       rithm_t  pk,  void  *  userdata,  gnutls_privkey_sign_func   sign_func,
13       gnutls_privkey_decrypt_func decrypt_func, unsigned int flags);
14

ARGUMENTS

16       gnutls_privkey_t pkey
17                   The private key
18
19       gnutls_pk_algorithm_t pk
20                   The public key algorithm
21
22       void * userdata
23                   private data to be provided to the callbacks
24
25       gnutls_privkey_sign_func sign_func
26                   callback for signature operations
27
28       gnutls_privkey_decrypt_func decrypt_func
29                   callback for decryption operations
30
31       unsigned int flags
32                   Flags for the import
33

DESCRIPTION

35       This   function   will   associate   the   given   callbacks  with  the
36       gnutls_privkey_t type. At least  one  of  the  two  callbacks  must  be
37       non-null.
38
39       Note  that  the  signing function is supposed to "raw" sign data, i.e.,
40       without any hashing or preprocessing. In case  of  RSA  the  DigestInfo
41       will be provided, and the signing function is expected to do the PKCS 1
42       1.5 padding and the exponentiation.
43
44       See also gnutls_privkey_import_ext3().
45

RETURNS

47       On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative  er‐
48       ror value.
49

SINCE

51       3.0
52

REPORTING BUGS

54       Report bugs to <bugs@gnutls.org>.
55       Home page: https://www.gnutls.org
56
57
59       Copyright © 2001- Free Software Foundation, Inc., and others.
60       Copying  and  distribution  of this file, with or without modification,
61       are permitted in any medium without royalty provided the copyright  no‐
62       tice and this notice are preserved.
63

SEE ALSO

65       The  full  documentation  for gnutls is maintained as a Texinfo manual.
66       If the /usr/share/doc/gnutls/ directory does not contain the HTML  form
67       visit
68
69       https://www.gnutls.org/manual/
70
71gnutls                               3.7.2        gnutls_privkey_import_ext(3)
Impressum