Stop partial()ing hashlib.new

Seems to be causing issues on (some?) FIPS nodes.

Change-Id: I4fcacc76ab52b45510aee82156a7cbf6ad72467d
(cherry picked from commit 471a559a4d)
This commit is contained in:
Tim Burke 2022-03-16 13:51:02 -07:00 committed by Christian Schwede
parent 7c888bf6ca
commit 00763d5a00
1 changed files with 1 additions and 2 deletions

View File

@ -299,7 +299,6 @@ __all__ = ['TempURL', 'filter_factory',
import binascii
from calendar import timegm
import functools
import hashlib
import six
from os.path import basename
@ -750,7 +749,7 @@ class TempURL(object):
if not request_method:
request_method = env['REQUEST_METHOD']
digest = functools.partial(hashlib.new, hash_algorithm)
digest = getattr(hashlib, hash_algorithm)
return [
(get_hmac(