Blame doc/functions/gnutls_sec_param_to_pk_bits

Packit aea12f
Packit aea12f
Packit aea12f
Packit aea12f
Packit aea12f
@deftypefun {unsigned int} {gnutls_sec_param_to_pk_bits} (gnutls_pk_algorithm_t @var{algo}, gnutls_sec_param_t @var{param})
Packit aea12f
@var{algo}: is a public key algorithm
Packit aea12f
Packit aea12f
@var{param}: is a security parameter
Packit aea12f
Packit aea12f
When generating private and public key pairs a difficult question
Packit aea12f
is which size of "bits" the modulus will be in RSA and the group size
Packit aea12f
in DSA. The easy answer is 1024, which is also wrong. This function
Packit aea12f
will convert a human understandable security parameter to an
Packit aea12f
appropriate size for the specific algorithm.
Packit aea12f
Packit aea12f
@strong{Returns:} The number of bits, or (0).
Packit aea12f
Packit aea12f
@strong{Since:} 2.12.0
Packit aea12f
@end deftypefun