Skip to content

Commit a4864e9

Browse files
committed
bpo-37218: Change example HMAC.name, to a stronger hash
In case readers of the documentation are taking this exmaple as some form of recommendation, change it to a hashing alogrithm without known collision attacks. As https://tools.ietf.org/html/rfc6151 notes "attacks on HMAC-MD5 do not seem to indicate a practical vulnerability when used as a message authentication code", but "for a new protocol design, a ciphersuite with HMAC-MD5 should not be included". On this basis I think it's best not to mention it here.
1 parent fa8d736 commit a4864e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/hmac.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ A hash object has the following attributes:
106106

107107
.. attribute:: HMAC.name
108108

109-
The canonical name of this HMAC, always lowercase, e.g. ``hmac-md5``.
109+
The canonical name of this HMAC, always lowercase, e.g. ``hmac-sha256``.
110110

111111
.. versionadded:: 3.4
112112

0 commit comments

Comments
 (0)