From 273e048d695a49faad75ca2ffa6e445353142be8 Mon Sep 17 00:00:00 2001 From: jsing <> Date: Wed, 23 Apr 2025 10:09:08 +0000 Subject: Unifdef OPENSSL_SMALL_FOOTPRINT. We do not build with OPENSSL_SMALL_FOOTPRINT and it removes more untested code paths. Request by tb@ (and it was already on my TODO list!) --- src/lib/libcrypto/modes/ctr128.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/lib/libcrypto/modes/ctr128.c') diff --git a/src/lib/libcrypto/modes/ctr128.c b/src/lib/libcrypto/modes/ctr128.c index 6d1bcff313..30563ed6e3 100644 --- a/src/lib/libcrypto/modes/ctr128.c +++ b/src/lib/libcrypto/modes/ctr128.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ctr128.c,v 1.16 2025/04/22 14:08:24 jsing Exp $ */ +/* $OpenBSD: ctr128.c,v 1.17 2025/04/23 10:09:08 jsing Exp $ */ /* ==================================================================== * Copyright (c) 2008 The OpenSSL Project. All rights reserved. * @@ -76,7 +76,6 @@ ctr128_inc(unsigned char *counter) } while (n); } -#if !defined(OPENSSL_SMALL_FOOTPRINT) static void ctr128_inc_aligned(unsigned char *counter) { @@ -96,7 +95,6 @@ ctr128_inc_aligned(unsigned char *counter) } while (n); #endif } -#endif /* The input encrypted as though 128bit counter mode is being * used. The extra state information to record how much of the @@ -122,7 +120,6 @@ CRYPTO_ctr128_encrypt(const unsigned char *in, unsigned char *out, OPENSSL_assert(n < 16); -#if !defined(OPENSSL_SMALL_FOOTPRINT) if (16 % sizeof(size_t) == 0) do { /* always true actually */ while (n && len) { @@ -160,7 +157,6 @@ CRYPTO_ctr128_encrypt(const unsigned char *in, unsigned char *out, return; } while (0); /* the rest would be commonly eliminated by x86* compiler */ -#endif while (l < len) { if (n == 0) { (*block)(ivec, ecount_buf, key); -- cgit v1.2.3-55-g6feb