@@ -14,22 +14,18 @@ The traits are implemented using bitwise operations, and should execute in
14
14
constant time provided that a) the bitwise operations are constant-time and b)
15
15
the operations are not optimized into a branch.
16
16
17
- To prevent the latter possibility, when using the ` nightly ` feature
18
- (recommended), the crate attempts to hide the value of a ` Choice ` 's inner ` u8 `
19
- from the optimizer, by passing it through an inline assembly block . For more
20
- information, see the _ About_ section below.
17
+ To prevent the latter possibility, the crate attempts to hide the value of a
18
+ ` Choice ` 's inner ` u8 ` from the optimizer, by passing it through either an
19
+ inline assembly block or a volatile read . For more information, see the
20
+ _ About_ section below.
21
21
22
22
``` toml
23
23
[dependencies .subtle ]
24
- version = " 2.1"
25
- features = [" nightly" ]
24
+ version = " 2.2"
26
25
```
27
26
28
- ## Features
29
-
30
- * The ` nightly ` feature enables the use of
31
- an optimization barrier to protect the ` Choice ` type.
32
- _ Using the ` nightly ` feature is recommended for security_ .
27
+ Versions prior to ` 2.2 ` recommended use of the ` nightly ` feature to enable an
28
+ optimization barrier; this is not required in versions ` 2.2 ` and above.
33
29
34
30
## Documentation
35
31
@@ -56,5 +52,5 @@ effort is fundamentally limited.
56
52
57
53
** USE AT YOUR OWN RISK**
58
54
59
- [ docs ] : https://doc.dalek .rs/subtle
55
+ [ docs ] : https://docs .rs/subtle
60
56
[ rust-timing-shield ] : https://www.chosenplaintext.ca/open-source/rust-timing-shield/security
0 commit comments