1gnutls_openpgp_privkey_get_subgkneuyt_lpsk__goanpluegtnolprsgipt_hpmr(i3v)key_get_subkey_pk_algorithm(3)
2
3
4
6 gnutls_openpgp_privkey_get_subkey_pk_algorithm - API function
7
9 #include <gnutls/openpgp.h>
10
11 gnutls_pk_algorithm_t gnutls_openpgp_privkey_get_subkey_pk_algo‐
12 rithm(gnutls_openpgp_privkey_t key, unsigned int idx,
13 unsigned int * bits);
14
16 gnutls_openpgp_privkey_t key
17 is an OpenPGP key
18
19 unsigned int idx
20 is the subkey index
21
22 unsigned int * bits
23 if bits is non null it will hold the size of the parame‐
24 ters' in bits
25
27 This function will return the public key algorithm of a subkey of an
28 OpenPGP certificate.
29
30 If bits is non null, it should have enough size to hold the parameters
31 size in bits. For RSA the bits returned is the modulus. For DSA the
32 bits returned are of the public exponent.
33
35 a member of the gnutls_pk_algorithm_t enumeration on success, or a neg‐
36 ative error code on error.
37
39 2.4.0
40
42 Report bugs to <bugs@gnutls.org>.
43 Home page: http://www.gnutls.org
44
45
47 Copyright © 2001-2014 Free Software Foundation, Inc..
48 Copying and distribution of this file, with or without modification,
49 are permitted in any medium without royalty provided the copyright
50 notice and this notice are preserved.
51
53 The full documentation for gnutls is maintained as a Texinfo manual.
54 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
55 visit
56
57 http://www.gnutls.org/manual/
58
59gnutls gnutls_3o.p3e.n2p9gp_privkey_get_subkey_pk_algorithm(3)