1414This module implements the HMAC algorithm as described by :rfc: `2104 `.
1515
1616
17- .. function :: new(key, msg=None, digestmod='' )
17+ .. function :: new(key, msg=None, digestmod)
1818
1919 Return a new hmac object. *key * is a bytes or bytearray object giving the
2020 secret key. If *msg * is present, the method call ``update(msg) `` is made.
@@ -27,10 +27,9 @@ This module implements the HMAC algorithm as described by :rfc:`2104`.
2727 Parameter *msg * can be of any type supported by :mod: `hashlib `.
2828 Parameter *digestmod * can be the name of a hash algorithm.
2929
30- .. deprecated-removed :: 3.4 3.8
31- MD5 as implicit default digest for *digestmod * is deprecated.
32- The digestmod parameter is now required. Pass it as a keyword
33- argument to avoid awkwardness when you do not have an initial msg.
30+ .. versionchanged :: 3.8
31+ The *digestmod * argument is now required. Pass it as a keyword
32+ argument to avoid awkwardness when you do not have an initial *msg *.
3433
3534
3635.. function :: digest(key, msg, digest)
@@ -114,11 +113,9 @@ A hash object has the following attributes:
114113 .. versionadded :: 3.4
115114
116115
117- .. deprecated :: 3.9
118-
119- The undocumented attributes ``HMAC.digest_cons ``, ``HMAC.inner ``, and
120- ``HMAC.outer `` are internal implementation details and will be removed in
121- Python 3.10.
116+ .. versionchanged :: 3.10
117+ Removed the undocumented attributes ``HMAC.digest_cons ``, ``HMAC.inner ``,
118+ and ``HMAC.outer ``.
122119
123120This module also provides the following helper function:
124121
0 commit comments