]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Minor grammar refinement for hmac.compare_digest().
authorLarry Hastings <larry@hastings.org>
Mon, 25 Jun 2012 07:59:34 +0000 (00:59 -0700)
committerLarry Hastings <larry@hastings.org>
Mon, 25 Jun 2012 07:59:34 +0000 (00:59 -0700)
Doc/library/hmac.rst
Modules/operator.c

index 38f1687b0b71197396901401d0b5d4fb13f75e44..0706ff4378ce34e6cd2c3278efdaff623661c71c 100644 (file)
@@ -80,8 +80,8 @@ This module also provides the following helper function:
    .. note::
 
       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.
+      a timing attack could theoretically reveal information about the
+      types and lengths of *a* and *b*--but not their values.
 
 
    .. versionadded:: 3.3
index 5adb4deafbd9954162a35b95eef5a97dfe2af19d..12fdad54d605b9208f54ee7338d256ef38c511c9 100644 (file)
@@ -217,8 +217,8 @@ PyDoc_STRVAR(compare_digest__doc__,
 "or any type that supports the buffer protocol (e.g. bytes).\n"
 "\n"
 "Note: If a and b are of different lengths, or if an error occurs,\n"
-"a timing attack may be able to reveal information about the types\n"
-"and lengths of a and b, but not their values.\n");
+"a timing attack could theoretically reveal information about the\n"
+"types and lengths of a and b--but not their values.\n");
 
 static PyObject*
 compare_digest(PyObject *self, PyObject *args)