1BN_SECURITY_BITS(3) OpenSSL BN_SECURITY_BITS(3)
2
3
4
6 BN_security_bits - returns bits of security based on given numbers
7
9 #include <openssl/bn.h>
10
11 int BN_security_bits(int L, int N);
12
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
25 Number of security bits.
26
28 ECC (Elliptic Curve Cryptography) is not covered by the
29 BN_security_bits() function. The symmetric algorithms are not covered
30 neither.
31
33 DH_security_bits(3), DSA_security_bits(3), RSA_security_bits(3)
34
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 OpenSSL license (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
481.1.1g 2020-04-23 BN_SECURITY_BITS(3)