1gnutls_openpgp_crt_get_pk_algorithm(3g)nutlgsnutls_openpgp_crt_get_pk_algorithm(3)
2
3
4

NAME

6       gnutls_openpgp_crt_get_pk_algorithm  - return the key's PublicKey algo‐
7       rithm
8

SYNOPSIS

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

ARGUMENTS

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

REPORTING BUGS

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

SEE ALSO

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