From 867acfa0300ca75f2c11c15490e04b556d8bfe99 Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Mon, 18 Nov 2013 10:19:31 -0800 Subject: This is unused --- cryptography/fernet.py | 9 --------- 1 file changed, 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 - -/* 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; -- cgit v1.2.3