Skip to content

Commit 8517a89

Browse files
[3.13] gh-72570: mention the incompatibility of XOFs with HMAC (GH-136676) (#136679)
gh-72570: mention the incompatibility of XOFs with HMAC (GH-136676) (cherry picked from commit a02cf19) Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
1 parent 592a313 commit 8517a89

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)