Lines Matching refs:HOTP
21 .. class:: HOTP(key, length, algorithm, backend=None, enforce_key_length=True)
25 HOTP objects take a ``key``, ``length`` and ``algorithm`` parameter. The
36 >>> from cryptography.hazmat.primitives.twofactor.hotp import HOTP
39 >>> hotp = HOTP(key, 6, SHA1())
60 :class:`~cryptography.hazmat.primitives.twofactor.hotp.HOTP`.
86 is raised when the supplied HOTP does not match the expected HOTP.
105 Due to the fact that the HOTP algorithm generates rather short tokens that are
115 The server's counter value should only be incremented on a successful HOTP
117 new HOTP value is requested. This can lead to the counter value being out of
121 that allows the server to calculate the next ``x`` HOTP values and check them
122 against the supplied HOTP value. This can be accomplished with something
131 otp = HOTP(key, 6)
225 The provisioning URI of HOTP and TOTP is a `feature of Google Authenticator`_
226 and not actually part of the HOTP or TOTP RFCs. However, it is widely supported
230 method of HOTP/TOTP instances.