aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAyrx <terrycwk1994@gmail.com>2014-03-15 23:51:00 +0800
committerAyrx <terrycwk1994@gmail.com>2014-03-15 23:51:00 +0800
commit35afbcb3fd5b45b91c34395c031ea4cf15a39244 (patch)
tree3a1a41ff97d8763550fc8048a907923685b30a9e
parentc5c8c3c0c6a57272ba450d896ccd1df9ae70bae7 (diff)
downloadcryptography-35afbcb3fd5b45b91c34395c031ea4cf15a39244.tar.gz
cryptography-35afbcb3fd5b45b91c34395c031ea4cf15a39244.tar.bz2
cryptography-35afbcb3fd5b45b91c34395c031ea4cf15a39244.zip
Removed newline from start of methods
-rw-r--r--cryptography/hazmat/primitives/kdf/hkdf.py1
-rw-r--r--cryptography/hazmat/primitives/kdf/pbkdf2.py1
-rw-r--r--cryptography/hazmat/primitives/twofactor/hotp.py1
-rw-r--r--cryptography/hazmat/primitives/twofactor/totp.py1
4 files changed, 0 insertions, 4 deletions
diff --git a/cryptography/hazmat/primitives/kdf/hkdf.py b/cryptography/hazmat/primitives/kdf/hkdf.py
index dde1d94e..10739178 100644
--- a/cryptography/hazmat/primitives/kdf/hkdf.py
+++ b/cryptography/hazmat/primitives/kdf/hkdf.py
@@ -26,7 +26,6 @@ from cryptography.hazmat.primitives import constant_time, hmac, interfaces
@utils.register_interface(interfaces.KeyDerivationFunction)
class HKDF(object):
def __init__(self, algorithm, length, salt, info, backend):
-
if not isinstance(backend, HMACBackend):
raise UnsupportedInterface(
"Backend object does not implement HMACBackend")
diff --git a/cryptography/hazmat/primitives/kdf/pbkdf2.py b/cryptography/hazmat/primitives/kdf/pbkdf2.py
index 1c9e10b2..fcfe601a 100644
--- a/cryptography/hazmat/primitives/kdf/pbkdf2.py
+++ b/cryptography/hazmat/primitives/kdf/pbkdf2.py
@@ -27,7 +27,6 @@ from cryptography.hazmat.primitives import constant_time, interfaces
@utils.register_interface(interfaces.KeyDerivationFunction)
class PBKDF2HMAC(object):
def __init__(self, algorithm, length, salt, iterations, backend):
-
if not isinstance(backend, PBKDF2HMACBackend):
raise UnsupportedInterface(
"Backend object does not implement PBKDF2HMACBackend")
diff --git a/cryptography/hazmat/primitives/twofactor/hotp.py b/cryptography/hazmat/primitives/twofactor/hotp.py
index 27476fd9..34f820c0 100644
--- a/cryptography/hazmat/primitives/twofactor/hotp.py
+++ b/cryptography/hazmat/primitives/twofactor/hotp.py
@@ -25,7 +25,6 @@ from cryptography.hazmat.primitives.hashes import SHA1, SHA256, SHA512
class HOTP(object):
def __init__(self, key, length, algorithm, backend):
-
if not isinstance(backend, HMACBackend):
raise UnsupportedInterface(
"Backend object does not implement HMACBackend")
diff --git a/cryptography/hazmat/primitives/twofactor/totp.py b/cryptography/hazmat/primitives/twofactor/totp.py
index 0ce3adaf..08510ef5 100644
--- a/cryptography/hazmat/primitives/twofactor/totp.py
+++ b/cryptography/hazmat/primitives/twofactor/totp.py
@@ -21,7 +21,6 @@ from cryptography.hazmat.primitives.twofactor.hotp import HOTP
class TOTP(object):
def __init__(self, key, length, algorithm, time_step, backend):
-
if not isinstance(backend, HMACBackend):
raise UnsupportedInterface(
"Backend object does not implement HMACBackend")