Lines Matching refs:hotp
19 .. currentmodule:: cryptography.hazmat.primitives.twofactor.hotp
36 >>> from cryptography.hazmat.primitives.twofactor.hotp import HOTP
39 >>> hotp = HOTP(key, 6, SHA1())
40 >>> hotp_value = hotp.generate(0)
41 >>> hotp.verify(hotp_value, 0)
60 :class:`~cryptography.hazmat.primitives.twofactor.hotp.HOTP`.
81 .. method:: verify(hotp, counter)
83 :param bytes hotp: The one time password value to validate.
127 def verify(hotp, counter, look_ahead):
134 otp.verify(hotp, count)
238 hotp_uri = hotp.get_provisioning_uri(account_name, counter, issuer_name)