Skip to content

Commit

Permalink
Merge branch 'release/2.2.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
hdevalence committed Nov 27, 2019
2 parents 73771ba + 4f5a47b commit 5f901f8
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

Entries are listed in reverse chronological order.

## 2.2.2

* Update README.md to clarify that 2.2 and above do not require the `nightly`
feature.

## 2.2.1

* Adds an `or_else` combinator for `CtOption`, by @ebfull.
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "subtle"
version = "2.2.1"
version = "2.2.2"
authors = ["Isis Lovecruft <isis@patternsinthevoid.net>",
"Henry de Valence <hdevalence@hdevalence.ca>"]
readme = "README.md"
Expand Down
20 changes: 8 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,18 @@ The traits are implemented using bitwise operations, and should execute in
constant time provided that a) the bitwise operations are constant-time and b)
the operations are not optimized into a branch.

To prevent the latter possibility, when using the `nightly` feature
(recommended), the crate attempts to hide the value of a `Choice`'s inner `u8`
from the optimizer, by passing it through an inline assembly block. For more
information, see the _About_ section below.
To prevent the latter possibility, the crate attempts to hide the value of a
`Choice`'s inner `u8` from the optimizer, by passing it through either an
inline assembly block or a volatile read. For more information, see the
_About_ section below.

```toml
[dependencies.subtle]
version = "2.1"
features = ["nightly"]
version = "2.2"
```

## Features

* The `nightly` feature enables the use of
an optimization barrier to protect the `Choice` type.
_Using the `nightly` feature is recommended for security_.
Versions prior to `2.2` recommended use of the `nightly` feature to enable an
optimization barrier; this is not required in versions `2.2` and above.

## Documentation

Expand All @@ -56,5 +52,5 @@ effort is fundamentally limited.

**USE AT YOUR OWN RISK**

[docs]: https://doc.dalek.rs/subtle
[docs]: https://docs.rs/subtle
[rust-timing-shield]: https://www.chosenplaintext.ca/open-source/rust-timing-shield/security

0 comments on commit 5f901f8

Please sign in to comment.