Skip to content

Commit

Permalink
Minor grammar refinement for hmac.compare_digest().
Browse files Browse the repository at this point in the history
  • Loading branch information
larryhastings committed Jun 25, 2012
1 parent 4d399a4 commit 48986d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Doc/library/hmac.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions Modules/operator.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 48986d6

Please sign in to comment.