aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2013-11-18 10:19:31 -0800
committerAlex Gaynor <alex.gaynor@gmail.com>2013-11-18 10:19:31 -0800
commit867acfa0300ca75f2c11c15490e04b556d8bfe99 (patch)
tree094088f6060330048c3edaee6ea7e9d4427a7de4
parent286433de03ad1f54f1f563922a327d22945b0733 (diff)
downloadcryptography-867acfa0300ca75f2c11c15490e04b556d8bfe99.tar.gz
cryptography-867acfa0300ca75f2c11c15490e04b556d8bfe99.tar.bz2
cryptography-867acfa0300ca75f2c11c15490e04b556d8bfe99.zip
This is unused
-rw-r--r--cryptography/fernet.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/cryptography/fernet.py b/cryptography/fernet.py
index abd5e251..32bd35d5 100644
--- a/cryptography/fernet.py
+++ b/cryptography/fernet.py
@@ -37,15 +37,6 @@ bool Cryptography_constant_time_compare(uint8_t *, size_t, uint8_t *, size_t);
_lib = _ffi.verify("""
#include <stdbool.h>
-
-/* Returns the value of the input with the most-significant-bit copied to all
- of the bits. This relies on implementation details of computers with 2's
- complement representations of integers, which is not required by the C
- standard. */
-static uint8_t Cryptography_DUPLICATE_MSB_TO_ALL(uint8_t a) {
- return (uint8_t)((int8_t)(a) >> (sizeof(int8_t) * 8 - 1));
-}
-
bool Cryptography_constant_time_compare(uint8_t *a, size_t len_a, uint8_t *b,
size_t len_b) {
size_t i = 0;