From 48986d68c2bc6da075fed2cb9f8426afc7c6a622 Mon Sep 17 00:00:00 2001 From: Larry Hastings Date: Mon, 25 Jun 2012 00:59:34 -0700 Subject: Minor grammar refinement for hmac.compare_digest(). --- 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 index 38f1687..0706ff4 100644 --- a/Doc/library/hmac.rst +++ b/Doc/library/hmac.rst @@ -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 diff --git a/Modules/operator.c b/Modules/operator.c index 5adb4de..12fdad5 100644 --- a/Modules/operator.c +++ b/Modules/operator.c @@ -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) -- cgit v0.12