mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 20:15:17 +00:00
LibCrypto: Remove default key size for RSA::generate_key_pair
The current default is unsafe, but determining a safe value is not easy. Leave it up to the caller to decide.
This commit is contained in:
parent
9e08f71fd9
commit
6ba627b047
Notes:
github-actions[bot]
2025-01-12 00:14:51 +00:00
Author: https://github.com/devgianlu Commit: https://github.com/LadybirdBrowser/ladybird/commit/6ba627b0470 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3225 Reviewed-by: https://github.com/alimpfard Reviewed-by: https://github.com/gmta ✅
1 changed files with 1 additions and 1 deletions
|
@ -160,7 +160,7 @@ public:
|
|||
using KeyPairType = RSAKeyPair<PublicKeyType, PrivateKeyType>;
|
||||
|
||||
static ErrorOr<KeyPairType> parse_rsa_key(ReadonlyBytes der, bool is_private, Vector<StringView> current_scope);
|
||||
static ErrorOr<KeyPairType> generate_key_pair(size_t bits = 256, IntegerType e = 65537);
|
||||
static ErrorOr<KeyPairType> generate_key_pair(size_t bits, IntegerType e = 65537);
|
||||
|
||||
RSA(KeyPairType const& pair)
|
||||
: PKSystem<RSAPrivateKey<IntegerType>, RSAPublicKey<IntegerType>>(pair.public_key, pair.private_key)
|
||||
|
|
Loading…
Add table
Reference in a new issue