1gnutls_privkey_import_ext2(3) gnutls gnutls_privkey_import_ext2(3)
2
3
4
6 gnutls_privkey_import_ext2 - API function
7
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_func,
13 gnutls_privkey_decrypt_func decrypt_func, gnutls_privkey_deinit_func
14 deinit_func, unsigned int flags);
15
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_func
27 callback for signature operations
28
29 gnutls_privkey_decrypt_func decrypt_func
30 callback for decryption operations
31
32 gnutls_privkey_deinit_func deinit_func
33 a deinitialization function
34
35 unsigned int flags
36 Flags for the import
37
39 This function will associate the given callbacks with the
40 gnutls_privkey_t structure. At least one of the two callbacks must be
41 non-null. If a deinitialization function is provided then flags is
42 assumed 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
50 On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative
51 error value.
52
54 3.1
55
57 Report bugs to <bugs@gnutls.org>.
58 Home page: http://www.gnutls.org
59
60
62 Copyright © 2001-2014 Free Software Foundation, Inc..
63 Copying and distribution of this file, with or without modification,
64 are permitted in any medium without royalty provided the copyright
65 notice and this notice are preserved.
66
68 The full documentation for gnutls is maintained as a Texinfo manual.
69 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
70 visit
71
72 http://www.gnutls.org/manual/
73
74gnutls 3.3.29 gnutls_privkey_import_ext2(3)