Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Factory:LegacyX86
openssl-3
openssl-FIPS-Add-SP800-56Br2-6.4.1.2.1-3.c-chec...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File openssl-FIPS-Add-SP800-56Br2-6.4.1.2.1-3.c-check.patch of Package openssl-3
Index: openssl-3.1.4/crypto/rsa/rsa_sp800_56b_check.c =================================================================== --- openssl-3.1.4.orig/crypto/rsa/rsa_sp800_56b_check.c +++ openssl-3.1.4/crypto/rsa/rsa_sp800_56b_check.c @@ -405,7 +405,10 @@ int ossl_rsa_sp800_56b_check_keypair(con return 0; } /* (Step 3.b): check the modulus */ - if (nbits != BN_num_bits(rsa->n)) { + /* If nBits is not a positive even integer, output an indication of an + * invalid key pair, and exit without further processing. + */ + if (nbits <= 0 || nbits % 2 || nbits != BN_num_bits(rsa->n)) { ERR_raise(ERR_LIB_RSA, RSA_R_INVALID_KEYPAIR); return 0; }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor