]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix RSA key size validation in EVP_PKEY_RSA_keygen demo
authorQuin-Darcy <pohmsuindraguli@gmail.com>
Thu, 31 Jul 2025 14:07:46 +0000 (09:07 -0500)
committerTomas Mraz <tomas@openssl.org>
Mon, 11 Aug 2025 14:46:11 +0000 (16:46 +0200)
commitc79e1b212a616b8dca194a77e7698b886000fcb0
treebfc4c8a092431d0235acaca1ec242b7b93c5fe88
parente729d7c7329200ab9152ad4817d09f0a65dec2d6
Fix RSA key size validation in EVP_PKEY_RSA_keygen demo

The validation was checking the default 'bits' value (4096) instead of
the parsed 'bits_i' from the command line arguments, allowing invalid
key sizes to bypass the 512-bit minimum.

CLA: trivial

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/28139)
demos/pkey/EVP_PKEY_RSA_keygen.c