2.2 KiB
2.2 KiB
Changelog
Entries are listed in reverse chronological order.
2.5.0
- Add constant-timedness note to the documentation for
CtOption::unwrap_or_else. - Add
CtOption::expect. - Add
ConstantTimeEq::ct_newith default implementation. - Add new
core_hint_black_boxfeature from Diane Hosfelt and Amber Sprenkels which utilises the originalblack_boxfunctionality from when subtle was first written, which has now found it's way into the Rust standard library. - Add new
const-genericsfeature from @survived which adds support for subtle traits for generic arrays[T; N]. - Add new feature for supporting
core::cmp::Orderingfor types which implement subtle traits, patch from @tarcieri. - Update
randdependency to 0.8.
2.4.1
- Fix a bug in how the README was included in the documentation builds which caused nightly builds to break.
2.4.0
- Add new
ConstantTimeGreaterandConstantTimeLesstraits, as well as implementations for unsigned integers, by @isislovecruft.
2.3.0
- Add
impl ConstantTimeEq for Choiceby @tarcieri. - Add
impl From<CtOption<T>> for Option<T>by @CPerezz. This is useful for handling library code that producesCtOptions in contexts where timing doesn't matter. - Introduce an MSRV policy.
2.2.3
- Remove the
nightly-only asm-basedblack_boxbarrier in favor of the volatile-based one, fixing compilation on current nightlies.
2.2.2
- Update README.md to clarify that 2.2 and above do not require the
nightlyfeature.
2.2.1
- Adds an
or_elsecombinator forCtOption, by @ebfull. - Optimized
black_boxfornightly, by @jethrogb. - Optimized
black_boxforstable, by @dsprenkels. - Fixed CI for
no_std, by @dsprenkels. - Fixed fuzz target compilation, by @3for.
2.2.0
- Error during
cargo publish, yanked.
2.1.1
- Adds the "crypto" tag to crate metadata.
- New shorter, more efficient ct_eq() for integers, contributed by Thomas Pornin.
2.1.0
- Adds a new
CtOption<T>which acts as a constant-timeOption<T>(thanks to @ebfull for the implementation). Choicenow itself implementsConditionallySelectable.
2.0.0
- Stable version with traits reworked from 1.0.0 to interact better with the orphan rules.