1gnutls_openpgp_key_get_pk_algorithm(3g)nutlgsnutls_openpgp_key_get_pk_algorithm(3)
2
3
4

NAME

6       gnutls_openpgp_key_get_pk_algorithm  -  This function returns the key's
7       PublicKey algorithm
8

SYNOPSIS

10       #include <gnutls/openpgp.h>
11
12       gnutls_pk_algorithm_t                   gnutls_openpgp_key_get_pk_algo‐
13       rithm(gnutls_openpgp_key_t key, unsigned int * bits);
14

ARGUMENTS

16       gnutls_openpgp_key_t key
17                   is an OpenPGP key
18
19       unsigned int * bits
20                   if  bits  is  non null it will hold the size of the parame‐
21                   ters' in bits
22

DESCRIPTION

24       This function will return the public key algorithm of an  OpenPGP  cer‐
25       tificate.
26
27       If  bits is non null, it should have enough size to hold the parameters
28       size in bits. For RSA the bits returned is the modulus.   For  DSA  the
29       bits returned are of the public exponent.
30
31       Returns a member of the GNUTLS_PKAlgorithm enumeration on success, or a
32       negative value on error.
33

REPORTING BUGS

35       Report bugs to <bug-gnutls@gnu.org>.
36
38       Copyright © 2006 Free Software Foundation.
39       Permission is granted to make and distribute verbatim  copies  of  this
40       manual  provided  the  copyright  notice and this permission notice are
41       preserved on all copies.
42

SEE ALSO

44       The full documentation for gnutls is maintained as  a  Texinfo  manual.
45       If  the  info  and gnutls programs are properly installed at your site,
46       the command
47
48              info gnutls
49
50       should give you access to the complete manual.
51
52
53
54gnutls                               1.6.g3nutls_openpgp_key_get_pk_algorithm(3)
Impressum