1gnutls_privkey_import_ext2(3)       gnutls       gnutls_privkey_import_ext2(3)
2
3
4

NAME

6       gnutls_privkey_import_ext2 - API function
7

SYNOPSIS

9       #include <gnutls/abstract.h>
10
11       int  gnutls_privkey_import_ext2(gnutls_privkey_t  pkey, gnutls_pk_algo‐
12       rithm_t  pk,  void  *   userdata,   gnutls_privkey_sign_func   sign_fn,
13       gnutls_privkey_decrypt_func    decrypt_fn,   gnutls_privkey_deinit_func
14       deinit_fn, unsigned int flags);
15

ARGUMENTS

17       gnutls_privkey_t pkey
18                   The private key
19
20       gnutls_pk_algorithm_t pk
21                   The public key algorithm
22
23       void * userdata
24                   private data to be provided to the callbacks
25
26       gnutls_privkey_sign_func sign_fn
27                   callback for signature operations
28
29       gnutls_privkey_decrypt_func decrypt_fn
30                   callback for decryption operations
31
32       gnutls_privkey_deinit_func deinit_fn
33                   a deinitialization function
34
35       unsigned int flags
36                   Flags for the import
37

DESCRIPTION

39       This  function  will   associate   the   given   callbacks   with   the
40       gnutls_privkey_t  type.  At  least  one  of  the  two callbacks must be
41       non-null. If a deinitialization function is provided then flags is  as‐
42       sumed to contain GNUTLS_PRIVKEY_IMPORT_AUTO_RELEASE.
43
44       Note  that  the  signing function is supposed to "raw" sign data, i.e.,
45       without any hashing or preprocessing. In case  of  RSA  the  DigestInfo
46       will be provided, and the signing function is expected to do the PKCS 1
47       1.5 padding and the exponentiation.
48
49       See also gnutls_privkey_import_ext3().
50

RETURNS

52       On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative  er‐
53       ror value.
54

SINCE

56       3.1
57

REPORTING BUGS

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

SEE ALSO

70       The  full  documentation  for gnutls is maintained as a Texinfo manual.
71       If the /usr/share/doc/gnutls/ directory does not contain the HTML  form
72       visit
73
74       https://www.gnutls.org/manual/
75
76gnutls                               3.7.2       gnutls_privkey_import_ext2(3)
Impressum