interplane.Get Omega
Read in your language

aienux

Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.

Brought by drakestapleton

branch main Branches Tags History

aienux / vendor / curve25519-dalek / CHANGELOG.md

268 lines · 9506 bytes Raw Blame History Rendered
1# Changelog
2
3Entries are listed in reverse chronological order per undeprecated
4major series.
5
6## 4.x series
7
8### 4.1.3
9
10* Security: Fix timing leak in Scalar subtraction on u32, u64, fiat_u32, and fiat_u64 backends
11* Fix assorted new warnings and lints from rustc and clippy
12
13### 4.1.2
14
15* Fix nightly SIMD build
16
17### 4.1.1
18
19* Mark `constants::BASEPOINT_ORDER` deprecated from pub API
20* Add implementation for `PrimeFieldBits`, behind the `group-bits` feature flag.
21
22### 4.1.0
23
24* Add arbitrary integer multiplication with `MontgomeryPoint::mul_bits_be`
25* Add implementations of the `ff` and `group` traits, behind the `group` feature flag
26* Adapt to new types introduced in `fiat-crypto` 0.2 in `fiat` backend
27* Fix `no_std` for `fiat` backend
28* Mark `Scalar::clamp_integer` as `#[must_use]`
29* Various documentation fixes
30
31### 4.0.0
32
33#### Breaking changes
34
35* Update the MSRV from 1.41 to 1.60
36* Provide SemVer policy
37* Make `digest` an optional feature
38* Make `rand_core` an optional feature
39* Remove `std` feature flag
40* Remove `nightly` feature flag
41* Automatic serial backend selection between `u32` and `u64` over the default `u32`
42* Backend `simd` is now automatically selected over `serial` when a supported CPU is detected
43* Backend override is now via cfg(curve25519_dalek_backend) over additive features
44* Provide override to select `u32` or `u64` backend via cfg(curve25519_dalek_bits)
45* Replace methods `Scalar::{zero, one}` with constants `Scalar::{ZERO, ONE}`
46* Deprecate `EdwardsPoint::hash_from_bytes` and rename it `EdwardsPoint::nonspec_map_to_curve`
47* Require including a new trait, `use curve25519_dalek::traits::BasepointTable`
48 whenever using `EdwardsBasepointTable` or `RistrettoBasepointTable`
49* `Scalar::from_canonical_bytes` now returns `CtOption`
50* `Scalar::is_canonical` now returns `Choice`
51* Remove `Scalar::from_bytes_clamped` and `Scalar::reduce`
52* Deprecate and feature-gate `Scalar::from_bits` behind `legacy_compatibility`
53
54#### Other changes
55
56* Add `EdwardsPoint::{mul_base, mul_base_clamped}`, `MontgomeryPoint::{mul_base, mul_base_clamped}`, and `BasepointTable::mul_base_clamped`
57* Add `precomputed-tables` feature
58* Update Maintenance Policies for SemVer
59* Migrate documentation to docs.rs hosted
60* Fix backend documentation generation
61* Fix panic when `Ristretto::double_and_compress_batch` receives the identity point
62* Remove `byteorder` dependency
63* Update the `criterion` dependency to 0.4.0
64* Include README.md into crate Documentation
65* Update the `rand_core` dependency version and the `rand` dev-dependency
66 version.
67* Relax the `zeroize` dependency to `^1`
68* Update the edition from 2015 to 2021
69
70## 3.x series
71
72### 3.2.0
73
74* Add support for getting the identity element for the Montgomery
75 form of curve25519, which is useful in certain protocols for
76 checking contributory behaviour in derivation of shared secrets.
77
78### 3.1.2
79
80* Revert a commit which mistakenly removed support for `zeroize` traits
81 for some point types, as well as elligator2 support for Edwards points.
82
83### 3.1.1
84
85* Fix documentation builds on nightly due to syntax changes to
86 `#![cfg_attr(feature = "nightly", doc = include_str!("../README.md"))]`.
87
88### 3.1.0
89
90* Add support for the Elligator2 encoding for Edwards points.
91* Add two optional formally-verified field arithmetic backends which
92 use the Fiat Crypto project's Rust code, which is generated from
93 proofs of functional correctness checked by the Coq theorem proving
94 system.
95* Add support for additional sizes of precomputed tables for basepoint
96 scalar multiplication.
97* Fix an unused import.
98* Add support for using the `zeroize` traits with all point types.
99 Note that points are not automatically zeroized on Drop, but that
100 consumers of `curve25519-dalek` should call these methods manually
101 when needed.
102
103### 3.0.3
104
105* Fix documentation builds on nightly due to syntax changes to
106 `#![cfg_attr(feature = "nightly", doc = include_str!("../README.md"))]`.
107
108### 3.0.2
109
110* Multiple documentation typo fixes.
111* Fixes to make using `alloc`+`no_std` possible for stable Rust.
112
113### 3.0.1
114
115* Update the optional `packed-simd` dependency to rely on a newer,
116 maintained version of the `packed-simd-2` crate.
117
118### 3.0.0
119
120#### Breaking changes
121
122* Update the `digest` dependency to `0.9`. This requires a major version
123 because the `digest` traits are part of the public API, but there are
124 otherwise no changes to the API.
125
126## 2.x series
127
128### 2.1.3
129
130* Fix documentation builds on nightly due to syntax changes to
131 `#![fg_attr(feature = "nightly", doc = include_str!("../README.md"))]`.
132
133### 2.1.2
134
135* Multiple documentation typo fixes.
136* Fix `alloc` feature working with stable rust.
137
138### 2.1.1
139
140* Update the optional `packed-simd` dependency to rely on a newer,
141 maintained version of the `packed-simd-2` crate.
142
143### 2.1.0
144
145* Make `Scalar::from_bits` a `const fn`, allowing its use in `const` contexts.
146
147### 2.0.0
148
149The only significant change is the data model change to the `serde` feature;
150besides the `rand_core` version bump, there are no other user-visible changes.
151
152#### Breaking changes
153
154* Fix a data modeling error in the `serde` feature pointed out by Trevor Perrin
155 which caused points and scalars to be serialized with length fields rather
156 than as fixed-size 32-byte arrays. This is a breaking change, but it fixes
157 compatibility with `serde-json` and ensures that the `serde-bincode` encoding
158 matches the conventional encoding for X/Ed25519.
159* Update `rand_core` to `0.5`, allowing use with new `rand` versions.
160
161#### Other changes
162
163* Switch from `clear_on_drop` to `zeroize` (by Tony Arcieri).
164* Require `subtle = ^2.2.1` and remove the note advising nightly Rust, which is
165 no longer required as of that version of `subtle`. See the `subtle`
166 changelog for more details.
167* Update `README.md` for `2.x` series.
168* Remove the `build.rs` hack which loaded the entire crate into its own
169 `build.rs` to generate constants, and keep the constants in the source code.
170
171## 1.x series
172
173### 1.2.6
174
175* Fixes to make using alloc+no_std possible for stable Rust.
176
177### 1.2.5
178
179* Update the optional `packed-simd` dependency to rely on a newer,
180 maintained version of the `packed-simd-2` crate.
181
182### 1.2.4
183
184* Specify a semver bound for `clear_on_drop` rather than an exact version,
185 addressing an issue where changes to inline assembly in rustc prevented
186 `clear_on_drop` from working without an update.
187
188### 1.2.3
189
190* Fix an issue identified by a Quarkslab audit (and Jack Grigg), where manually
191 constructing unreduced `Scalar` values, as needed for X/Ed25519, and then
192 performing scalar/scalar arithmetic could compute incorrect results.
193* Switch to upstream Rust intrinsics for the IFMA backend now that they exist in
194 Rust and don't need to be defined locally.
195* Ensure that the NAF computation works correctly, even for parameters never
196 used elsewhere in the codebase.
197* Minor refactoring to EdwardsPoint decompression.
198* Fix broken links in documentation.
199* Fix compilation on nightly broken due to changes to the `#[doc(include)]` path
200 root (not quite correctly done in 1.2.2).
201
202### 1.2.2
203
204* Fix a typo in an internal doc-comment.
205* Add the "crypto" tag to crate metadata.
206* Fix compilation on nightly broken due to changes to the `#[doc(include)]` path
207 root.
208
209### 1.2.1
210
211* Fix a bug in bucket index calculations in the Pippenger multiscalar algorithm
212 for very large input sizes.
213* Add a more extensive randomized multiscalar multiplication consistency check
214 to the test suite to prevent regressions.
215* Ensure that that multiscalar and NAF computations work correctly on extremal
216 `Scalar` values constructed via `from_bits`.
217
218### 1.2.0
219
220* New multiscalar multiplication algorithm with better performance for
221 large problem sizes. The backend algorithm is selected
222 transparently using the size hints of the input iterators, so no
223 changes are required for client crates to start using it.
224* Equality of Edwards points is now checked in projective coordinates.
225* Serde can now be used with `no_std`.
226
227### 1.1.4
228
229* Fix typos in documentation comments.
230* Remove unnecessary `Default` bound on `Scalar::from_hash`.
231
232### 1.1.3
233
234* Reverts the change in 1.1.0 to allow owned and borrowed RNGs, which caused a breakage due to a subtle interaction with ownership rules. (The `RngCore` change is retained).
235
236### 1.1.2
237
238* Disabled KaTeX on `docs.rs` pending proper [support upstream](https://github.com/rust-lang/docs.rs/issues/302).
239
240## 1.1.1
241
242* Fixed an issue related to `#[cfg(rustdoc)]` which prevented documenting multiple backends.
243
244### 1.1.0
245
246* Adds support for precomputation for multiscalar multiplication.
247* Restructures the internal source tree into `serial` and `vector` backends (no change to external API).
248* Adds a new IFMA backend which sets speed records.
249* The `avx2_backend` feature is now an alias for the `simd_backend` feature, which autoselects an appropriate vector backend (currently AVX2 or IFMA).
250* Replaces the `rand` dependency with `rand_core`.
251* Generalizes trait bounds on `RistrettoPoint::random()` and `Scalar::random()` to allow owned and borrowed RNGs and to allow `RngCore` instead of `Rng`.
252
253### 1.0.3
254
255* Adds `ConstantTimeEq` implementation for compressed points.
256
257### 1.0.2
258
259* Fixes a typo in the naming of variables in Ristretto formulas (no change to functionality).
260
261### 1.0.1
262
263* Depends on the stable `2.0` version of `subtle` instead of `2.0.0-pre.0`.
264
265### 1.0.0
266
267Initial stable release. Yanked due to a dependency mistake (see above).
268