Skip to content

Commit d4f63b6

Browse files
committed
Merge branch 'main' into develop
2 parents 6bae3ff + 6b6a81a commit d4f63b6

File tree

4 files changed

+21
-6
lines changed

4 files changed

+21
-6
lines changed

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,21 @@
22

33
Entries are listed in reverse chronological order.
44

5+
## 2.5.0
6+
7+
* Add constant-timedness note to the documentation for `CtOption::unwrap_or_else`.
8+
* Add `CtOption::expect`.
9+
* Add `ConstantTimeEq::ct_ne` with default implementation.
10+
* Add new `core_hint_black_box` feature from Diane Hosfelt and Amber
11+
Sprenkels which utilises the original `black_box` functionality from
12+
when subtle was first written, which has now found it's way into the
13+
Rust standard library.
14+
* Add new `const-generics` feature from @survived which adds support
15+
for subtle traits for generic arrays `[T; N]`.
16+
* Add new feature for supporting `core::cmp::Ordering` for types which
17+
implement subtle traits, patch from @tarcieri.
18+
* Update `rand` dependency to 0.8.
19+
520
## 2.4.1
621

722
* Fix a bug in how the README was included in the documentation builds

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name = "subtle"
55
# - update html_root_url
66
# - update README if necessary by semver
77
# - if any updates were made to the README, also update the module documentation in src/lib.rs
8-
version = "2.4.1"
8+
version = "2.5.0"
99
edition = "2018"
1010
authors = ["Isis Lovecruft <[email protected]>",
1111
"Henry de Valence <[email protected]>"]

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ instead of `bool` which are intended to execute in constant-time. The `Choice`
77
type is a wrapper around a `u8` that holds a `0` or `1`.
88

99
```toml
10-
subtle = "2.4"
10+
subtle = "2.5"
1111
```
1212

1313
This crate represents a “best-effort” attempt, since side-channels
@@ -61,7 +61,7 @@ which attempts to provide a more comprehensive approach for preventing
6161
software side-channels in Rust code.
6262

6363
From version `2.2`, it was based on Diane Hosfelt and Amber Sprenkels' work on
64-
"Secret Types in Rust". Version `2.3` adds the `core_hint_black_box` feature,
64+
"Secret Types in Rust". Version `2.5` adds the `core_hint_black_box` feature,
6565
which uses the original method through the [`core::hint::black_box`] function
6666
from the Rust standard library.
6767

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#![no_std]
1212
#![deny(missing_docs)]
1313
#![doc(html_logo_url = "https://doc.dalek.rs/assets/dalek-logo-clear.png")]
14-
#![doc(html_root_url = "https://docs.rs/subtle/2.4.1")]
14+
#![doc(html_root_url = "https://docs.rs/subtle/2.5.0")]
1515

1616
//! # subtle [![](https://img.shields.io/crates/v/subtle.svg)](https://crates.io/crates/subtle) [![](https://img.shields.io/badge/dynamic/json.svg?label=docs&uri=https%3A%2F%2Fcrates.io%2Fapi%2Fv1%2Fcrates%2Fsubtle%2Fversions&query=%24.versions%5B0%5D.num&colorB=4F74A6)](https://doc.dalek.rs/subtle) [![](https://travis-ci.org/dalek-cryptography/subtle.svg?branch=master)](https://travis-ci.org/dalek-cryptography/subtle)
1717
//!
@@ -22,7 +22,7 @@
2222
//! type is a wrapper around a `u8` that holds a `0` or `1`.
2323
//!
2424
//! ```toml
25-
//! subtle = "2.4"
25+
//! subtle = "2.5"
2626
//! ```
2727
//!
2828
//! This crate represents a “best-effort” attempt, since side-channels
@@ -76,7 +76,7 @@
7676
//! software side-channels in Rust code.
7777
//!
7878
//! From version `2.2`, it was based on Diane Hosfelt and Amber Sprenkels' work on
79-
//! "Secret Types in Rust". Version `2.3` adds the `core_hint_black_box` feature,
79+
//! "Secret Types in Rust". Version `2.5` adds the `core_hint_black_box` feature,
8080
//! which uses the original method through the [`core::hint::black_box`] function
8181
//! from the Rust standard library.
8282
//!

0 commit comments

Comments
 (0)