1gnutls_sec_param_to_pk_bits(3)      gnutls      gnutls_sec_param_to_pk_bits(3)
2
3
4

NAME

6       gnutls_sec_param_to_pk_bits - API function
7

SYNOPSIS

9       #include <gnutls/gnutls.h>
10
11       unsigned  int  gnutls_sec_param_to_pk_bits(gnutls_pk_algorithm_t  algo,
12       gnutls_sec_param_t param);
13

ARGUMENTS

15       gnutls_pk_algorithm_t algo
16                   is a public key algorithm
17
18       gnutls_sec_param_t param
19                   is a security parameter
20

DESCRIPTION

22       When generating private and public key pairs a  difficult  question  is
23       which  size  of "bits" the modulus will be in RSA and the group size in
24       DSA. The easy answer is 1024, which is also wrong. This  function  will
25       convert  a  human  understandable  security parameter to an appropriate
26       size for the specific algorithm.
27

RETURNS

29       The number of bits, or zero.
30

REPORTING BUGS

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

SEE ALSO

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