https://github.com/python/cpython/commit/45b72c447cecad5a904507836eaf146a213d81c4
commit: 45b72c447cecad5a904507836eaf146a213d81c4
branch: 3.14
author: Miss Islington (bot) <[email protected]>
committer: picnixz <[email protected]>
date: 2025-07-15T12:09:54Z
summary:

[3.14] gh-72570: mention the incompatibility of XOFs with HMAC (GH-136676) 
(#136678)

gh-72570: mention the incompatibility of XOFs with HMAC (GH-136676)
(cherry picked from commit a02cf19deed353d1e0e7564468f10aced61c12e8)

Co-authored-by: Bénédikt Tran <[email protected]>

files:
M Doc/library/hmac.rst

diff --git a/Doc/library/hmac.rst b/Doc/library/hmac.rst
index d6692033b2d4c3..57076c38086c79 100644
--- a/Doc/library/hmac.rst
+++ b/Doc/library/hmac.rst
@@ -12,6 +12,9 @@
 --------------
 
 This module implements the HMAC algorithm as described by :rfc:`2104`.
+The interface allows to use any hash function with a *fixed* digest size.
+In particular, extendable output functions such as SHAKE-128 or SHAKE-256
+cannot be used with HMAC.
 
 
 .. function:: new(key, msg=None, digestmod)

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]

Reply via email to