File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -240,8 +240,8 @@ impl Monty for BoxedMontyForm {
240
240
type Integer = BoxedUint ;
241
241
type Params = BoxedMontyParams ;
242
242
243
- fn new_params ( modulus : Odd < Self :: Integer > ) -> Self :: Params {
244
- BoxedMontyParams :: new ( modulus)
243
+ fn new_params_vartime ( modulus : Odd < Self :: Integer > ) -> Self :: Params {
244
+ BoxedMontyParams :: new_vartime ( modulus)
245
245
}
246
246
247
247
fn new ( value : Self :: Integer , params : Self :: Params ) -> Self {
Original file line number Diff line number Diff line change @@ -234,7 +234,7 @@ impl<const LIMBS: usize> Monty for MontyForm<LIMBS> {
234
234
type Integer = Uint < LIMBS > ;
235
235
type Params = MontyParams < LIMBS > ;
236
236
237
- fn new_params ( modulus : Odd < Self :: Integer > ) -> Self :: Params {
237
+ fn new_params_vartime ( modulus : Odd < Self :: Integer > ) -> Self :: Params {
238
238
MontyParams :: new_vartime ( modulus)
239
239
}
240
240
Original file line number Diff line number Diff line change @@ -778,8 +778,9 @@ pub trait Monty:
778
778
/// The precomputed data needed for this representation.
779
779
type Params : ' static + Clone + Debug + Eq + Sized + Send + Sync ;
780
780
781
- /// Create the precomputed data for Montgomery representation of integers modulo `modulus`.
782
- fn new_params ( modulus : Odd < Self :: Integer > ) -> Self :: Params ;
781
+ /// Create the precomputed data for Montgomery representation of integers modulo `modulus`,
782
+ /// variable time in `modulus`.
783
+ fn new_params_vartime ( modulus : Odd < Self :: Integer > ) -> Self :: Params ;
783
784
784
785
/// Convert the value into the representation using precomputed data.
785
786
fn new ( value : Self :: Integer , params : Self :: Params ) -> Self ;
You can’t perform that action at this time.
0 commit comments