diff options
author | Ayrx <terrycwk1994@gmail.com> | 2014-02-12 22:22:01 +0800 |
---|---|---|
committer | Ayrx <terrycwk1994@gmail.com> | 2014-02-21 11:13:35 +0800 |
commit | b2ee044298caf5772fb8774dc691add3afe8cdc1 (patch) | |
tree | 151583dbe983c8265d6ef13795d0a23bbacdc6c7 /docs | |
parent | 18ca44bfef0fe2908d9da3b3008941325d04a971 (diff) | |
download | cryptography-b2ee044298caf5772fb8774dc691add3afe8cdc1.tar.gz cryptography-b2ee044298caf5772fb8774dc691add3afe8cdc1.tar.bz2 cryptography-b2ee044298caf5772fb8774dc691add3afe8cdc1.zip |
Minor changes for python3 compat and documentation changes
Diffstat (limited to 'docs')
-rw-r--r-- | docs/hazmat/oath/hotp.rst | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/docs/hazmat/oath/hotp.rst b/docs/hazmat/oath/hotp.rst index d84f5bdf..614933f9 100644 --- a/docs/hazmat/oath/hotp.rst +++ b/docs/hazmat/oath/hotp.rst @@ -17,7 +17,7 @@ values based on Hash-based message authentication codes (HMAC). This is an implementation of :rfc:`4226`. - .. doctest:: + .. code-block:: python >>> from cryptography.hazmat.backends import default_backend >>> from cryptography.hazmat.oath.hotp import HOTP @@ -35,12 +35,11 @@ values based on Hash-based message authentication codes (HMAC). .. method:: generate(counter) - :param counter: The counter value used to generate the one time password. + :param int counter: The counter value used to generate the one time password. :return: A one time password value. .. method:: verify(hotp, counter) - :param hotp: The one time password value to validate. - :param counter: The counter value to validate against. + :param bytes hotp: The one time password value to validate. + :param bytes counter: The counter value to validate against. :return: ``True`` if the one time password value is valid. ``False`` if otherwise. - |