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 <>
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,
    return HMAC(key, msg, digestmod)
Date User Action Args
2020-05-17 08:46:02christian.heimessetrecipients: + christian.heimes, gregory.p.smith
2020-05-17 08:46:02christian.heimessetmessageid: <>
2020-05-17 08:46:02christian.heimeslinkissue40645 messages
2020-05-17 08:46:02christian.heimescreate