diff options
author | Pauli <pauli@openssl.org> | 2021-05-25 10:34:10 +1000 |
---|---|---|
committer | Pauli <pauli@openssl.org> | 2021-05-27 09:35:50 +1000 |
commit | 190c029eab0d553f1a94cccc3021440ee2ff4a1e (patch) | |
tree | 47e807fc7d05ff1e91cba399f9160bbaa4f70330 /crypto/bn/rsaz_exp_x2.c | |
parent | 36ec749fda0c24a8d850cde35ec7c56a999a457e (diff) |
bn: rename extract_multiplier_2x20_win5 -> ossl_extract_multiplier_2x20_win5
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/15445)
Diffstat (limited to 'crypto/bn/rsaz_exp_x2.c')
-rw-r--r-- | crypto/bn/rsaz_exp_x2.c | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/crypto/bn/rsaz_exp_x2.c b/crypto/bn/rsaz_exp_x2.c index b2a83e81be..cca8176dc1 100644 --- a/crypto/bn/rsaz_exp_x2.c +++ b/crypto/bn/rsaz_exp_x2.c @@ -82,9 +82,9 @@ void RSAZ_exp52x20_x2_256(BN_ULONG *res, const BN_ULONG *base, void RSAZ_amm52x20_x2_256(BN_ULONG *out, const BN_ULONG *a, const BN_ULONG *b, const BN_ULONG *m, const BN_ULONG k0[2]); -void extract_multiplier_2x20_win5(BN_ULONG *red_Y, - const BN_ULONG *red_table, - int red_table_idx, int tbl_idx); +void ossl_extract_multiplier_2x20_win5(BN_ULONG *red_Y, + const BN_ULONG *red_table, + int red_table_idx, int tbl_idx); /* * Dual Montgomery modular exponentiation using prime moduli of the @@ -328,8 +328,10 @@ void RSAZ_exp52x20_x2_256(BN_ULONG *out, /* [2][20] */ red_table_idx_0 >>= exp_chunk_shift; red_table_idx_1 >>= exp_chunk_shift; - extract_multiplier_2x20_win5(red_Y[0], (const BN_ULONG*)red_table, (int)red_table_idx_0, 0); - extract_multiplier_2x20_win5(red_Y[1], (const BN_ULONG*)red_table, (int)red_table_idx_1, 1); + ossl_extract_multiplier_2x20_win5(red_Y[0], (const BN_ULONG*)red_table, + (int)red_table_idx_0, 0); + ossl_extract_multiplier_2x20_win5(red_Y[1], (const BN_ULONG*)red_table, + (int)red_table_idx_1, 1); /* Process other exp windows */ for (exp_bit_no -= EXP_WIN_SIZE; exp_bit_no >= 0; exp_bit_no -= EXP_WIN_SIZE) { @@ -354,7 +356,9 @@ void RSAZ_exp52x20_x2_256(BN_ULONG *out, /* [2][20] */ } red_table_idx_0 &= table_idx_mask; - extract_multiplier_2x20_win5(red_X[0], (const BN_ULONG*)red_table, (int)red_table_idx_0, 0); + ossl_extract_multiplier_2x20_win5(red_X[0], + (const BN_ULONG*)red_table, + (int)red_table_idx_0, 0); } { red_table_idx_1 = expz[1][exp_chunk_no]; @@ -371,7 +375,9 @@ void RSAZ_exp52x20_x2_256(BN_ULONG *out, /* [2][20] */ } red_table_idx_1 &= table_idx_mask; - extract_multiplier_2x20_win5(red_X[1], (const BN_ULONG*)red_table, (int)red_table_idx_1, 1); + ossl_extract_multiplier_2x20_win5(red_X[1], + (const BN_ULONG*)red_table, + (int)red_table_idx_1, 1); } } |