LibCrypto: Refactor HMAC implementations with OpenSSL

This commit is contained in:
devgianlu 2025-02-23 12:10:27 +01:00 committed by Ali Mohammad Pur
commit 80fe259dab
Notes: github-actions[bot] 2025-03-02 14:12:54 +00:00
7 changed files with 153 additions and 123 deletions

View file

@ -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: