[Python-checkins] cpython: Simplify wording.

antoine.pitrou python-checkins at python.org
Sun Jun 24 16:25:13 CEST 2012


http://hg.python.org/cpython/rev/ab7afe1d001b
changeset:   77717:ab7afe1d001b
user:        Antoine Pitrou <solipsis at pitrou.net>
date:        Sun Jun 24 16:21:10 2012 +0200
summary:
  Simplify wording.

files:
  Doc/library/hmac.rst |  12 ++++--------
  1 files changed, 4 insertions(+), 8 deletions(-)


diff --git a/Doc/library/hmac.rst b/Doc/library/hmac.rst
--- a/Doc/library/hmac.rst
+++ b/Doc/library/hmac.rst
@@ -88,14 +88,10 @@
 
    .. note::
 
-      While this function reduces the likelihood of leaking the contents of the
-      expected digest via a timing attack, it still may leak some timing
-      information when the input values differ in lengths as well as in error
-      cases like unsupported types or non ASCII strings.  When the inputs have
-      different length the timing depends solely on the length of ``b``.  It is
-      assumed that the expected length of the digest is not a secret, as it is
-      typically published as part of a file format, network protocol or API
-      definition.
+      If *a* and *b* are of different lengths, or if an error occurs,
+      a timing attack may be able to reveal information about the types
+      and lengths of *a* and *b*, but not their values.
+
 
    .. versionadded:: 3.3
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list