BN_security_bits

Estimate the security strength in bits for asymmetric parameters of sizes L and N.

Synopsis

Declared in <openssl/bn.h>

int
BN_security_bits(
    int L,
    int N);

Return Value

Estimated security strength in bits (NIST SP 800-57 style).

Parameters

NameDescription
LPublic-key / modulus size in bits (for example RSA modulus length).
NPrivate-value size in bits (for example subgroup order); may be 0 when unused.