Debian Codegraph @

doc/functions/gnutls_sec_param_to_pk_bits

raw
1
2
3
4
5 @deftypefun {unsigned int} {gnutls_sec_param_to_pk_bits} (gnutls_pk_algorithm_t @var{algo}, gnutls_sec_param_t @var{param})
6 @var{algo}: is a public key algorithm
7
8 @var{param}: is a security parameter
9
10 When generating private and public key pairs a difficult question
11 is which size of "bits" the modulus will be in RSA and the group size
12 in DSA. The easy answer is 1024, which is also wrong. This function
13 will convert a human understandable security parameter to an
14 appropriate size for the specific algorithm.
15
16 @strong{Returns:} The number of bits, or (0).
17
18 @strong{Since:} 2.12.0
19 @end deftypefun