1BN_SECURITY_BITS(3ossl)             OpenSSL            BN_SECURITY_BITS(3ossl)
2
3
4

NAME

6       BN_security_bits - returns bits of security based on given numbers
7

SYNOPSIS

9        #include <openssl/bn.h>
10
11        int BN_security_bits(int L, int N);
12

DESCRIPTION

14       BN_security_bits() returns the number of bits of security provided by a
15       specific algorithm and a particular key size. The bits of security is
16       defined in NIST SP800-57. Currently, BN_security_bits() support two
17       types of asymmetric algorithms: the FFC (Finite Field Cryptography) and
18       IFC (Integer Factorization Cryptography). For FFC, e.g., DSA and DH,
19       both parameters L and N are used to decide the bits of security, where
20       L is the size of the public key and N is the size of the private key.
21       For IFC, e.g., RSA, only L is used and it's commonly considered to be
22       the key size (modulus).
23

RETURN VALUES

25       Number of security bits.
26

NOTES

28       ECC (Elliptic Curve Cryptography) is not covered by the
29       BN_security_bits() function. The symmetric algorithms are not covered
30       neither.
31

SEE ALSO

33       DH_security_bits(3), DSA_security_bits(3), RSA_security_bits(3)
34

HISTORY

36       The BN_security_bits() function was added in OpenSSL 1.1.0.
37
39       Copyright 2017-2019 The OpenSSL Project Authors. All Rights Reserved.
40
41       Licensed under the Apache License 2.0 (the "License").  You may not use
42       this file except in compliance with the License.  You can obtain a copy
43       in the file LICENSE in the source distribution or at
44       <https://www.openssl.org/source/license.html>.
45
46
47
483.0.5                             2022-07-05           BN_SECURITY_BITS(3ossl)
Impressum