mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-05 22:52:10 +02:00
LibCrypto: Allow callers to pass exponent to RSA::generate_key_pair
This commit is contained in:
committed by
Andrew Kaster
parent
0b4858e589
commit
139ff3552c
@@ -98,10 +98,10 @@ public:
|
||||
using KeyPairType = RSAKeyPair<PublicKeyType, PrivateKeyType>;
|
||||
|
||||
static KeyPairType parse_rsa_key(ReadonlyBytes der);
|
||||
static KeyPairType generate_key_pair(size_t bits = 256)
|
||||
static KeyPairType generate_key_pair(size_t bits = 256, IntegerType e = 65537)
|
||||
{
|
||||
IntegerType e { 65537 }; // :P
|
||||
IntegerType p, q;
|
||||
IntegerType p;
|
||||
IntegerType q;
|
||||
IntegerType lambda;
|
||||
|
||||
do {
|
||||
|
||||
Reference in New Issue
Block a user