This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author christian.heimes
Recipients christian.heimes, gregory.p.smith
Date 2020-05-17.08:46:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1589705162.35.0.5352969374.issue40645@roundup.psfhosted.org>
In-reply-to
Content
def new(key, msg=None, digestmod=''):
    # use fast HMAC if OpenSSL bindings are available and digestmod is
    # either a string or a callable that returns an OpenSSL HASH object.
    if _hashopenssl is not None:
        if isinstance(digestmod, str):
            return _hashopenssl.hmac_new(key, msg, digestmod)
        if callable(digestmod):
            digest = digestmod(b'')
            if isinstance(digest, _hashopenssl.HASH):
                return _hashopenssl.hmac_new(key, msg, digest.name)
    return HMAC(key, msg, digestmod)
History
Date User Action Args
2020-05-17 08:46:02christian.heimessetrecipients: + christian.heimes, gregory.p.smith
2020-05-17 08:46:02christian.heimessetmessageid: <1589705162.35.0.5352969374.issue40645@roundup.psfhosted.org>
2020-05-17 08:46:02christian.heimeslinkissue40645 messages
2020-05-17 08:46:02christian.heimescreate