diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2012-06-24 14:18:48 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2012-06-24 14:18:48 (GMT) |
commit | 1524d7556dd235336f1f02eeed3b82e9dc68dc2c (patch) | |
tree | 364dbc37bc7b0ff7b181b643169d03a81eedd499 | |
parent | db99dd0605060297e44238d534aaa10e8718fb85 (diff) | |
download | cpython-1524d7556dd235336f1f02eeed3b82e9dc68dc2c.zip cpython-1524d7556dd235336f1f02eeed3b82e9dc68dc2c.tar.gz cpython-1524d7556dd235336f1f02eeed3b82e9dc68dc2c.tar.bz2 |
Formatting
-rw-r--r-- | Doc/library/hmac.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/library/hmac.rst b/Doc/library/hmac.rst index ce93cbc..877f3b7 100644 --- a/Doc/library/hmac.rst +++ b/Doc/library/hmac.rst @@ -72,10 +72,10 @@ This module also provides the following helper function: Return ``a == b``. This function uses an approach designed to prevent timing analysis by avoiding content based short circuiting behaviour, making it - appropriate for cryptography. *a* and *b* - must both be of the same type: either :class:`str` (ASCII only, as e.g. - returned by :meth:`HMAC.hexdigest`), or any type that supports the - buffer protocol (e.g. :class:`bytes`). + appropriate for cryptography. *a* and *b* must both be of the same type: + either :class:`str` (ASCII only, as e.g. returned by + :meth:`HMAC.hexdigest`), or any type that supports the buffer protocol + (e.g. :class:`bytes`). Using a short circuiting comparison (that is, one that terminates as soon as it finds any difference between the values) to check digests for correctness |