1gnutls_openpgp_privkey_get_pk_algoritgghnnmuu(tt3ll)ss_openpgp_privkey_get_pk_algorithm(3)
2
3
4

NAME

6       gnutls_openpgp_privkey_get_pk_algorithm  -  return  the key's PublicKey
7       algorithm
8

SYNOPSIS

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

ARGUMENTS

16       gnutls_openpgp_privkey_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

RETURNS

32       a member of the gnutls_pk_algorithm_t enumeration on success, or a neg‐
33       ative value on error.
34

SINCE

36       2.4.0
37

REPORTING BUGS

39       Report   bugs   to    <bug-gnutls@gnu.org>.     GnuTLS    home    page:
40       http://www.gnu.org/software/gnutls/  General  help  using GNU software:
41       http://www.gnu.org/gethelp/
42
44       Copyright © 2008 Free Software Foundation.
45       Copying and distribution of this file, with  or  without  modification,
46       are  permitted  in  any  medium  without royalty provided the copyright
47       notice and this notice are preserved.
48

SEE ALSO

50       The full documentation for gnutls is maintained as  a  Texinfo  manual.
51       If  the  info  and gnutls programs are properly installed at your site,
52       the command
53
54              info gnutls
55
56       should give you access to the complete manual.
57
58
59
60gnutls                              g2n.u8t.l6s_openpgp_privkey_get_pk_algorithm(3)
Impressum