diff options
author | gregor herrmann <gregoa@debian.org> | 2024-03-09 14:42:04 +0100 |
---|---|---|
committer | gregor herrmann <gregoa@debian.org> | 2024-03-09 14:42:04 +0100 |
commit | 91f09c2454e2af96a85ccd3c21779f2b4a75f8b7 (patch) | |
tree | 2cf3bcc5a543205a1809b796a3f031a7d90df329 /t/totp-test-vectors.t | |
parent | 65d836031b85eec6909b6d7c7f2c43703d7e6dbb (diff) | |
parent | 517328950b3f92afacc6cd3927c23b1ece61b2e4 (diff) |
Update upstream source from tag 'upstream/1.7'
Update to upstream version '1.7'
with Debian dir 8bfc96f781768e429c533d385d81ade41e389ee8
Diffstat (limited to 't/totp-test-vectors.t')
-rw-r--r-- | t/totp-test-vectors.t | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/t/totp-test-vectors.t b/t/totp-test-vectors.t index 13d165d..beeb118 100644 --- a/t/totp-test-vectors.t +++ b/t/totp-test-vectors.t @@ -23,7 +23,7 @@ sub is_totp { is( Pass::OTP::otp( - secret => $seeds{$opts{algorithm}}, + secret => $seeds{lc $opts{algorithm}}, algorithm => $opts{algorithm}, now => $opts{now}, digits => 8, @@ -63,4 +63,6 @@ is_totp(now => 20000000000, algorithm => 'sha256', totp => '77737706'); is_totp(now => 20000000000, algorithm => 'sha512', totp => '47863826'); -done_testing(19); +is_totp(now => 59, algorithm => 'SHA512', totp => '90693936'); + +done_testing(20); |