File tree 6 files changed +2
-45
lines changed
6 files changed +2
-45
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " crypto-bigint"
3
- version = " 0.4.9 "
3
+ version = " 0.5.0-pre "
4
4
description = """
5
5
Pure Rust implementation of a big integer library which has been designed from
6
6
the 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::{
177
177
} ;
178
178
pub use subtle;
179
179
180
- // TODO(tarcieri): remove these in the next breaking release
181
- #[ allow( deprecated) ]
182
- pub use crate :: limb:: { LimbUInt , WideLimbUInt } ;
183
-
184
180
pub ( crate ) use limb:: { SignedWord , WideSignedWord } ;
185
181
186
182
#[ cfg( feature = "generic-array" ) ]
Original file line number Diff line number Diff line change @@ -70,20 +70,6 @@ pub type WideWord = u128;
70
70
#[ cfg( target_pointer_width = "64" ) ]
71
71
pub ( crate ) type WideSignedWord = i128 ;
72
72
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
-
87
73
/// Highest bit in a [`Limb`].
88
74
pub ( crate ) const HI_BIT : usize = Limb :: BIT_SIZE - 1 ;
89
75
Original file line number Diff line number Diff line change @@ -145,24 +145,6 @@ impl<const LIMBS: usize> UInt<LIMBS> {
145
145
}
146
146
}
147
147
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
-
166
148
/// Borrow the limbs of this [`UInt`].
167
149
// TODO(tarcieri): rename to `as_limbs` for consistency with `as_words`
168
150
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> {
12
12
}
13
13
}
14
14
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
-
22
15
/// Calculate the number of bits needed to represent this number.
23
16
#[ allow( trivial_numeric_casts) ]
24
17
pub const fn bits_vartime ( self ) -> usize {
You can’t perform that action at this time.
0 commit comments