mirror of
https://github.com/python/cpython.git
synced 2025-09-10 02:36:56 +00:00
Minor grammar refinement for hmac.compare_digest().
This commit is contained in:
parent
4d399a4092
commit
48986d68c2
2 changed files with 4 additions and 4 deletions
|
@ -80,8 +80,8 @@ This module also provides the following helper function:
|
||||||
.. note::
|
.. note::
|
||||||
|
|
||||||
If *a* and *b* are of different lengths, or if an error occurs,
|
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
|
a timing attack could theoretically reveal information about the
|
||||||
and lengths of *a* and *b*, but not their values.
|
types and lengths of *a* and *b*--but not their values.
|
||||||
|
|
||||||
|
|
||||||
.. versionadded:: 3.3
|
.. versionadded:: 3.3
|
||||||
|
|
|
@ -217,8 +217,8 @@ PyDoc_STRVAR(compare_digest__doc__,
|
||||||
"or any type that supports the buffer protocol (e.g. bytes).\n"
|
"or any type that supports the buffer protocol (e.g. bytes).\n"
|
||||||
"\n"
|
"\n"
|
||||||
"Note: If a and b are of different lengths, or if an error occurs,\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"
|
"a timing attack could theoretically reveal information about the\n"
|
||||||
"and lengths of a and b, but not their values.\n");
|
"types and lengths of a and b--but not their values.\n");
|
||||||
|
|
||||||
static PyObject*
|
static PyObject*
|
||||||
compare_digest(PyObject *self, PyObject *args)
|
compare_digest(PyObject *self, PyObject *args)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue