diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2014-02-25 11:30:32 -0800 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2014-02-25 11:30:32 -0800 |
commit | 553ebff3124f1a26e0ebaed4a62733d4880bc284 (patch) | |
tree | 962721117626c38cffeebe65e1807b96555906fc /cryptography | |
parent | eaf4595794516c7c3a4284dce1c9acc8faa122fa (diff) | |
parent | eea08d9ffa93b4b0ffcdd2352e01615d4e3057e1 (diff) | |
download | cryptography-553ebff3124f1a26e0ebaed4a62733d4880bc284.tar.gz cryptography-553ebff3124f1a26e0ebaed4a62733d4880bc284.tar.bz2 cryptography-553ebff3124f1a26e0ebaed4a62733d4880bc284.zip |
Merge pull request #689 from dreid/twofactor-cleanup
Cleanup twofactor docs and code.
Diffstat (limited to 'cryptography')
-rw-r--r-- | cryptography/hazmat/primitives/twofactor/hotp.py | 1 | ||||
-rw-r--r-- | cryptography/hazmat/primitives/twofactor/totp.py | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/cryptography/hazmat/primitives/twofactor/hotp.py b/cryptography/hazmat/primitives/twofactor/hotp.py index e806c7ef..24f5f465 100644 --- a/cryptography/hazmat/primitives/twofactor/hotp.py +++ b/cryptography/hazmat/primitives/twofactor/hotp.py @@ -24,7 +24,6 @@ from cryptography.hazmat.primitives.hashes import SHA1, SHA256, SHA512 class HOTP(object): def __init__(self, key, length, algorithm, backend): - if len(key) < 16: raise ValueError("Key length has to be at least 128 bits.") diff --git a/cryptography/hazmat/primitives/twofactor/totp.py b/cryptography/hazmat/primitives/twofactor/totp.py index be84b477..0630de69 100644 --- a/cryptography/hazmat/primitives/twofactor/totp.py +++ b/cryptography/hazmat/primitives/twofactor/totp.py @@ -20,7 +20,6 @@ from cryptography.hazmat.primitives.twofactor.hotp import HOTP class TOTP(object): def __init__(self, key, length, algorithm, time_step, backend): - self._time_step = time_step self._hotp = HOTP(key, length, algorithm, backend) |