diff options
author | jsing <> | 2025-04-23 10:09:08 +0000 |
---|---|---|
committer | jsing <> | 2025-04-23 10:09:08 +0000 |
commit | 273e048d695a49faad75ca2ffa6e445353142be8 (patch) | |
tree | d1c2ceba5dcba84401a9f27175cd75d24ed0522c /src/lib/libcrypto/modes/ofb128.c | |
parent | fc19b6b60b2fc471fedda6057b5e1e5c20ccb6b8 (diff) | |
download | openbsd-273e048d695a49faad75ca2ffa6e445353142be8.tar.gz openbsd-273e048d695a49faad75ca2ffa6e445353142be8.tar.bz2 openbsd-273e048d695a49faad75ca2ffa6e445353142be8.zip |
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!)
Diffstat (limited to 'src/lib/libcrypto/modes/ofb128.c')
-rw-r--r-- | src/lib/libcrypto/modes/ofb128.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/libcrypto/modes/ofb128.c b/src/lib/libcrypto/modes/ofb128.c index 3f5a6ce110..8440e7f583 100644 --- a/src/lib/libcrypto/modes/ofb128.c +++ b/src/lib/libcrypto/modes/ofb128.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ofb128.c,v 1.9 2025/04/21 16:01:18 jsing Exp $ */ | 1 | /* $OpenBSD: ofb128.c,v 1.10 2025/04/23 10:09:08 jsing Exp $ */ |
2 | /* ==================================================================== | 2 | /* ==================================================================== |
3 | * Copyright (c) 2008 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 2008 The OpenSSL Project. All rights reserved. |
4 | * | 4 | * |
@@ -70,7 +70,6 @@ CRYPTO_ofb128_encrypt(const unsigned char *in, unsigned char *out, | |||
70 | 70 | ||
71 | n = *num; | 71 | n = *num; |
72 | 72 | ||
73 | #if !defined(OPENSSL_SMALL_FOOTPRINT) | ||
74 | if (16 % sizeof(size_t) == 0) | 73 | if (16 % sizeof(size_t) == 0) |
75 | do { /* always true actually */ | 74 | do { /* always true actually */ |
76 | while (n && len) { | 75 | while (n && len) { |
@@ -105,7 +104,6 @@ CRYPTO_ofb128_encrypt(const unsigned char *in, unsigned char *out, | |||
105 | return; | 104 | return; |
106 | } while (0); | 105 | } while (0); |
107 | /* the rest would be commonly eliminated by x86* compiler */ | 106 | /* the rest would be commonly eliminated by x86* compiler */ |
108 | #endif | ||
109 | while (l < len) { | 107 | while (l < len) { |
110 | if (n == 0) { | 108 | if (n == 0) { |
111 | (*block)(ivec, ivec, key); | 109 | (*block)(ivec, ivec, key); |