[Python-checkins] cpython: Minor grammar refinement for hmac.compare_digest().
larry.hastings
python-checkins at python.org
Mon Jun 25 09:59:50 CEST 2012
http://hg.python.org/cpython/rev/485a4f4ad08d
changeset: 77761:485a4f4ad08d
user: Larry Hastings <larry at hastings.org>
date: Mon Jun 25 00:59:34 2012 -0700
summary:
Minor grammar refinement for hmac.compare_digest().
files:
Doc/library/hmac.rst | 4 ++--
Modules/operator.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/Doc/library/hmac.rst b/Doc/library/hmac.rst
--- a/Doc/library/hmac.rst
+++ b/Doc/library/hmac.rst
@@ -80,8 +80,8 @@
.. 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
diff --git a/Modules/operator.c b/Modules/operator.c
--- a/Modules/operator.c
+++ b/Modules/operator.c
@@ -217,8 +217,8 @@
"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)
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list