diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2020-07-23 20:38:00 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-23 19:38:00 -0500 |
commit | 09c5fd1a20865731d76c607948fab5bd9c018824 (patch) | |
tree | 0439f58a34e7c97353ca90247ac56c38347170b9 /src/build_bcrypt.py | |
parent | cd8ba16d8e83987a5d905ad2a8d05c7da97b994d (diff) | |
download | py-bcrypt-git-09c5fd1a20865731d76c607948fab5bd9c018824.tar.gz |
Paint it Black by the Rolling Stones (#208)
Diffstat (limited to 'src/build_bcrypt.py')
-rw-r--r-- | src/build_bcrypt.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/build_bcrypt.py b/src/build_bcrypt.py index 3eec35c..f401706 100644 --- a/src/build_bcrypt.py +++ b/src/build_bcrypt.py @@ -20,13 +20,15 @@ BLOWFISH_DIR = os.path.join(os.path.dirname(__file__), "_csrc") ffi = FFI() -ffi.cdef(""" +ffi.cdef( + """ int bcrypt_hashpass(const char *, const char *, char *, size_t); int encode_base64(char *, const uint8_t *, size_t); int bcrypt_pbkdf(const char *, size_t, const uint8_t *, size_t, uint8_t *, size_t, unsigned int); int timingsafe_bcmp(const void *, const void *, size_t); -""") +""" +) ffi.set_source( "_bcrypt", |