diff options
author | Pauli <pauli@openssl.org> | 2021-12-18 15:21:38 +1100 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2021-12-21 11:16:27 +0100 |
commit | fbadef597c906711d82d8bfd9c4d5276ea981db7 (patch) | |
tree | 612540b64306d92a6ea0759032f1de28103bc067 /crypto/bn | |
parent | a666c647c1f96c510e83a5becd8031d940b421fe (diff) |
rsa exp: move declarations before code (3.0)
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17305)
Diffstat (limited to 'crypto/bn')
-rw-r--r-- | crypto/bn/rsaz_exp_x2.c | 6 |
1 files 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). |