Skip to content

Commit a02cf19

Browse files
authored
gh-72570: mention the incompatibility of XOFs with HMAC (#136676)
1 parent 5b969fd commit a02cf19

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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)