diff options
author | Larry Hastings <larry@hastings.org> | 2012-06-25 00:59:34 -0700 |
---|---|---|
committer | Larry Hastings <larry@hastings.org> | 2012-06-25 00:59:34 -0700 |
commit | 48986d68c2bc6da075fed2cb9f8426afc7c6a622 (patch) | |
tree | 32f3de3415c28a43d199ae44f379a4960795b2fe | |
parent | 4d399a40920fe34fb9ef27181de739f771071ec2 (diff) | |
download | cpython-git-48986d68c2bc6da075fed2cb9f8426afc7c6a622.tar.gz |
Minor grammar refinement for hmac.compare_digest().
-rw-r--r-- | Doc/library/hmac.rst | 4 | ||||
-rw-r--r-- | Modules/operator.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/hmac.rst b/Doc/library/hmac.rst index 38f1687b0b..0706ff4378 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 5adb4deafb..12fdad54d6 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) |