mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-20 16:28:54 +00:00
LibCrypto: Make RSA class easily configurable
This is a small change to allow subclasses of `RSA` to configure the `EVP_PKEY_CTX` without rewriting everything.
This commit is contained in:
parent
91c393ea98
commit
6e721110f9
Notes:
github-actions[bot]
2025-01-13 16:01:42 +00:00
Author: https://github.com/devgianlu
Commit: 6e721110f9
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3234
2 changed files with 10 additions and 2 deletions
|
@ -222,6 +222,8 @@ public:
|
|||
void set_private_key(PrivateKeyType const& key) { m_private_key = key; }
|
||||
|
||||
protected:
|
||||
virtual ErrorOr<void> configure(OpenSSL_PKEY_CTX& ctx);
|
||||
|
||||
static ErrorOr<OpenSSL_PKEY> public_key_to_openssl_pkey(PublicKeyType const& public_key);
|
||||
static ErrorOr<OpenSSL_PKEY> private_key_to_openssl_pkey(PrivateKeyType const& private_key);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue