64
64
extern "C" {
65
65
#endif
66
66
MODULE_SCOPE mp_err TclBN_mp_sqr (const mp_int * a , mp_int * b );
67
- MODULE_SCOPE mp_err TclBN_mp_div_3 (const mp_int * a , mp_int * q , mp_digit * r );
68
- MODULE_SCOPE mp_err TclBN_mp_expt_u32 (const mp_int * a , uint32_t b , mp_int * c );
69
- MODULE_SCOPE mp_err TclBN_s_mp_balance_mul (const mp_int * a , const mp_int * b , mp_int * c );
70
- MODULE_SCOPE mp_err TclBN_s_mp_div_3 (const mp_int * a , mp_int * c , mp_digit * d );
71
- MODULE_SCOPE mp_err TclBN_s_mp_karatsuba_mul (const mp_int * a , const mp_int * b , mp_int * c );
72
- MODULE_SCOPE mp_err TclBN_s_mp_karatsuba_sqr (const mp_int * a , mp_int * b );
73
- MODULE_SCOPE mp_err TclBN_s_mp_toom_mul (const mp_int * a , const mp_int * b , mp_int * c );
74
- MODULE_SCOPE mp_err TclBN_s_mp_toom_sqr (const mp_int * a , mp_int * b );
67
+ MODULE_SCOPE mp_err TclBN_mp_balance_mul (const mp_int * a , const mp_int * b , mp_int * c );
68
+ MODULE_SCOPE mp_err TclBN_mp_div_3 (const mp_int * a , mp_int * c , mp_digit * d );
69
+ MODULE_SCOPE mp_err TclBN_mp_karatsuba_mul (const mp_int * a , const mp_int * b , mp_int * c );
70
+ MODULE_SCOPE mp_err TclBN_mp_karatsuba_sqr (const mp_int * a , mp_int * b );
71
+ MODULE_SCOPE mp_err TclBN_mp_toom_mul (const mp_int * a , const mp_int * b , mp_int * c );
72
+ MODULE_SCOPE mp_err TclBN_mp_toom_sqr (const mp_int * a , mp_int * b );
75
73
MODULE_SCOPE mp_err TclBN_s_mp_add (const mp_int * a , const mp_int * b , mp_int * c );
76
- MODULE_SCOPE mp_err TclBN_s_mp_mul_digs (const mp_int * a , const mp_int * b , mp_int * c , int digs );
77
- MODULE_SCOPE mp_err TclBN_s_mp_mul_digs_fast (const mp_int * a , const mp_int * b , mp_int * c , int digs );
78
- MODULE_SCOPE void TclBN_s_mp_reverse (unsigned char * s , size_t len );
74
+ MODULE_SCOPE mp_err TclBN_mp_mul_digs (const mp_int * a , const mp_int * b , mp_int * c , int digs );
75
+ MODULE_SCOPE mp_err TclBN_mp_mul_digs_fast (const mp_int * a , const mp_int * b , mp_int * c , int digs );
76
+ MODULE_SCOPE void TclBN_mp_reverse (unsigned char * s , size_t len );
79
77
MODULE_SCOPE mp_err TclBN_s_mp_sqr (const mp_int * a , mp_int * b );
80
- MODULE_SCOPE mp_err TclBN_s_mp_sqr_fast (const mp_int * a , mp_int * b );
78
+ MODULE_SCOPE mp_err TclBN_mp_sqr_fast (const mp_int * a , mp_int * b );
81
79
MODULE_SCOPE mp_err TclBN_s_mp_sub (const mp_int * a , const mp_int * b , mp_int * c );
82
80
MODULE_SCOPE const char * const TclBN_mp_s_rmap ;
83
81
MODULE_SCOPE const uint8_t TclBN_mp_s_rmap_reverse [];
@@ -106,12 +104,9 @@ MODULE_SCOPE mp_err TclBN_mp_set_int(mp_int *a, unsigned long b);
106
104
#define mp_div TclBN_mp_div
107
105
#define mp_div_d TclBN_mp_div_d
108
106
#define mp_div_2 TclBN_mp_div_2
109
- #define mp_div_3 TclBN_mp_div_3
110
107
#define mp_div_2d TclBN_mp_div_2d
111
108
#define mp_exch TclBN_mp_exch
112
- #define mp_expt_d TclBN_mp_expt_d
113
- #define mp_expt_d_ex TclBN_mp_expt_d_ex
114
- #define mp_expt_u32 TclBN_mp_expt_u32
109
+ #define mp_expt_d TclBN_mp_expt_n
115
110
#define mp_expt_n TclBN_mp_expt_n
116
111
#define mp_get_mag_u64 TclBN_mp_get_mag_u64
117
112
#define mp_grow TclBN_mp_grow
@@ -139,7 +134,7 @@ MODULE_SCOPE mp_err TclBN_mp_set_int(mp_int *a, unsigned long b);
139
134
#define mp_s_rmap TclBN_mp_s_rmap
140
135
#define mp_s_rmap_reverse TclBN_mp_s_rmap_reverse
141
136
#define mp_s_rmap_reverse_sz TclBN_mp_s_rmap_reverse_sz
142
- #define mp_set TclBN_s_mp_set
137
+ #define mp_set TclBN_mp_set
143
138
#define mp_set_i64 TclBN_mp_set_i64
144
139
#define mp_set_u64 TclBN_mp_set_u64
145
140
#define mp_shrink TclBN_mp_shrink
@@ -162,18 +157,18 @@ MODULE_SCOPE mp_err TclBN_mp_set_int(mp_int *a, unsigned long b);
162
157
#define mp_xor TclBN_mp_xor
163
158
#define mp_zero TclBN_mp_zero
164
159
#define s_mp_add TclBN_s_mp_add
165
- #define s_mp_balance_mul TclBN_s_mp_balance_mul
166
- #define s_mp_div_3 TclBN_s_mp_div_3
167
- #define s_mp_karatsuba_mul TclBN_s_mp_karatsuba_mul
168
- #define s_mp_karatsuba_sqr TclBN_s_mp_karatsuba_sqr
169
- #define s_mp_mul_digs TclBN_s_mp_mul_digs
170
- #define s_mp_mul_digs_fast TclBN_s_mp_mul_digs_fast
171
- #define s_mp_reverse TclBN_s_mp_reverse
160
+ #define s_mp_balance_mul TclBN_mp_balance_mul
161
+ #define s_mp_div_3 TclBN_mp_div_3
162
+ #define s_mp_karatsuba_mul TclBN_mp_karatsuba_mul
163
+ #define s_mp_karatsuba_sqr TclBN_mp_karatsuba_sqr
164
+ #define s_mp_mul_digs TclBN_mp_mul_digs
165
+ #define s_mp_mul_digs_fast TclBN_mp_mul_digs_fast
166
+ #define s_mp_reverse TclBN_mp_reverse
172
167
#define s_mp_sqr TclBN_s_mp_sqr
173
- #define s_mp_sqr_fast TclBN_s_mp_sqr_fast
168
+ #define s_mp_sqr_fast TclBN_mp_sqr_fast
174
169
#define s_mp_sub TclBN_s_mp_sub
175
- #define s_mp_toom_mul TclBN_s_mp_toom_mul
176
- #define s_mp_toom_sqr TclBN_s_mp_toom_sqr
170
+ #define s_mp_toom_mul TclBN_mp_toom_mul
171
+ #define s_mp_toom_sqr TclBN_mp_toom_sqr
177
172
#endif /* !TCL_WITH_EXTERNAL_TOMMATH */
178
173
179
174
#undef TCL_STORAGE_CLASS
0 commit comments