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 @@ -132,7 +132,7 @@ impl BoxedUint {
132
132
out. into ( )
133
133
}
134
134
135
- /// Create a new [`Uint `] from the provided big endian hex string.
135
+ /// Create a new [`BoxedUint `] from the provided big endian hex string.
136
136
pub fn from_be_hex ( hex : & str , bits_precision : u32 ) -> Self {
137
137
let nlimbs = ( bits_precision / Limb :: BITS ) as usize ;
138
138
let bytes = hex. as_bytes ( ) ;
Original file line number Diff line number Diff line change @@ -122,11 +122,12 @@ impl BoxedUint {
122
122
let mut result = Self :: zero_with_precision ( self . bits_precision ( ) ) ;
123
123
let success = self . shl_vartime_into ( & mut result, shift) ;
124
124
// TODO: is this okay?
125
- return (
125
+
126
+ (
126
127
result,
127
128
// If success, then return ConstChoice::False since it's not overflowing
128
129
success. map_or ( ConstChoice :: TRUE , |_| ConstChoice :: FALSE ) ,
129
- ) ;
130
+ )
130
131
}
131
132
132
133
/// Computes `self << 1` in constant-time.
Original file line number Diff line number Diff line change @@ -126,11 +126,11 @@ impl BoxedUint {
126
126
let mut result = Self :: zero_with_precision ( self . bits_precision ( ) ) ;
127
127
let success = self . shr_vartime_into ( & mut result, shift) ;
128
128
// TODO: is this okay?
129
- return (
129
+ (
130
130
result,
131
131
// If success, then return ConstChoice::False since it's not overflowing
132
132
success. map_or ( ConstChoice :: TRUE , |_| ConstChoice :: FALSE ) ,
133
- ) ;
133
+ )
134
134
}
135
135
136
136
/// Computes `self >> 1` in constant-time, returning a true [`Choice`]
You can’t perform that action at this time.
0 commit comments