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 {
132132 out. into ( )
133133 }
134134
135- /// Create a new [`Uint `] from the provided big endian hex string.
135+ /// Create a new [`BoxedUint `] from the provided big endian hex string.
136136 pub fn from_be_hex ( hex : & str , bits_precision : u32 ) -> Self {
137137 let nlimbs = ( bits_precision / Limb :: BITS ) as usize ;
138138 let bytes = hex. as_bytes ( ) ;
Original file line number Diff line number Diff line change @@ -122,11 +122,12 @@ impl BoxedUint {
122122 let mut result = Self :: zero_with_precision ( self . bits_precision ( ) ) ;
123123 let success = self . shl_vartime_into ( & mut result, shift) ;
124124 // TODO: is this okay?
125- return (
125+
126+ (
126127 result,
127128 // If success, then return ConstChoice::False since it's not overflowing
128129 success. map_or ( ConstChoice :: TRUE , |_| ConstChoice :: FALSE ) ,
129- ) ;
130+ )
130131 }
131132
132133 /// Computes `self << 1` in constant-time.
Original file line number Diff line number Diff line change @@ -126,11 +126,11 @@ impl BoxedUint {
126126 let mut result = Self :: zero_with_precision ( self . bits_precision ( ) ) ;
127127 let success = self . shr_vartime_into ( & mut result, shift) ;
128128 // TODO: is this okay?
129- return (
129+ (
130130 result,
131131 // If success, then return ConstChoice::False since it's not overflowing
132132 success. map_or ( ConstChoice :: TRUE , |_| ConstChoice :: FALSE ) ,
133- ) ;
133+ )
134134 }
135135
136136 /// Computes `self >> 1` in constant-time, returning a true [`Choice`]
You can’t perform that action at this time.
0 commit comments