[openssl] openssl-3.0 update
tomas at openssl.org
tomas at openssl.org
Tue Dec 21 10:16:45 UTC 2021
The branch openssl-3.0 has been updated
via fbadef597c906711d82d8bfd9c4d5276ea981db7 (commit)
from a666c647c1f96c510e83a5becd8031d940b421fe (commit)
- Log -----------------------------------------------------------------
commit fbadef597c906711d82d8bfd9c4d5276ea981db7
Author: Pauli <pauli at openssl.org>
Date: Sat Dec 18 15:21:38 2021 +1100
rsa exp: move declarations before code (3.0)
Reviewed-by: Tomas Mraz <tomas at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17305)
-----------------------------------------------------------------------
Summary of changes:
crypto/bn/rsaz_exp_x2.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/crypto/bn/rsaz_exp_x2.c b/crypto/bn/rsaz_exp_x2.c
index 15db0c1f05..0e0aff1f85 100644
--- a/crypto/bn/rsaz_exp_x2.c
+++ b/crypto/bn/rsaz_exp_x2.c
@@ -318,6 +318,8 @@ static void RSAZ_exp52x20_x2_256(BN_ULONG *out, /* [2][20] */
int exp_chunk_no = exp_bit_no / 64;
int exp_chunk_shift = exp_bit_no % 64;
+ BN_ULONG red_table_idx_0, red_table_idx_1;
+
/*
* If rem == 0, then
* exp_bit_no = modulus_bitsize - exp_win_size
@@ -329,8 +331,8 @@ static void RSAZ_exp52x20_x2_256(BN_ULONG *out, /* [2][20] */
OPENSSL_assert(rem != 0);
/* Process 1-st exp window - just init result */
- BN_ULONG red_table_idx_0 = expz[0][exp_chunk_no];
- BN_ULONG red_table_idx_1 = expz[1][exp_chunk_no];
+ red_table_idx_0 = expz[0][exp_chunk_no];
+ red_table_idx_1 = expz[1][exp_chunk_no];
/*
* The function operates with fixed moduli sizes divisible by 64,
* thus table index here is always in supported range [0, EXP_WIN_SIZE).
More information about the openssl-commits
mailing list