Skip to content

Commit

Permalink
Bump up RSA key sizes to prevent segfault on OpenSSL 3.0.2
Browse files Browse the repository at this point in the history
Signed-off-by: Pravek Sharma <[email protected]>
  • Loading branch information
praveksharma committed Dec 9, 2024
1 parent f63421f commit d5b66c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions oqsprov/oqsprov_keys.c
Original file line number Diff line number Diff line change
Expand Up @@ -596,9 +596,9 @@ static const OQSX_EVP_INFO nids_kem[] = {
{EVP_PKEY_EC, NID_brainpoolP384r1, 0, 97, 171, 48, 104}, // 384 bit
{EVP_PKEY_X25519, NID_X25519, 1, 32, 32, 32, 0}, // 128 bit
{EVP_PKEY_X448, NID_X448, 1, 56, 56, 56, 0}, // 192 bit
{EVP_PKEY_RSA, NID_rsaEncryption, 0, 270, 1192, 256, 256}, // 112 bit
{EVP_PKEY_RSA, NID_rsaEncryption, 0, 398, 1769, 384, 384}, // 128 bit
{EVP_PKEY_RSA, NID_rsaEncryption, 0, 526, 2349, 512, 512}, // 140 bit
{EVP_PKEY_RSA, NID_rsaEncryption, 0, 270, 1193, 256, 256}, // 112 bit
{EVP_PKEY_RSA, NID_rsaEncryption, 0, 398, 1770, 384, 384}, // 128 bit
{EVP_PKEY_RSA, NID_rsaEncryption, 0, 526, 2350, 512, 512}, // 140 bit
};

static const OQSX_EVP_INFO *nids_cmp[] = {nids_sig, nids_kem};
Expand Down

0 comments on commit d5b66c2

Please sign in to comment.