diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2013-10-31 16:31:38 -0700 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2013-10-31 16:31:38 -0700 |
commit | 2c58bbe5fa222fed3d917252a64868171443def9 (patch) | |
tree | 59636647047c85368f4a81b3605edaf204ac9fd0 | |
parent | 7ecd3148acc35668bf679be5a603ed4bd7313148 (diff) | |
download | cryptography-2c58bbe5fa222fed3d917252a64868171443def9.tar.gz cryptography-2c58bbe5fa222fed3d917252a64868171443def9.tar.bz2 cryptography-2c58bbe5fa222fed3d917252a64868171443def9.zip |
flake8
-rw-r--r-- | cryptography/fernet.py | 4 |
1 files changed, 3 insertions, 1 deletions
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 <stdbool.h> -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__() |