Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "crypto-bigint"
version = "0.4.9"
version = "0.5.0-pre"
description = """
Pure Rust implementation of a big integer library which has been designed from
the ground-up for use in cryptographic applications. Provides constant-time,
Expand Down
4 changes: 0 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,6 @@ pub use crate::{
};
pub use subtle;

// TODO(tarcieri): remove these in the next breaking release
#[allow(deprecated)]
pub use crate::limb::{LimbUInt, WideLimbUInt};

pub(crate) use limb::{SignedWord, WideSignedWord};

#[cfg(feature = "generic-array")]
Expand Down
14 changes: 0 additions & 14 deletions src/limb.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,20 +70,6 @@ pub type WideWord = u128;
#[cfg(target_pointer_width = "64")]
pub(crate) type WideSignedWord = i128;

//
// Deprecated legacy names
//

// TODO(tarcieri): remove these in the next breaking release

/// Deprecated: unsigned integer type that the [`Limb`] newtype wraps.
#[deprecated(since = "0.4.8", note = "please use `Word` instead")]
pub type LimbUInt = Word;

/// Deprecated: wide integer type which is double the width of [`Word`].
#[deprecated(since = "0.4.8", note = "please use `WideWord` instead")]
pub type WideLimbUInt = WideWord;

/// Highest bit in a [`Limb`].
pub(crate) const HI_BIT: usize = Limb::BIT_SIZE - 1;

Expand Down
18 changes: 0 additions & 18 deletions src/uint.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,24 +145,6 @@ impl<const LIMBS: usize> UInt<LIMBS> {
}
}

/// Deprecated: borrow the inner limbs as an array of [`Word`]s.
#[deprecated(since = "0.4.8", note = "please use `as_words` instead")]
pub const fn as_uint_array(&self) -> &[Word; LIMBS] {
self.as_words()
}

/// Deprecated: create a [`UInt`] from an array of [`Word`]s.
#[deprecated(since = "0.4.8", note = "please use `from_words` instead")]
pub const fn from_uint_array(words: [Word; LIMBS]) -> Self {
Self::from_words(words)
}

/// Deprecated: create an array of [`Word`]s from a [`UInt`].
#[deprecated(since = "0.4.8", note = "please use `to_words` instead")]
pub const fn to_uint_array(self) -> [Word; LIMBS] {
self.to_words()
}

/// Borrow the limbs of this [`UInt`].
// TODO(tarcieri): rename to `as_limbs` for consistency with `as_words`
pub const fn limbs(&self) -> &[Limb; LIMBS] {
Expand Down
7 changes: 0 additions & 7 deletions src/uint/bits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,6 @@ impl<const LIMBS: usize> UInt<LIMBS> {
}
}

/// Calculate the number of bits needed to represent this number.
#[deprecated(note = "please use `bits_vartime` instead")]
#[inline(always)]
pub const fn bits(self) -> usize {
self.bits_vartime()
}

/// Calculate the number of bits needed to represent this number.
#[allow(trivial_numeric_casts)]
pub const fn bits_vartime(self) -> usize {
Expand Down