Home | History | Annotate | Line # | Download | only in man3
      1      1.1  christos =pod
      2      1.1  christos 
      3      1.1  christos =head1 NAME
      4      1.1  christos 
      5      1.1  christos BN_security_bits - returns bits of security based on given numbers
      6      1.1  christos 
      7      1.1  christos =head1 SYNOPSIS
      8      1.1  christos 
      9      1.1  christos  #include <openssl/bn.h>
     10      1.1  christos 
     11      1.1  christos  int BN_security_bits(int L, int N);
     12      1.1  christos 
     13      1.1  christos =head1 DESCRIPTION
     14      1.1  christos 
     15      1.1  christos BN_security_bits() returns the number of bits of security provided by a
     16      1.1  christos specific algorithm and a particular key size. The bits of security is
     17      1.1  christos defined in NIST SP800-57. Currently, BN_security_bits() support two types
     18      1.1  christos of asymmetric algorithms: the FFC (Finite Field Cryptography) and IFC
     19      1.1  christos (Integer Factorization Cryptography). For FFC, e.g., DSA and DH, both
     20      1.1  christos parameters B<L> and B<N> are used to decide the bits of security, where
     21      1.1  christos B<L> is the size of the public key and B<N> is the size of the private
     22      1.1  christos key. For IFC, e.g., RSA, only B<L> is used and it's commonly considered
     23      1.1  christos to be the key size (modulus).
     24      1.1  christos 
     25      1.1  christos =head1 RETURN VALUES
     26      1.1  christos 
     27      1.1  christos Number of security bits.
     28      1.1  christos 
     29      1.1  christos =head1 NOTES
     30      1.1  christos 
     31      1.1  christos ECC (Elliptic Curve Cryptography) is not covered by the BN_security_bits()
     32      1.1  christos function. The symmetric algorithms are not covered neither.
     33      1.1  christos 
     34      1.1  christos =head1 SEE ALSO
     35      1.1  christos 
     36      1.1  christos L<DH_security_bits(3)>, L<DSA_security_bits(3)>, L<RSA_security_bits(3)>
     37      1.1  christos 
     38  1.1.1.3  christos =head1 HISTORY
     39  1.1.1.3  christos 
     40  1.1.1.3  christos The BN_security_bits() function was added in OpenSSL 1.1.0.
     41  1.1.1.3  christos 
     42      1.1  christos =head1 COPYRIGHT
     43      1.1  christos 
     44  1.1.1.3  christos Copyright 2017-2019 The OpenSSL Project Authors. All Rights Reserved.
     45      1.1  christos 
     46  1.1.1.4  christos Licensed under the Apache License 2.0 (the "License").  You may not use
     47      1.1  christos this file except in compliance with the License.  You can obtain a copy
     48      1.1  christos in the file LICENSE in the source distribution or at
     49      1.1  christos L<https://www.openssl.org/source/license.html>.
     50      1.1  christos 
     51      1.1  christos =cut
     52