diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2019-06-22 17:31:45 +0200 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2019-06-22 17:31:45 +0200 |
commit | 3ede630625cdc83cde2753897bee260595a5137a (patch) | |
tree | 578e349f9e5b44acabf106e3f8f8f2073a80ad02 /unittest/constants.py | |
parent | 3fc4193776b4ea29354838df024a72d7c8349ea9 (diff) | |
parent | 1fed3fd903da061a58d846f92161b60b711d8df5 (diff) | |
download | libnitrokey-3ede630625cdc83cde2753897bee260595a5137a.tar.gz libnitrokey-3ede630625cdc83cde2753897bee260595a5137a.tar.bz2 |
Merge branch 'otp_tests'
Add OTP tests:
- complete writing and reading codes
- test edge slots of TOTP and HOTP
Diffstat (limited to 'unittest/constants.py')
-rw-r--r-- | unittest/constants.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/unittest/constants.py b/unittest/constants.py index 714c8c6..645ef6a 100644 --- a/unittest/constants.py +++ b/unittest/constants.py @@ -57,3 +57,6 @@ class LibraryErrors: INVALID_HEX_STRING = 202 TARGET_BUFFER_SIZE_SMALLER_THAN_SOURCE = 203 + +HOTP_slot_count = 3 +TOTP_slot_count = 15
\ No newline at end of file |