summaryrefslogtreecommitdiff
path: root/src/pws.rs
diff options
context:
space:
mode:
authorRobin Krahl <robin.krahl@ireas.org>2018-06-05 20:17:52 +0200
committerRobin Krahl <robin.krahl@ireas.org>2018-06-05 20:17:52 +0200
commit7a89b3dbf2f8d8f882edb6298d011cdd3d7add3c (patch)
treec90e6ef59ccf8304721c9ba8f656a00e6ab4e82b /src/pws.rs
parentd61a89e08b6d1d807e26329538f358130a22b4e2 (diff)
downloadnitrokey-rs-7a89b3dbf2f8d8f882edb6298d011cdd3d7add3c.tar.gz
nitrokey-rs-7a89b3dbf2f8d8f882edb6298d011cdd3d7add3c.tar.bz2
Add tests with different TOTP time windows
While 30 seconds is the default time step for TOTP, arbitrary values are possible. Yet the RFC does only provide test cases for the default time window. This patch adds tests where these test cases are applied for a time window of 60 seconds (if both the current time and the time window double, the resulting TOTP code is the same).
Diffstat (limited to 'src/pws.rs')
0 files changed, 0 insertions, 0 deletions