mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +00:00
LibCrypto: Make PKSystem
methods return ErrorOr
Make `encrypt`, `decrypt`, `sign` and `verify` return `ErrorOr` for better error propagation.
This commit is contained in:
parent
6ba627b047
commit
df05cc8478
Notes:
github-actions[bot]
2025-01-12 00:14:44 +00:00
Author: https://github.com/devgianlu
Commit: df05cc8478
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3225
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/gmta ✅
9 changed files with 68 additions and 82 deletions
|
@ -195,7 +195,7 @@ void TLSv12::build_rsa_pre_master_secret(PacketBuilder& builder)
|
|||
Vector<u8, 32> out;
|
||||
out.resize(rsa.output_size());
|
||||
auto outbuf = out.span();
|
||||
rsa.encrypt(m_context.premaster_key, outbuf);
|
||||
MUST(rsa.encrypt(m_context.premaster_key, outbuf));
|
||||
|
||||
if constexpr (TLS_DEBUG) {
|
||||
dbgln("Encrypted: ");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue