aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2013-11-07 17:20:20 -0800
committerAlex Gaynor <alex.gaynor@gmail.com>2013-11-07 17:20:20 -0800
commitab8719a903266fda3203bcdfbad7bd510c97c217 (patch)
tree27ddd840426a629c3957698437b4215b34eb3a61
parent4a9a80d22216329447c4983e2e819dcfe209974e (diff)
downloadcryptography-ab8719a903266fda3203bcdfbad7bd510c97c217.tar.gz
cryptography-ab8719a903266fda3203bcdfbad7bd510c97c217.tar.bz2
cryptography-ab8719a903266fda3203bcdfbad7bd510c97c217.zip
flake8 fixes
-rw-r--r--cryptography/hazmat/primitives/padding.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cryptography/hazmat/primitives/padding.py b/cryptography/hazmat/primitives/padding.py
index 74d49a0f..23a6c032 100644
--- a/cryptography/hazmat/primitives/padding.py
+++ b/cryptography/hazmat/primitives/padding.py
@@ -40,6 +40,7 @@ unsigned int Cryptography_constant_time_lt(unsigned int a, unsigned int b) {
}
""")
+
class PKCS7(object):
def __init__(self, block_size):
super(PKCS7, self).__init__()
@@ -135,7 +136,6 @@ class _PKCS7UnpaddingContext(object):
if pad_size > self.block_size // 8:
raise ValueError("Invalid padding bytes")
-
mismatch = 0
for i in xrange(self.block_size // 8):
mask = _lib.Cryptography_constant_time_lt(i, pad_size)