aboutsummaryrefslogtreecommitdiffstats
path: root/docs/hazmat/primitives/constant-time.rst
diff options
context:
space:
mode:
authorAyrx <terrycwk1994@gmail.com>2014-05-17 19:47:09 +0800
committerAyrx <terrycwk1994@gmail.com>2014-05-17 19:47:09 +0800
commit00eff9ca7fece942670429824cb77dd532190c96 (patch)
tree6fdc0df70cd1bbecd56049208899111a8edcd202 /docs/hazmat/primitives/constant-time.rst
parent6d69eab6caff7b87d32fab3c7178296e481eb8a4 (diff)
downloadcryptography-00eff9ca7fece942670429824cb77dd532190c96.tar.gz
cryptography-00eff9ca7fece942670429824cb77dd532190c96.tar.bz2
cryptography-00eff9ca7fece942670429824cb77dd532190c96.zip
Simplified exception message
Diffstat (limited to 'docs/hazmat/primitives/constant-time.rst')
-rw-r--r--docs/hazmat/primitives/constant-time.rst5
1 files changed, 2 insertions, 3 deletions
diff --git a/docs/hazmat/primitives/constant-time.rst b/docs/hazmat/primitives/constant-time.rst
index 3296dbde..1394b6b3 100644
--- a/docs/hazmat/primitives/constant-time.rst
+++ b/docs/hazmat/primitives/constant-time.rst
@@ -36,9 +36,8 @@ about the timing attacks on KeyCzar and Java's ``MessageDigest.isEqual()``.
:param bytes b: The right-hand side.
:returns bool: ``True`` if ``a`` has the same bytes as ``b``, otherwise
``False``.
- :raises TypeError: This exception is raised if ``a`` or ``b`` is not a
- binary type. This is ``str`` in Python 2 and ``bytes``
- in Python 3.
+ :raises TypeError: This exception is raised if ``a`` or ``b`` is not
+ ``bytes``.
.. _`Coda Hale's blog post`: http://codahale.com/a-lesson-in-timing-attacks/