Skip to content

Commit

Permalink
Update hmac.go
Browse files Browse the repository at this point in the history
Co-authored-by: Davis Goodin <[email protected]>
  • Loading branch information
qmuntal and dagood authored Sep 5, 2024
1 parent 3ae393d commit aa456e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hmac.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ func buildHMAC3Params(digest *C.char) C.GO_OSSL_PARAM_PTR {
}

func isHMAC3DigestSupported(digest string) bool {
if _, ok := hmacDigestsSupported.Load(digest); ok {
return true
if v, ok := hmacDigestsSupported.Load(digest); ok {
return v.(bool)
}
ctx := C.go_openssl_EVP_MAC_CTX_new(fetchHMAC3())
if ctx == nil {
Expand Down

0 comments on commit aa456e4

Please sign in to comment.