mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +00:00
LibCrypto: Refactor HMAC
implementations with OpenSSL
This commit is contained in:
parent
c5d0af54d0
commit
80fe259dab
Notes:
github-actions[bot]
2025-03-02 14:12:54 +00:00
Author: https://github.com/devgianlu
Commit: 80fe259dab
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3749
Reviewed-by: https://github.com/konradekk
7 changed files with 153 additions and 123 deletions
|
@ -47,6 +47,8 @@ ErrorOr<UnsignedBigInteger> openssl_bignum_to_unsigned_big_integer(OpenSSL_BN co
|
|||
ErrorOr<StringView> hash_kind_to_openssl_digest_name(Hash::HashKind hash)
|
||||
{
|
||||
switch (hash) {
|
||||
case Hash::HashKind::MD5:
|
||||
return "MD5"sv;
|
||||
case Hash::HashKind::SHA1:
|
||||
return "SHA1"sv;
|
||||
case Hash::HashKind::SHA256:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue