Skip to content

Commit a31ccb8

Browse files
miss-islingtonpicnixz
authored andcommitted
[3.14] pythongh-72570: mention the incompatibility of XOFs with HMAC (pythonGH-136676) (python#136678)
pythongh-72570: mention the incompatibility of XOFs with HMAC (pythonGH-136676) (cherry picked from commit a02cf19) Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
1 parent dfaf183 commit a31ccb8

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Doc/library/hmac.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
--------------
1313

1414
This module implements the HMAC algorithm as described by :rfc:`2104`.
15+
The interface allows to use any hash function with a *fixed* digest size.
16+
In particular, extendable output functions such as SHAKE-128 or SHAKE-256
17+
cannot be used with HMAC.
1518

1619

1720
.. function:: new(key, msg=None, digestmod)

0 commit comments

Comments
 (0)