1 .\" DO NOT MODIFY THIS FILE! It was generated by gdoc.
2 .TH "gnutls_openpgp_privkey_get_subkey_pk_algorithm" 3 "2.12.6.1" "gnutls" "gnutls"
4 gnutls_openpgp_privkey_get_subkey_pk_algorithm \- API function
6 .B #include <gnutls/openpgp.h>
8 .BI "gnutls_pk_algorithm_t gnutls_openpgp_privkey_get_subkey_pk_algorithm(gnutls_openpgp_privkey_t " key ", unsigned int " idx ", unsigned int * " bits ");"
10 .IP "gnutls_openpgp_privkey_t key" 12
12 .IP "unsigned int idx" 12
14 .IP "unsigned int * bits" 12
15 if bits is non null it will hold the size of the parameters' in bits
17 This function will return the public key algorithm of a subkey of an OpenPGP
20 If bits is non null, it should have enough size to hold the parameters
21 size in bits. For RSA the bits returned is the modulus.
22 For DSA the bits returned are of the public exponent.
24 a member of the \fBgnutls_pk_algorithm_t\fP enumeration on
25 success, or a negative value on error.
29 Report bugs to <bug-gnutls@gnu.org>.
30 GnuTLS home page: http://www.gnu.org/software/gnutls/
31 General help using GNU software: http://www.gnu.org/gethelp/
33 Copyright \(co 2008 Free Software Foundation.
35 Copying and distribution of this file, with or without modification,
36 are permitted in any medium without royalty provided the copyright
37 notice and this notice are preserved.
39 The full documentation for
41 is maintained as a Texinfo manual. If the
45 programs are properly installed at your site, the command
49 should give you access to the complete manual.