diff options
Diffstat (limited to 'src/crypto/modes/ctr.c')
-rw-r--r-- | src/crypto/modes/ctr.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/crypto/modes/ctr.c b/src/crypto/modes/ctr.c index 52ff048..64062b2 100644 --- a/src/crypto/modes/ctr.c +++ b/src/crypto/modes/ctr.c @@ -45,8 +45,7 @@ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED * OF THE POSSIBILITY OF SUCH DAMAGE. * ==================================================================== */ - -#include <openssl/type_check.h> +#include <openssl/modes.h> #include <assert.h> #include <string.h> @@ -73,8 +72,6 @@ static void ctr128_inc(uint8_t *counter) { } while (n); } -OPENSSL_COMPILE_ASSERT((16 % sizeof(size_t)) == 0, bad_size_t_size); - /* The input encrypted as though 128bit counter mode is being used. The extra * state information to record how much of the 128bit block we have used is * contained in *num, and the encrypted counter is kept in ecount_buf. Both @@ -94,6 +91,7 @@ void CRYPTO_ctr128_encrypt(const uint8_t *in, uint8_t *out, size_t len, assert(key && ecount_buf && num); assert(len == 0 || (in && out)); assert(*num < 16); + assert((16 % sizeof(size_t)) == 0); n = *num; |