From 2c58bbe5fa222fed3d917252a64868171443def9 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Thu, 31 Oct 2013 16:31:38 -0700 Subject: flake8 --- cryptography/fernet.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cryptography/fernet.py b/cryptography/fernet.py index 10640d1b..f9d5e93f 100644 --- a/cryptography/fernet.py +++ b/cryptography/fernet.py @@ -24,7 +24,8 @@ bool constant_time_compare(uint8_t *, size_t, uint8_t *, size_t); lib = ffi.verify(""" #include -bool constant_time_compare(uint8_t *a, size_t len_a, uint8_t *b, size_t len_b) { +bool constant_time_compare(uint8_t *a, size_t len_a, uint8_t *b, + size_t len_b) { size_t i = 0; int result = 0; if (len_a != len_b) { @@ -37,6 +38,7 @@ bool constant_time_compare(uint8_t *a, size_t len_a, uint8_t *b, size_t len_b) { } """) + class Fernet(object): def __init__(self, key): super(Fernet, self).__init__() -- cgit v1.2.3