File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11[package ]
22name = " crypto-bigint"
3- version = " 0.4.9 "
3+ version = " 0.5.0-pre "
44description = """
55Pure Rust implementation of a big integer library which has been designed from
66the ground-up for use in cryptographic applications. Provides constant-time,
Original file line number Diff line number Diff line change @@ -177,10 +177,6 @@ pub use crate::{
177177} ;
178178pub use subtle;
179179
180- // TODO(tarcieri): remove these in the next breaking release
181- #[ allow( deprecated) ]
182- pub use crate :: limb:: { LimbUInt , WideLimbUInt } ;
183-
184180pub ( crate ) use limb:: { SignedWord , WideSignedWord } ;
185181
186182#[ cfg( feature = "generic-array" ) ]
Original file line number Diff line number Diff line change @@ -70,20 +70,6 @@ pub type WideWord = u128;
7070#[ cfg( target_pointer_width = "64" ) ]
7171pub ( crate ) type WideSignedWord = i128 ;
7272
73- //
74- // Deprecated legacy names
75- //
76-
77- // TODO(tarcieri): remove these in the next breaking release
78-
79- /// Deprecated: unsigned integer type that the [`Limb`] newtype wraps.
80- #[ deprecated( since = "0.4.8" , note = "please use `Word` instead" ) ]
81- pub type LimbUInt = Word ;
82-
83- /// Deprecated: wide integer type which is double the width of [`Word`].
84- #[ deprecated( since = "0.4.8" , note = "please use `WideWord` instead" ) ]
85- pub type WideLimbUInt = WideWord ;
86-
8773/// Highest bit in a [`Limb`].
8874pub ( crate ) const HI_BIT : usize = Limb :: BIT_SIZE - 1 ;
8975
Original file line number Diff line number Diff line change @@ -145,24 +145,6 @@ impl<const LIMBS: usize> UInt<LIMBS> {
145145 }
146146 }
147147
148- /// Deprecated: borrow the inner limbs as an array of [`Word`]s.
149- #[ deprecated( since = "0.4.8" , note = "please use `as_words` instead" ) ]
150- pub const fn as_uint_array ( & self ) -> & [ Word ; LIMBS ] {
151- self . as_words ( )
152- }
153-
154- /// Deprecated: create a [`UInt`] from an array of [`Word`]s.
155- #[ deprecated( since = "0.4.8" , note = "please use `from_words` instead" ) ]
156- pub const fn from_uint_array ( words : [ Word ; LIMBS ] ) -> Self {
157- Self :: from_words ( words)
158- }
159-
160- /// Deprecated: create an array of [`Word`]s from a [`UInt`].
161- #[ deprecated( since = "0.4.8" , note = "please use `to_words` instead" ) ]
162- pub const fn to_uint_array ( self ) -> [ Word ; LIMBS ] {
163- self . to_words ( )
164- }
165-
166148 /// Borrow the limbs of this [`UInt`].
167149 // TODO(tarcieri): rename to `as_limbs` for consistency with `as_words`
168150 pub const fn limbs ( & self ) -> & [ Limb ; LIMBS ] {
Original file line number Diff line number Diff line change @@ -12,13 +12,6 @@ impl<const LIMBS: usize> UInt<LIMBS> {
1212 }
1313 }
1414
15- /// Calculate the number of bits needed to represent this number.
16- #[ deprecated( note = "please use `bits_vartime` instead" ) ]
17- #[ inline( always) ]
18- pub const fn bits ( self ) -> usize {
19- self . bits_vartime ( )
20- }
21-
2215 /// Calculate the number of bits needed to represent this number.
2316 #[ allow( trivial_numeric_casts) ]
2417 pub const fn bits_vartime ( self ) -> usize {
You can’t perform that action at this time.
0 commit comments