commit_hash
stringlengths
40
40
author
stringlengths
1
57
date
timestamp[s]date
2010-07-26 04:45:09
2026-04-14 18:21:10
message
stringlengths
8
1.39M
diff
stringlengths
68
51.2k
files_changed
int64
1
136
insertions
int64
0
2.35k
deletions
int64
0
1.9k
33d0e9be1b657e127d39c1e18976da165b1a25bc
CreepySkeleton
2020-07-31T16:51:55
Fix tests
diff --git a/test-crate/Cargo.toml b/test-crate/Cargo.toml index 6a862f3..e3ed3db 100644 --- a/test-crate/Cargo.toml +++ b/test-crate/Cargo.toml @@ -16,8 +16,4 @@ proc-macro2 = "1" [dependencies.syn] version = "1" -optional = true default-features = false - -[features] -syn-error = ["syn"] diff --git a/test-crate/...
2
3
10
62c65906577f4f48beed4fddedc7a34175271776
CreepySkeleton
2020-07-31T14:38:13
Wording and typos
diff --git a/src/lib.rs b/src/lib.rs index 0319406..6195c89 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -6,9 +6,9 @@ //! (Also, you can explicitly [append a dummy token stream](dummy/index.html) to your errors). //! //! To achieve his, this crate serves as a tiny shim around `proc_macro::Diagnostic` and -//! `compil...
1
3
3
f7bbbe3e5e1ff92a5d26cd1751971181fc4a55ed
CreepySkeleton
2020-07-05T15:37:41
Make syn optional
diff --git a/Cargo.toml b/Cargo.toml index f7c01e7..2697311 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,9 +22,13 @@ targets = ["x86_64-unknown-linux-gnu"] [dependencies] quote = "1" proc-macro2 = "1" -syn = { version = "1", default-features = false, features = ["derive", "parsing", "proc-macro", "printing"] } p...
8
248
102
d1a7069afadb880da9a266db5755a58c4ca514ee
CreepySkeleton
2020-05-11T08:11:42
Fix test build on 1.31
diff --git a/Cargo.toml b/Cargo.toml index 83f6781..54b6723 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -30,6 +30,7 @@ test-crate = { path = "./test-crate" } proc-macro-hack-test = { path = "./test-crate/proc-macro-hack-test" } trybuild = { version = "1.0.19", features = ["diff"] } toml = "=0.5.2" # DO NOT BUMP +ser...
1
1
0
141ebd775d63ada98d9f17eca8762d6c3522d55e
CreepySkeleton
2020-04-24T13:02:45
Shuffle hidden exports a bit
diff --git a/src/lib.rs b/src/lib.rs index 0af2de3..bc86ad8 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -253,11 +253,7 @@ #![forbid(unsafe_code)] #![allow(clippy::needless_doctest_main)] -// reexports for use in macros -#[doc(hidden)] -pub extern crate proc_macro; -#[doc(hidden)] -pub extern crate proc_macro2; +ext...
2
8
8
493ada3e9741328388db39f28294d0315d56b94e
CreepySkeleton
2020-04-09T14:19:51
Remove obsolete note
diff --git a/src/lib.rs b/src/lib.rs index 0703f2a..0af2de3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -18,8 +18,6 @@ //! (essentially inheriting the parent span). //! - If a panic occurs somewhere in your macro no errors will be displayed. This is not a //! technical limitation but rather intentional design. `...
1
0
2
270cbb798f0107eaf6db23a7fa34aa5ace475179
CreepySkeleton
2020-04-08T16:20:28
More bulletproof code
diff --git a/src/diagnostic.rs b/src/diagnostic.rs index a5ff46e..66f6a93 100644 --- a/src/diagnostic.rs +++ b/src/diagnostic.rs @@ -217,7 +217,7 @@ impl SuggestionKind { impl From<syn::Error> for Diagnostic { fn from(err: syn::Error) -> Self { - use proc_macro2::TokenTree; + use proc_macro2::{Del...
1
24
5
021b627d76cb023bd03385e63feae21efa755525
CreepySkeleton
2020-03-25T19:14:13
Specify a single target for docs.rs builds
diff --git a/Cargo.toml b/Cargo.toml index 6d65070..a3be9df 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -16,6 +16,9 @@ build = "build.rs" [badges] maintenance = { status = "passively-maintained" } +[package.metadata.docs.rs] +targets = ["x86_64-unknown-linux-gnu"] + [dependencies] quote = "1" proc-macro2 = "1" d...
2
6
0
f684bfe0386dd726bcdac8d16d49ce818406de91
CreepySkeleton
2020-03-25T18:43:02
Support nested #[proc_macro_error]
diff --git a/src/lib.rs b/src/lib.rs index 8af9411..470f69f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -327,11 +327,11 @@ pub fn entry_point<F>(f: F, proc_macro_hack: bool) -> proc_macro::TokenStream where F: FnOnce() -> proc_macro::TokenStream + UnwindSafe, { - ENTERED_ENTRY_POINT.with(|flag| flag.set(true)...
1
4
4
e7626a25471d2db29e7cdee81308ee4604b41544
Igor Raits
2020-03-02T11:14:11
build.rs: Simplify check for version This also fixes build with rustc shipped by distributions. Fixes: https://gitlab.com/CreepySkeleton/proc-macro-error/issues/8 Signed-off-by: Igor Raits <i.gnatenko.brain@gmail.com>
diff --git a/build.rs b/build.rs index 17cf408..3c1196f 100644 --- a/build.rs +++ b/build.rs @@ -1,11 +1,11 @@ fn main() { - let (version, channel, _) = version_check::triple().unwrap(); - - if !channel.is_nightly() { + if !version_check::is_feature_flaggable().unwrap_or(false) { println!("cargo:rust...
2
5
7
3e4223b3c5d2b815ad455b6df5099b3ea7d5a6a0
CreepySkeleton
2020-02-29T15:37:59
Get rid of syn(full), save ~30sec of compile time rustversion depends on syn(full) so it had to be ditched, but it worth it
diff --git a/Cargo.toml b/Cargo.toml index ebb534b..14c94eb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,14 +19,13 @@ maintenance = { status = "actively-developed" } [dependencies] quote = "1" proc-macro2 = "1" -syn = { version = "1", default-features = false } +syn = { version = "1", default-features = false, fe...
7
31
22
6fe50d2d21179921f73e1d223012a74c5b08e4b2
CreepySkeleton
2020-02-01T08:19:08
cargo fmt
diff --git a/src/diagnostic.rs b/src/diagnostic.rs index b0f1328..a5ff46e 100644 --- a/src/diagnostic.rs +++ b/src/diagnostic.rs @@ -193,9 +193,9 @@ impl ToTokens for Diagnostic { &self.suggestions, )); ts.extend( - self.children.iter().map(|(start, end, msg)| { - ...
1
3
3
345df1db1ee2208f201498c8f1442fa2fb2b4329
CreepySkeleton
2020-02-01T07:52:40
cargo clippy
diff --git a/src/diagnostic.rs b/src/diagnostic.rs index 9c2b898..b0f1328 100644 --- a/src/diagnostic.rs +++ b/src/diagnostic.rs @@ -152,11 +152,11 @@ impl ToTokens for Diagnostic { } fn diag_to_tokens( - start: &Span, - end: &Span, + start: Span, + end: S...
2
10
9
8c38cf0efb9a7f5423f5c8340b1def1c78c01d05
CreepySkeleton
2019-11-07T14:18:35
Fix bug with multiple attrs
diff --git a/proc-macro-error-attr/src/lib.rs b/proc-macro-error-attr/src/lib.rs index ba36e3a..3c1013b 100644 --- a/proc-macro-error-attr/src/lib.rs +++ b/proc-macro-error-attr/src/lib.rs @@ -63,7 +63,7 @@ pub fn proc_macro_error(attr: TokenStream, input: TokenStream) -> TokenStream { let body = gen_body(block, s...
1
1
1
7e71de21c6c559931308c77bd984bef6784420f3
CreepySkeleton
2019-11-06T16:00:39
Remove unneeded files
diff --git a/proc-macro-error/src/multi.rs b/proc-macro-error/src/multi.rs deleted file mode 100644 index 7634b17..0000000 --- a/proc-macro-error/src/multi.rs +++ /dev/null @@ -1,9 +0,0 @@ -//! Facility for stacking and emitting multiple errors. -//! -//! [`abort!`] macro stops a proc-macro *right away*, much like in a...
2
0
13
c37ab677c9e40469e6f725a0d951b99e979cc525
CreepySkeleton
2019-10-30T02:59:38
Move to syn-mid
diff --git a/proc-macro-error-attr/Cargo.toml b/proc-macro-error-attr/Cargo.toml index 15f3776..372958b 100644 --- a/proc-macro-error-attr/Cargo.toml +++ b/proc-macro-error-attr/Cargo.toml @@ -13,7 +13,8 @@ proc-macro = true [dependencies] quote = "1" proc-macro2 = "1" -syn = { version = "1", features = ["full"] } +...
3
55
19
dc091a63623ef1e9dec53b927fe5d6b600fea375
CreepySkeleton
2019-10-29T06:20:35
Bring ui tests back
diff --git a/proc-macro-error-attr/tests/macro-errors.rs b/proc-macro-error-attr/tests/macro-errors.rs index 412df1b..366fb53 100644 --- a/proc-macro-error-attr/tests/macro-errors.rs +++ b/proc-macro-error-attr/tests/macro-errors.rs @@ -1,4 +1,4 @@ -#[rustversion::attr(not(all(stable, since(1.36))), ignore)] +#[rustver...
2
2
2
22e56f61423334725b08f1bd3e49bfd4a0625cb5
CreepySkeleton
2019-10-29T06:10:02
Restrict toml version
diff --git a/proc-macro-error-attr/Cargo.toml b/proc-macro-error-attr/Cargo.toml index 99b90ed..15f3776 100644 --- a/proc-macro-error-attr/Cargo.toml +++ b/proc-macro-error-attr/Cargo.toml @@ -18,3 +18,4 @@ rustversion = "1.0" [dev-dependencies] trybuild = "1.0" +toml = "=0.5.2" # DO NOT BUMP!!!
1
1
0
4da2f4222f1181d15ea34bb2ce98385c54047c91
CreepySkeleton
2019-10-29T05:28:23
Don't run ui tests on rustc < 1.36 trybuild is now +1.36, unfortunately
diff --git a/proc-macro-error-attr/tests/macro-errors.rs b/proc-macro-error-attr/tests/macro-errors.rs index 9ab94f1..412df1b 100644 --- a/proc-macro-error-attr/tests/macro-errors.rs +++ b/proc-macro-error-attr/tests/macro-errors.rs @@ -1,3 +1,4 @@ +#[rustversion::attr(not(all(stable, since(1.36))), ignore)] #[test] ...
2
2
1
774d0fd7139b58559fbc5deec965c69b211b0016
CreepySkeleton
2019-10-07T00:20:30
v0.3.0-rc.1
diff --git a/proc-macro-error/Cargo.toml b/proc-macro-error/Cargo.toml index 9218c62..2c7287a 100644 --- a/proc-macro-error/Cargo.toml +++ b/proc-macro-error/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "proc-macro-error" -version = "0.3.0-rc" +version = "0.3.0-rc.1" authors = ["CreepySkeleton <creepy-skeleton@yandex...
1
2
2
860c0846ebb4e6d2efdaecaa6af0bb27365d7340
CreepySkeleton
2019-10-06T23:00:53
Get rid of cargo-release and update repo links
diff --git a/proc-macro-error-attr/Cargo.toml b/proc-macro-error-attr/Cargo.toml index 835670b..3847724 100644 --- a/proc-macro-error-attr/Cargo.toml +++ b/proc-macro-error-attr/Cargo.toml @@ -1,11 +1,11 @@ [package] name = "proc-macro-error-attr" -version = "0.3.0-rc1" +version = "0.3.0-rc.1" authors = ["CreepySkel...
2
6
11
69aa3b2e2103176dbd8244526b83fa671170217b
CreepySkeleton
2019-10-06T06:32:43
Fix versions
diff --git a/proc-macro-error-attr/Cargo.toml b/proc-macro-error-attr/Cargo.toml index 2329bb5..835670b 100644 --- a/proc-macro-error-attr/Cargo.toml +++ b/proc-macro-error-attr/Cargo.toml @@ -1,8 +1,11 @@ [package] name = "proc-macro-error-attr" -version = "0.1.0" +version = "0.3.0-rc1" authors = ["CreepySkeleton <...
2
5
2
d3739468eb2f45a565d0f52ff442985c3e565562
CreepySkeleton
2019-10-06T06:11:20
cargo clippy
diff --git a/proc-macro-error/src/lib.rs b/proc-macro-error/src/lib.rs index 18261b0..7317ad5 100644 --- a/proc-macro-error/src/lib.rs +++ b/proc-macro-error/src/lib.rs @@ -240,8 +240,7 @@ impl<T> OptionExt for Option<T> { /// Typically, you use `#[proc_macro_error]` instead, see [module level docs][self]. pub fn ent...
2
4
5
e52996a775e043d46cb0380e0fb0b49f530340b1
CreepySkeleton
2019-10-06T06:02:47
cargo fmt
diff --git a/proc-macro-error-attr/src/lib.rs b/proc-macro-error-attr/src/lib.rs index c2cade3..9b9bb62 100644 --- a/proc-macro-error-attr/src/lib.rs +++ b/proc-macro-error-attr/src/lib.rs @@ -1,26 +1,28 @@ extern crate proc_macro; -use version_check::Version; use proc_macro::TokenStream; use quote::quote; -use sy...
6
38
47
26981a0b23fd23340065f6f2c3a4233082373ab0
CreepySkeleton
2019-10-03T11:08:30
Make it work on 1.31
diff --git a/proc-macro-error/src/lib.rs b/proc-macro-error/src/lib.rs index 3c96587..69282ab 100644 --- a/proc-macro-error/src/lib.rs +++ b/proc-macro-error/src/lib.rs @@ -131,9 +131,9 @@ pub mod dummy; pub mod multi; pub mod single; -pub use dummy::set_dummy; -pub use single::MacroError; -pub use multi::abort_if_...
4
36
23
f137daa879008d76c641e21e2e8ac5636145a246
CreepySkeleton
2019-09-20T21:06:18
Rewrite from scratch #2 of 3
diff --git a/proc-macro-error/src/dummy.rs b/proc-macro-error/src/dummy.rs index 9ca6016..c633191 100644 --- a/proc-macro-error/src/dummy.rs +++ b/proc-macro-error/src/dummy.rs @@ -108,6 +108,8 @@ use proc_macro2::TokenStream; use std::cell::Cell; +use crate::check_correctness; + thread_local! { pub(crate) st...
4
51
33
bfa9b224b9f894788d79154eb8d7ed27cffb8a43
CreepySkeleton
2019-09-19T10:32:12
Rewrite from scratch #1 of N
diff --git a/proc-macro-error/src/dummy.rs b/proc-macro-error/src/dummy.rs index bc9b5d1..9ca6016 100644 --- a/proc-macro-error/src/dummy.rs +++ b/proc-macro-error/src/dummy.rs @@ -1,9 +1,9 @@ //! Facility to emit dummy implementations (or whatever) in case //! an error happen. //! -//! `compile_error!` does not int...
4
61
73
26261a90bea4e5ecf266e7bb26bcfa9ba198c7f2
CreepySkeleton
2019-09-09T23:56:04
Fix errors
diff --git a/proc-macro-error/src/dummy.rs b/proc-macro-error/src/dummy.rs index f248e7a..bc9b5d1 100644 --- a/proc-macro-error/src/dummy.rs +++ b/proc-macro-error/src/dummy.rs @@ -125,7 +125,7 @@ thread_local! { /// note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace. /// ``` pub fn set_du...
2
2
2
e755ce9544b8bfa35183f29c48862994b0106f2d
CreepySkeleton
2019-09-09T23:15:44
Rework `set_dummy`'s signature
diff --git a/proc-macro-error/src/dummy.rs b/proc-macro-error/src/dummy.rs index a6b4d2f..f248e7a 100644 --- a/proc-macro-error/src/dummy.rs +++ b/proc-macro-error/src/dummy.rs @@ -117,13 +117,28 @@ thread_local! { /// appear not to be empty. Returns an old dummy, if set. /// /// # Warning: -/// If you do `set_dummy...
1
17
2
464d553fee5945d87444f0357cac068f4cbc6f83
CreepySkeleton
2019-08-20T20:02:59
Integrate cargo-release
diff --git a/proc-macro-error/Cargo.toml b/proc-macro-error/Cargo.toml index 042a55b..e690560 100644 --- a/proc-macro-error/Cargo.toml +++ b/proc-macro-error/Cargo.toml @@ -14,6 +14,7 @@ edition = "2018" [package.metadata.release] tag-name = "v{{version}}" +pre-release-commit-message = "v{{version}}" no-dev-versio...
1
1
0
648de0da4fc9aeda6961245876ab9aa055d46032
CreepySkeleton
2019-08-20T19:59:06
(cargo-release) version 0.2.4
diff --git a/proc-macro-error/Cargo.toml b/proc-macro-error/Cargo.toml index 944c167..042a55b 100644 --- a/proc-macro-error/Cargo.toml +++ b/proc-macro-error/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "proc-macro-error" -version = "0.2.3" +version = "0.2.4" authors = ["CreepySkeleton <creepy-skeleton@yandex.ru>"] ...
1
4
4
271be2dcc44559d5450b220b79e279c37c614f19
CreepySkeleton
2019-08-20T19:58:25
Integrate cargo-release
diff --git a/proc-macro-error/Cargo.toml b/proc-macro-error/Cargo.toml index 8dfbda8..944c167 100644 --- a/proc-macro-error/Cargo.toml +++ b/proc-macro-error/Cargo.toml @@ -16,7 +16,8 @@ edition = "2018" maintenance = { status = "actively-developed" } [package.metadata.release] -tag-prefix = "v" +tag-name = "v{{ver...
1
2
1
3c766d3453c2fda3f30d9db58408dfe975c2a952
CreepySkeleton
2019-08-20T18:31:16
Integrate cargo-release
diff --git a/proc-macro-error/Cargo.toml b/proc-macro-error/Cargo.toml index a4695fc..8dfbda8 100644 --- a/proc-macro-error/Cargo.toml +++ b/proc-macro-error/Cargo.toml @@ -15,6 +15,9 @@ edition = "2018" [badges] maintenance = { status = "actively-developed" } +[package.metadata.release] +tag-prefix = "v" + [depen...
1
3
0
a5e57e873827fa863edd334c4abeb583b2e663bb
CreepySkeleton
2019-08-16T16:27:00
Fix tests
diff --git a/test-crate/tests/macro-errors-multi.rs b/test-crate/tests/macro-errors-multi.rs index 3000487..aa2031d 100644 --- a/test-crate/tests/macro-errors-multi.rs +++ b/test-crate/tests/macro-errors-multi.rs @@ -1,4 +1,3 @@ -extern crate proc_macro_error_test; extern crate trybuild; #[test] diff --git a/test-c...
14
24
26
609236e09852eacdd7b3e70330a3dc6cb8d69bde
CreepySkeleton
2019-08-15T20:15:10
Fix docs and tests
diff --git a/proc-macro-error-test/Cargo.toml b/proc-macro-error-test/Cargo.toml index 2b66ff6..b089aae 100644 --- a/proc-macro-error-test/Cargo.toml +++ b/proc-macro-error-test/Cargo.toml @@ -11,7 +11,7 @@ proc-macro = true proc-macro-error = { path = "../proc-macro-error"} quote = "1" proc-macro2 = "1" -syn = "1" ...
3
3
4
842d134b0439f5c12a208f4a1271195e2bc888a2
CreepySkeleton
2019-08-15T15:35:50
Fix docs
diff --git a/proc-macro-error/src/multi.rs b/proc-macro-error/src/multi.rs index 6a6fc8a..6def239 100644 --- a/proc-macro-error/src/multi.rs +++ b/proc-macro-error/src/multi.rs @@ -3,24 +3,24 @@ //! Unlike [`MacroError`](crate::single::MacroError) type, [`MultiMacroErrors`] **is** //! intended to be used directly by ...
1
5
5
7fb73343211a77ead12add5d252d090ec87f86e8
PMTTS
2019-08-15T13:55:30
Update dependencies to 'v1.*'
diff --git a/proc-macro-error-test/Cargo.toml b/proc-macro-error-test/Cargo.toml index 9f8ab17..e61e216 100644 --- a/proc-macro-error-test/Cargo.toml +++ b/proc-macro-error-test/Cargo.toml @@ -7,13 +7,11 @@ edition = "2018" [lib] proc-macro = true -# See more keys and their definitions at https://doc.rust-lang.org/...
2
7
9
2ce791646de374a0ff14642e66eed3a547e188b6
CreepySkeleton
2019-07-19T02:28:14
God damn doctests
diff --git a/proc-macro-error/src/lib.rs b/proc-macro-error/src/lib.rs index a69a3e2..d56a42c 100644 --- a/proc-macro-error/src/lib.rs +++ b/proc-macro-error/src/lib.rs @@ -16,7 +16,7 @@ //! In `lib.rs`: //! //! -//! ```rust +//! ```rust, ignore //! extern crate proc_macro_error; //! use proc_macro_error::{ //! ...
1
1
1
b09a62a8b2e4043915d047989622b5c9d97a7af9
CreepySkeleton
2019-07-12T18:10:02
Fix docs appearance at cargo.io and docs.rs
diff --git a/Cargo.toml b/Cargo.toml index b0c318f..1a17078 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "proc-macro-error" -version = "0.1.1" +version = "0.1.2" authors = ["CreepySkeleton <creepy-skeleton@yandex.ru>"] description = "Drop-in replacement to panics in proc-macros" diff ...
2
103
1
a45f86db80b3a3699c0e951a67b5b0182c9f7cbe
CreepySkeleton
2019-07-11T07:49:29
Add some metainformation
diff --git a/Cargo.toml b/Cargo.toml index 231388a..ae65c69 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,9 +3,17 @@ name = "proc-macro-error" version = "0.1.0" authors = ["CreepySkeleton <creepy-skeleton@yandex.ru>"] description = "Drop-in replacement to panics in proc-macros" + +repository = "https://github.com/C...
1
9
1
f2c9517c0160fa40aa572097e575fe13b55f126c
Tony Arcieri
2026-03-01T02:04:53
poly1305: add lint configs to `Cargo.toml` (#324) Uses most of the standard lints we've applied elsewhere, with a couple of TODOs
diff --git a/poly1305/Cargo.toml b/poly1305/Cargo.toml index 84ec37c..2378315 100644 --- a/poly1305/Cargo.toml +++ b/poly1305/Cargo.toml @@ -22,9 +22,48 @@ cpufeatures = "0.3" [dev-dependencies] hex-literal = "1" +[lints.rust] +missing_copy_implementations = "warn" +missing_debug_implementations = "warn" +missing_d...
7
78
35
80bbd79be737d3cf51c3c50de0b418574717ee60
Tony Arcieri
2026-02-28T17:45:44
polyval: remove mentions of AVX2 (#318) Followup to #317 which removed any `avx2`-based gating (which was inherited from the original HPCrypt implementation). This renames `intrinsics/avx2.rs` => `intrinsics/x86.rs` since in fact the code has no AVX2 dependencies. It also removes mentions of AVX2 in the code comments...
diff --git a/polyval/src/backend/intrinsics.rs b/polyval/src/backend/intrinsics.rs index 10d4fa5..e373d08 100644 --- a/polyval/src/backend/intrinsics.rs +++ b/polyval/src/backend/intrinsics.rs @@ -2,10 +2,10 @@ use crate::{Block, Key, ParBlocks, Tag, field_element::FieldElement}; -#[cfg_attr(target_arch = "aarch64...
3
7
7
60e01af921bdaa0060bbcc0f1b99f46acd37f382
Tony Arcieri
2026-02-28T16:51:19
polyval: use `avx`+`pclmulqdq` features on `x86`/`x86_64` (#317) Per discussion on #184 and #316, the backend we have for x86/x86_64 isn't actually using AVX2 at all. Enabling `avx2` indirectly enabled `avx`, which allowed rustc/LLVM to emit VPCLMULQDQ instructions. That's all we really want. On Rust 1.89+, there is...
diff --git a/polyval/src/backend/intrinsics/avx2.rs b/polyval/src/backend/intrinsics/avx2.rs index d133141..c52d3a9 100644 --- a/polyval/src/backend/intrinsics/avx2.rs +++ b/polyval/src/backend/intrinsics/avx2.rs @@ -31,7 +31,7 @@ use core::arch::x86_64::*; /// P1 polynomial: x^63 + x^62 + x^57 = 0xC200000000000000 c...
1
12
11
f58c8a68c5e8babfa852fa8d1d8dd78d82feb278
Jeff Witt
2026-02-28T01:00:42
polyval: add `avx2` to runtime CPU feature check (#316) Fixes #315 The `cpufeatures::new!` macro in `avx2.rs` only checks for `pclmulqdq`: cpufeatures::new!(clmul, "pclmulqdq"); But the functions it guards are annotated with both `avx2` and `pclmulqdq`: #[target_feature(enable = "avx2", enable = "pclmulqdq...
diff --git a/polyval/src/backend/intrinsics/avx2.rs b/polyval/src/backend/intrinsics/avx2.rs index e9906e3..d133141 100644 --- a/polyval/src/backend/intrinsics/avx2.rs +++ b/polyval/src/backend/intrinsics/avx2.rs @@ -31,7 +31,7 @@ use core::arch::x86_64::*; /// P1 polynomial: x^63 + x^62 + x^57 = 0xC200000000000000 c...
1
1
1
7acaacd835ad176f6b95988f6c73434f45e3bae2
Tony Arcieri
2026-02-27T16:15:03
Cargo.lock: bump `universal-hash` to v0.6.1 (#313) Release PR: RustCrypto/traits#2326
diff --git a/Cargo.lock b/Cargo.lock index 5902ac1..1c7f48f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -41,6 +41,12 @@ version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801" +[[package]] +name = "cmov" +versio...
1
18
9
7cb6b7129589552b528fb942cbd3ead15e9ea747
Artyom Pavlov
2026-02-27T15:15:11
Use the standard order of the `[package]` section fields (#312) See https://github.com/RustCrypto/meta/issues/22
diff --git a/ghash/Cargo.toml b/ghash/Cargo.toml index c3c6b64..e03717d 100644 --- a/ghash/Cargo.toml +++ b/ghash/Cargo.toml @@ -2,18 +2,18 @@ name = "ghash" version = "0.6.0-rc.6" authors = ["RustCrypto Developers"] +edition = "2024" +rust-version = "1.85" +documentation = "https://docs.rs/ghash" +readme = "README....
3
19
19
1a58f24454d08cc51be197945d62fa52fc22c0e2
Artyom Pavlov
2026-02-27T14:55:38
Use `universal-hash` v0.6.0 (#310)
diff --git a/Cargo.lock b/Cargo.lock index 2611355..5902ac1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4,9 +4,9 @@ version = 4 [[package]] name = "anyhow" -version = "1.0.101" +version = "1.0.102" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f0e0fee31ef5ed1ba1316088939cea399010e...
3
34
40
ac3ea90f8033fad0f985c75819c0b7ed86beb4be
Tony Arcieri
2026-02-10T23:55:46
polyval v0.7.0-rc.9 (#304)
diff --git a/Cargo.lock b/Cargo.lock index 0fd1f35..408753e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -387,7 +387,7 @@ dependencies = [ [[package]] name = "polyval" -version = "0.7.0-rc.8" +version = "0.7.0-rc.9" dependencies = [ "cpubits", "cpufeatures", diff --git a/polyval/Cargo.toml b/polyval/Cargo.toml ...
2
2
2
00c5a18ba847b88c5f354b5ca4d9e27ac7c9537c
Tony Arcieri
2026-02-10T23:44:52
polyval: remove `criterion-cycles-per-byte` (#303) Fixes #302
diff --git a/Cargo.lock b/Cargo.lock index 7973c05..0fd1f35 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -158,16 +158,6 @@ dependencies = [ "walkdir", ] -[[package]] -name = "criterion-cycles-per-byte" -version = "0.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6f82e634fea1e231...
3
1
27
7b223f7db8f069a980793bc7b1dbedcdc9be9f7e
Tony Arcieri
2026-02-10T19:42:55
Cut new prereleases (#300) Releases the following: - `ghash` v0.6.0-rc.6 - `poly1305` v0.9.0-rc.6 - `polyval` v0.7.0-rc.8
diff --git a/Cargo.lock b/Cargo.lock index 62833ad..7973c05 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -260,7 +260,7 @@ dependencies = [ [[package]] name = "ghash" -version = "0.6.0-rc.5" +version = "0.6.0-rc.6" dependencies = [ "hex-literal", "polyval", @@ -387,7 +387,7 @@ dependencies = [ [[package]] na...
5
10
8
2d58e61aac9b97fd3524eb392c8010aa1ca29927
Tony Arcieri
2026-02-10T19:03:32
polyval: unify state for intrinsics backends (#299) Instead of having each intrinsics backend (i.e. `avx2`, `neon`) define its own `State`, this defines a single `ExpandedKey` struct that can be shared between both intrinsics backends and a fallback software implementation, all defined in terms of `FieldElement`, as w...
diff --git a/polyval/src/backend.rs b/polyval/src/backend.rs index d35f9da..b295e50 100644 --- a/polyval/src/backend.rs +++ b/polyval/src/backend.rs @@ -1,23 +1,13 @@ -mod soft; - cpubits::cfg_if! { - if #[cfg(all(target_arch = "aarch64", not(polyval_backend = "soft")))] { - // PMULL/NEON backend for aarch64...
9
617
682
48e5f64e93e652232a97330befeaa1430936e108
Tony Arcieri
2026-02-09T15:34:27
polyval: bump `cpubits` to v0.1 (#298) Release PR: RustCrypto/utils#1444
diff --git a/polyval/Cargo.toml b/polyval/Cargo.toml index 523e0eb..23be17a 100644 --- a/polyval/Cargo.toml +++ b/polyval/Cargo.toml @@ -19,7 +19,7 @@ edition = "2024" hazmat = [] [dependencies] -cpubits = "0.1.0-rc.2" +cpubits = "0.1" universal-hash = { version = "0.6.0-rc.10", default-features = false } zeroize...
1
1
1
bcbc1c8dd5cc342bf5bdfd91b0af0c0739719a62
Tony Arcieri
2026-02-09T00:12:00
polyval: factor `polyval::mulx` => `FieldElement::mulx` (#296) Makes `mulx` a method of `FieldElement` which returns another `FieldElement`.
diff --git a/Cargo.toml b/Cargo.toml index 3464997..81b90c7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,3 +5,6 @@ members = [ "polyval" ] resolver = "2" + +[patch.crates-io] +polyval = { path = "./polyval" } diff --git a/ghash/Cargo.toml b/ghash/Cargo.toml index 40bed23..e66a315 100644 --- a/ghash/Cargo.toml ...
6
49
40
55749955953de57927489794b8c8e3f1a1c5987a
Tony Arcieri
2026-02-08T23:16:17
polyval: refactor `FieldElement::karatsuba_mul` (#295) Implements Karatsuba as a private method on `FieldElement` which returns a 256-bit `Product` type, which can either be `BitXor`'d together, or reduced back into a 128-bit `FieldElement`. This should make it easier for the software backend to implement Karatsuba +...
diff --git a/polyval/src/field_element.rs b/polyval/src/field_element.rs index 5f726ef..497e2c3 100644 --- a/polyval/src/field_element.rs +++ b/polyval/src/field_element.rs @@ -149,8 +149,7 @@ impl Mul for FieldElement { /// Perform carryless multiplication within POLYVAL's field modulo its polynomial. #[inli...
3
191
165
fed0f155d2c3848e3a63fd89a1a6c8cb9729533d
Tony Arcieri
2026-02-07T22:58:33
polyval: use `criterion` for benchmarking (#293) I would like to be able to carefully benchmark when implementing #290, especially to compare implementations, and utilize `criterion`'s cycle-accurate benchmarks and throughput estimation.
diff --git a/Cargo.lock b/Cargo.lock index 9023e08..fe99722 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2,6 +2,27 @@ # It is not intended for manual editing. version = 4 +[[package]] +name = "aho-corasick" +version = "1.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ddd31a13042...
3
481
26
2371f67afa627343f9212463fbdfadd29084666d
Tony Arcieri
2026-02-07T22:33:41
Bump `cpufeatures` to v0.3 (#292) Release PR: RustCrypto/utils#1446
diff --git a/Cargo.lock b/Cargo.lock index 2372ae2..9023e08 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -43,9 +43,9 @@ checksum = "11a8c0210fa48ba3ea04ac1e9c6e72ae66009db3b1f1745635d4ff2e58eaadd0" [[package]] name = "cpufeatures" -version = "0.2.17" +version = "0.3.0" source = "registry+https://github.com/rust-lan...
3
4
4
bb3b13b4296e83e15868596f54a8b5732f165c9a
Tony Arcieri
2026-02-07T21:20:44
ghash: base degree of parallelism on `polyval` (#291) We currently choose a value of 1 for the software backend, or 8 if we're using intrinsics, where the latter can best exploit the powers-of-H optimization (or going forward, the R/F algorithm in #290). The "parallelism" here represents the number of blocks we proce...
diff --git a/ghash/src/lib.rs b/ghash/src/lib.rs index 4d33593..6ae3b5a 100644 --- a/ghash/src/lib.rs +++ b/ghash/src/lib.rs @@ -8,7 +8,7 @@ pub use polyval::universal_hash; -use polyval::PolyvalGeneric; +use polyval::{DEFAULT_PARALLELISM, PolyvalGeneric}; use universal_hash::{ KeyInit, UhfBackend, UhfClosur...
2
14
15
6433e64d6de3e0e14f844430b7196c97becb7172
Tony Arcieri
2026-02-06T17:16:04
Revert "polyval: const generic `pmull` wrapper" (#289) This reverts commit 903328ef074199bc1463c02d0131c08d842df05f (#288) While #288 slimmed two functions down to one, the `pmull2` name maps naturally to the instruction and is probably clearer
diff --git a/polyval/src/field_element/armv8.rs b/polyval/src/field_element/armv8.rs index b2e5b9b..483ceab 100644 --- a/polyval/src/field_element/armv8.rs +++ b/polyval/src/field_element/armv8.rs @@ -109,12 +109,12 @@ unsafe fn karatsuba1(x: Simd128, y: Simd128) -> (Simd128, Simd128, Simd128) { // M ...
1
18
8
903328ef074199bc1463c02d0131c08d842df05f
Tony Arcieri
2026-02-03T07:09:39
polyval: const generic `pmull` wrapper (#288) Consolidates `pmull` and `pmull2` using a const generic parameter which specifies which 64-bit lane in a 128-bit SIMD register to select
diff --git a/polyval/src/field_element/armv8.rs b/polyval/src/field_element/armv8.rs index 483ceab..b2e5b9b 100644 --- a/polyval/src/field_element/armv8.rs +++ b/polyval/src/field_element/armv8.rs @@ -109,12 +109,12 @@ unsafe fn karatsuba1(x: Simd128, y: Simd128) -> (Simd128, Simd128, Simd128) { // M ...
1
8
18
cca62c0e430f9f90e21159633fbc716e73d7df19
Tony Arcieri
2026-02-03T07:05:48
polyval: get rid of `transmute` (#287) Use the appropriate reinterpret op
diff --git a/polyval/src/field_element/armv8.rs b/polyval/src/field_element/armv8.rs index 658d7cd..483ceab 100644 --- a/polyval/src/field_element/armv8.rs +++ b/polyval/src/field_element/armv8.rs @@ -18,7 +18,7 @@ use super::FieldElement; use crate::Block; -use core::{arch::aarch64::*, mem}; +use core::arch::aarch...
1
3
3
700ca3b37ee54422d55742f20476097ecf4f85ad
Tony Arcieri
2026-02-02T18:40:10
Bump `universal-hash` dependency to v0.6.0-rc.10 (#285) Also cuts the following releases: - `ghash` v0.6.0-rc.5 - `poly1305` v0.9.0-rc.5 - `polyval` v0.7.0-rc.7
diff --git a/Cargo.lock b/Cargo.lock index d56afec..cc0d473 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -52,9 +52,9 @@ dependencies = [ [[package]] name = "crypto-common" -version = "0.2.0-rc.13" +version = "0.2.0-rc.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c7722afd27468475...
4
13
13
cfdc69b4b94ceba8a38dfee8bc072439c98d3c34
Tony Arcieri
2026-02-01T23:35:42
polyval: bump `cpubits` to v0.1.0-rc.2 (#283) This adds `cfg(cpubits = "...")` support
diff --git a/Cargo.lock b/Cargo.lock index 8a94539..d56afec 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -37,9 +37,9 @@ checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801" [[package]] name = "cpubits" -version = "0.1.0-rc.1" +version = "0.1.0-rc.2" source = "registry+https://github.com/rus...
2
7
4
815ddc90ea652b09804565e193e34784c94a3849
Tony Arcieri
2026-01-28T01:35:31
Cut new prereleases (#282) Releases the following (which all now use `universal_hash::common`): - `ghash` v0.6.0-rc.4 - `poly1305` v0.9.0-rc.4 - `polyval` v0.7.0-rc.6
diff --git a/Cargo.lock b/Cargo.lock index e24a4f2..8a94539 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -95,7 +95,7 @@ dependencies = [ [[package]] name = "ghash" -version = "0.6.0-rc.3" +version = "0.6.0-rc.4" dependencies = [ "hex-literal", "polyval", @@ -146,7 +146,7 @@ checksum = "42f5e15c9953c5e4ccceeb2e7...
4
7
7
d4ad8b0a821e340f173aa5dacda00568c7d69ded
Tony Arcieri
2026-01-28T01:21:56
polyval: implement powers-of-H for `soft` backend (#281) Loops over the input blocks performing `karatsuba` using powers-of-H and accumulating a wide product (in normal and bit-reversed form), then performing a final `mont_reduce`. This avoids performing a `mont_reduce` on each block (although to be fair, it just per...
diff --git a/Cargo.lock b/Cargo.lock index fbe5f71..e24a4f2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2,6 +2,39 @@ # It is not intended for manual editing. version = 4 +[[package]] +name = "autocfg" +version = "1.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c08606f8c3cbf4ce...
9
422
58
5621d539858fe6ebb7dd09c63a8844b895510d6b
Tony Arcieri
2026-01-27T19:40:12
polyval v0.7.0-rc.5 (#280)
diff --git a/Cargo.lock b/Cargo.lock index bbc3119..fbe5f71 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -68,7 +68,7 @@ dependencies = [ [[package]] name = "polyval" -version = "0.7.0-rc.4" +version = "0.7.0-rc.5" dependencies = [ "cpubits", "cpufeatures", diff --git a/polyval/Cargo.toml b/polyval/Cargo.toml in...
2
2
2
214aabb459c00dc047424d368a5452c4e276ed47
Tony Arcieri
2026-01-27T19:03:35
polyval: simplify intrinsics detection (#278)
diff --git a/polyval/src/field_element.rs b/polyval/src/field_element.rs index 8c275fa..6004900 100644 --- a/polyval/src/field_element.rs +++ b/polyval/src/field_element.rs @@ -37,7 +37,7 @@ cfg_if! { // aarch64 mod autodetect; mod armv8; - pub(crate) use autodetect::{InitToken, has_in...
3
7
8
cb02fa624dec509877dae30e6eb1cca9532813e7
Tony Arcieri
2026-01-27T18:36:41
polyval: use intrinsics when computing powers of `H` (#277) The only time we actually use powers-of-`H` is when we have intrinsics anyway, so we might as well make use of the intrinsics when computing them. This factors the computation into the `autodetect` module with autodetection support and a fallback to a stub i...
diff --git a/polyval/src/field_element.rs b/polyval/src/field_element.rs index a42913f..8c275fa 100644 --- a/polyval/src/field_element.rs +++ b/polyval/src/field_element.rs @@ -37,7 +37,7 @@ cfg_if! { // aarch64 mod autodetect; mod armv8; - pub(crate) use autodetect::{InitToken, detect...
4
53
31
7312cc8db20b3e951c48c03e449aee9523038f2e
Tony Arcieri
2026-01-27T18:09:32
polyval: consolidate single `PolyvalGeneric` struct (#276) Consolidates the many (nested, via unions!) repeated `Polyval` structs found throughout the crate for each backend into a single `Polyval(Generic)` struct which imlements the `universal-hash` interface in a single place. `FieldElement` now defers decoding int...
diff --git a/polyval/benches/polyval.rs b/polyval/benches/polyval.rs index 6d613e4..bea9fc9 100644 --- a/polyval/benches/polyval.rs +++ b/polyval/benches/polyval.rs @@ -4,10 +4,7 @@ extern crate test; -use polyval::{ - Polyval, - universal_hash::{KeyInit, UniversalHash}, -}; +use polyval::{Polyval, universal...
8
400
545
611b691eb4cad3d90f23e23c610b0acc0adac035
Tony Arcieri
2026-01-27T01:37:15
polyval: have `soft` use `FieldElement` operands (#275) Changes the operands and reduction return type to `FieldElement`, so the caller doesn't need to use `Into`
diff --git a/polyval/src/field_element.rs b/polyval/src/field_element.rs index e8e4492..b7ce940 100644 --- a/polyval/src/field_element.rs +++ b/polyval/src/field_element.rs @@ -142,9 +142,10 @@ impl Add for FieldElement { impl Mul for FieldElement { type Output = Self; + #[inline] fn mul(self, rhs: Self...
4
49
60
b79b7afdb91148ed96ff3efa102b4385d65e092d
Tony Arcieri
2026-01-27T00:47:09
polyval: move `powers_of_h` to `FieldElement` (#274) We now have a common type to define it on, rather than using a generic implementation
diff --git a/polyval/src/field_element.rs b/polyval/src/field_element.rs index 951ad6f..e8e4492 100644 --- a/polyval/src/field_element.rs +++ b/polyval/src/field_element.rs @@ -5,7 +5,7 @@ mod soft; use crate::{BLOCK_SIZE, Block}; use core::fmt; use core::fmt::Debug; -use core::ops::{Add, Mul}; +use core::ops::{Add,...
4
34
36
14a73bd707c0d99c226fee03f302dc39e2136056
Tony Arcieri
2026-01-27T00:06:35
polyval: rename `backend` module => `field_element` (#273) It's now the home of the `FieldElement` struct, the common representation of all of our `Polyval` impls, and the backends are now just backends of our field element implementation. Additionally renames the following submodules of `field_element` named after t...
diff --git a/polyval/src/backend.rs b/polyval/src/field_element.rs similarity index 92% rename from polyval/src/backend.rs rename to polyval/src/field_element.rs index d3c5234..951ad6f 100644 --- a/polyval/src/backend.rs +++ b/polyval/src/field_element.rs @@ -1,4 +1,4 @@ -//! POLYVAL backends +//! POLYVAL field element...
9
17
16
2d1f167b067e07fdbc86318609c4152846587166
Tony Arcieri
2026-01-26T16:02:29
polyval: use `FieldElement` as common internal representation (#272) Continued work towards consolidating and simplifying the implementation. This uses a simple `[u8; 16]` as the internal representation, effectively deferring the decoding step to SIMD registers, which has been moved to a `From<FieldElement>` impl for...
diff --git a/polyval/src/backend.rs b/polyval/src/backend.rs index 4a76026..d3c5234 100644 --- a/polyval/src/backend.rs +++ b/polyval/src/backend.rs @@ -2,8 +2,15 @@ mod soft; +use crate::{BLOCK_SIZE, Block}; +use core::fmt; +use core::fmt::Debug; +use core::ops::{Add, Mul}; use cpubits::cfg_if; +#[cfg(feature ...
7
248
223
53f9e2c5b2c61f80ab01560134a0e2b7a211d2b9
Tony Arcieri
2026-01-25T18:43:20
polyval: DRY out `bmul*` mask calculation (#271) It can be calculated from a single value
diff --git a/polyval/src/backend/soft.rs b/polyval/src/backend/soft.rs index 25693d8..3982f40 100644 --- a/polyval/src/backend/soft.rs +++ b/polyval/src/backend/soft.rs @@ -16,7 +16,7 @@ use crate::{BLOCK_SIZE, Block, Key, Tag}; use core::{ fmt::{self, Debug}, num::Wrapping, - ops::{Add, BitAnd, BitOr, Bi...
3
12
18
2dfb81e0c1eb597ee5743d053185177635255d6b
Tony Arcieri
2026-01-25T17:23:17
polyval v0.7.0-rc.4 (#269)
diff --git a/Cargo.lock b/Cargo.lock index 5f0d23c..bbc3119 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -68,7 +68,7 @@ dependencies = [ [[package]] name = "polyval" -version = "0.7.0-rc.3" +version = "0.7.0-rc.4" dependencies = [ "cpubits", "cpufeatures", diff --git a/polyval/Cargo.toml b/polyval/Cargo.toml in...
2
2
2
e40e2dcc119f926e119374cafc03095b0137b35a
Tony Arcieri
2026-01-25T17:18:27
polyval: soft backend cleanups (#268)
diff --git a/polyval/src/backend/soft.rs b/polyval/src/backend/soft.rs index 34b19bb..1ccba84 100644 --- a/polyval/src/backend/soft.rs +++ b/polyval/src/backend/soft.rs @@ -190,11 +190,8 @@ impl Add for FieldElement { /// /// In POLYVAL's field, addition is the equivalent operation to XOR. #[inline] - ...
3
16
19
32f19176e67660e908cda6ec6a3bf56ff6ea5ede
Tony Arcieri
2026-01-25T16:52:31
polyval: extract common `FieldElement` type for soft backend (#267) Reduces duplication between `soft32` and `soft64` by sharing a common `FieldElement` type between the two implementations.
diff --git a/polyval/Cargo.toml b/polyval/Cargo.toml index 790c24b..9b4d445 100644 --- a/polyval/Cargo.toml +++ b/polyval/Cargo.toml @@ -64,6 +64,7 @@ semicolon_if_nothing_returned = "warn" trivially_copy_pass_by_ref = "warn" std_instead_of_alloc = "warn" std_instead_of_core = "warn" +suspicious_arithmetic_impl = "a...
4
304
323
111662e04142b7f3ad8d3aba455115c08cb228d3
Tony Arcieri
2026-01-25T15:28:54
polyval: DRY out `bmul32`/`bmul64` (#266) These functions for performing word-sized carryless multiplication are identical between the 32-bit and 64-bit backends aside from the `u32` and `u64` difference (and the respective sizes of the mask constants). This commit combines them into a generic implementation the two ...
diff --git a/polyval/src/backend/soft.rs b/polyval/src/backend/soft.rs index a96a9e0..cba9946 100644 --- a/polyval/src/backend/soft.rs +++ b/polyval/src/backend/soft.rs @@ -13,6 +13,10 @@ cpubits::cpubits! { } use crate::{Block, Key, Tag}; +use core::{ + num::Wrapping, + ops::{BitAnd, BitOr, BitXor, Mul}, +};...
3
53
64
956cbc327dacd110fa4dc0a3b7bfcd4401a70a67
Tony Arcieri
2026-01-25T04:00:23
Bump `universal-hash` to v0.6.0-rc.8 (#265) Makes use of the `universal_hash::common` re-export. It seems like the deprecation of `universal_hash::crypto_common` isn't working, though.
diff --git a/Cargo.lock b/Cargo.lock index 8e7f398..5f0d23c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -91,9 +91,9 @@ checksum = "562d481066bde0658276a35467c4af00bdc6ee726305698a55b86e61d7ad82bb" [[package]] name = "universal-hash" -version = "0.6.0-rc.7" +version = "0.6.0-rc.8" source = "registry+https://github....
15
16
16
ff2c1725935d778f225ee05cd85ba5ca9289359a
Tony Arcieri
2026-01-25T03:36:55
polyval: refactor soft backend (#264) This is mostly cosmetic changes that refactor and clean up the portable pure Rust implementations of POLYVAL we provide. It extracts `karatsuba` and `mont_reduce` functions similar to the other backends (though those decompose Karatsuba into two steps, which is hard to do here du...
diff --git a/polyval/src/backend/soft/soft32.rs b/polyval/src/backend/soft/soft32.rs index 3bab66c..b9e4d00 100644 --- a/polyval/src/backend/soft/soft32.rs +++ b/polyval/src/backend/soft/soft32.rs @@ -71,56 +71,14 @@ impl FieldElement { block } -} - -impl From<u128> for FieldElement { - fn from(x: u1...
2
192
157
a56f53ae6558576f3620132c35d5c81efc5aff7d
Tony Arcieri
2026-01-24T19:50:45
Bump `universal-hash` to v0.6.0-rc.7 (#262)
diff --git a/Cargo.lock b/Cargo.lock index 450f8cf..8e7f398 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -19,9 +19,9 @@ dependencies = [ [[package]] name = "crypto-common" -version = "0.2.0-rc.12" +version = "0.2.0-rc.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a6dcdb44f2c3ee25...
3
6
6
12273a92a820be252e7b80fdaf5f1b628e087ebe
Tony Arcieri
2026-01-23T22:03:56
polyval: fix spelling: "Paramaterized" => "Parameterized"
diff --git a/polyval/src/backend/autodetect.rs b/polyval/src/backend/autodetect.rs index cbc4bd4..8eabf55 100644 --- a/polyval/src/backend/autodetect.rs +++ b/polyval/src/backend/autodetect.rs @@ -25,7 +25,7 @@ cpufeatures::new!(mul_intrinsics, "pclmulqdq"); /// **POLYVAL**: GHASH-like universal hash over GF(2^128)....
4
4
4
ed81a2ddb72fb89a7044b3f0ace2f5a663db9484
Tony Arcieri
2026-01-23T18:41:40
polyval: use `cpubits` crate for `soft` backend selection (#261) We provide both 32-bit and 64-bit pure Rust implementations of POLYVAL in `soft32.rs` and `soft64.rs`. This commit addresses a TODO to use the `cpubits` crate to select between them. It contains equivalent 64-bit overrides to what we already had, but a...
diff --git a/Cargo.lock b/Cargo.lock index 31fa6cc..450f8cf 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3,10 +3,10 @@ version = 4 [[package]] -name = "cfg-if" -version = "1.0.4" +name = "cpubits" +version = "0.1.0-rc.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9330f8b2ff13f345...
4
16
26
caaec95896d52456e3abb5794aeb9f80c02d0d78
Tony Arcieri
2026-01-22T21:51:54
polyval: replace `polyval_force_soft` with `polyval_backend="soft"` (#259) This is more extensible if we want to add other customizable overrides in the future. e.g. I think it'd be pretty easy to add a NEON backend but it would be cool if I could test it by doing: RUSTFLAGS='--cfg polyval_backend="neon"' cargo ...
diff --git a/polyval/Cargo.toml b/polyval/Cargo.toml index a5c3363..8b133bc 100644 --- a/polyval/Cargo.toml +++ b/polyval/Cargo.toml @@ -28,7 +28,7 @@ hex-literal = "1" [lints.rust.unexpected_cfgs] level = "warn" -check-cfg = ["cfg(polyval_force_soft)"] +check-cfg = ['cfg(polyval_backend, values("soft"))'] [pack...
2
3
3
f25e21436ecfb4f359850a47acb7ff1272531a09
Tony Arcieri
2026-01-22T15:22:05
polyval: use `u32/u64::reverse_bits` instead of handrolled version (#258) Rust has an implementation of bit reversal backed by LLVM intrinsics. Inspecting the lowerings on a few architectures in Godbolt, there is often a native CPU instruction for this operation.
diff --git a/polyval/src/backend/soft/soft32.rs b/polyval/src/backend/soft/soft32.rs index b4bca40..d80e850 100644 --- a/polyval/src/backend/soft/soft32.rs +++ b/polyval/src/backend/soft/soft32.rs @@ -19,7 +19,7 @@ //! for all values x and y, we have: //! //! ```text -//! rev32(x) * rev32(y) = rev64(x * y) +//! x.re...
2
25
39
899fbac918240f163e71207a9d6a00c5a47e3029
Tony Arcieri
2025-12-28T00:08:26
Bump `universal-hash` dependency to v0.6.0-rc.4 (#254)
diff --git a/Cargo.lock b/Cargo.lock index 4efd602..e459d86 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -19,9 +19,9 @@ dependencies = [ [[package]] name = "crypto-common" -version = "0.2.0-rc.5" +version = "0.2.0-rc.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "919bd05924682a5480...
3
6
6
f60e4a055bc8995b6a1c7a6de8413ab170104935
Tony Arcieri
2025-11-05T18:29:28
Cut rc.3 prereleases (#250) Releases the following: - `ghash` v0.6.0-rc.3 - `poly1305` v0.9.0-rc.3 - `polyval` v0.7.0-rc.3
diff --git a/Cargo.lock b/Cargo.lock index 347ed00..08c69ea 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -28,7 +28,7 @@ dependencies = [ [[package]] name = "ghash" -version = "0.6.0-rc.2" +version = "0.6.0-rc.3" dependencies = [ "hex-literal", "polyval", @@ -58,7 +58,7 @@ checksum = "2874a2af47a2325c2001a6e6fad...
4
7
7
9d2e38f4bfffdccf56dcee0f56045cf11c92396e
Tony Arcieri
2025-11-05T18:07:13
Bump `universal-hash` dependency to v0.6.0-rc.3 (#249)
diff --git a/Cargo.lock b/Cargo.lock index ded56d1..347ed00 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -19,9 +19,9 @@ dependencies = [ [[package]] name = "crypto-common" -version = "0.2.0-rc.4" +version = "0.2.0-rc.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a8235645834fbc683...
3
6
6
b515eddf58041dd0eb5a6b1c0758caedbd1a4b54
Tony Arcieri
2025-10-15T14:24:31
polyval: refactor field element encoding/decoding; add tests (#247) Instead of using `From` impls, uses an inherent method that reflects the endianness of the input, so big endian support can be added later
diff --git a/polyval/src/backend/soft.rs b/polyval/src/backend/soft.rs index 232cc6a..7d5b752 100644 --- a/polyval/src/backend/soft.rs +++ b/polyval/src/backend/soft.rs @@ -54,7 +54,7 @@ impl<const N: usize> Polyval<N> { /// Initialize POLYVAL with the given `H` field element and initial block pub fn new_with...
3
48
44
f61edbb1cd1fd3c5a86c78ceaa2de1f3c33cfbf1
Артём Павлов [Artyom Pavlov]
2025-10-15T13:36:07
Update Cargo.lock
diff --git a/Cargo.lock b/Cargo.lock index 13afabf..c7d9c57 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4,9 +4,9 @@ version = 4 [[package]] name = "cfg-if" -version = "1.0.3" +version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2fd1289c04a9ea8cb22300a459a72a385d7c73d325...
1
8
8
3369a6fd75541a78e58ce158778ad5fee62b38f5
Tony Arcieri
2025-10-15T13:27:48
polyval: refactor and improve `soft` backend (#245) - Adds an intermediate `soft` module which can hold the common parts of the 32-bit and 64-bit implementations - Uses the 64-bit backend on ARMv7 and WASM - Uses `FieldElement` as the name of the backend-specific inner type, and makes the `universal-hash` trait impls ...
diff --git a/polyval/src/backend.rs b/polyval/src/backend.rs index b1a6c9c..6547d18 100644 --- a/polyval/src/backend.rs +++ b/polyval/src/backend.rs @@ -1,7 +1,5 @@ //! POLYVAL backends -#[cfg_attr(not(target_pointer_width = "64"), path = "backend/soft32.rs")] -#[cfg_attr(target_pointer_width = "64", path = "backend...
4
170
191
1760c375406523a7ee1242e877e03e117a0f56e4
Tony Arcieri
2025-10-15T12:47:45
polyval: switch from `doc_auto_cfg` to `doc_cfg` (#244) See RustCrypto/traits#2028
diff --git a/polyval/Cargo.toml b/polyval/Cargo.toml index 2b4faec..3f3824c 100644 --- a/polyval/Cargo.toml +++ b/polyval/Cargo.toml @@ -32,4 +32,3 @@ check-cfg = ["cfg(polyval_force_soft)"] [package.metadata.docs.rs] all-features = true -rustdoc-args = ["--cfg", "docsrs"] diff --git a/polyval/src/lib.rs b/polyval/...
2
1
2
0c9ed31f48ddfeda8d023c287293521e2d1d90b7
Tony Arcieri
2025-09-03T03:24:48
Cut prereleases with `hybrid-array` v0.4 support (#241) Releases the following: - `poly1305` v0.9.0-rc.2 - `polyval` v0.7.0-rc.2 - `ghash` v0.6.0-rc.2
diff --git a/Cargo.lock b/Cargo.lock index 6010361..6fec393 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -58,7 +58,7 @@ checksum = "6a82ae493e598baaea5209805c49bbf2ea7de956d50d7da0da1164f9c6d28543" [[package]] name = "poly1305" -version = "0.9.0-rc.1" +version = "0.9.0-rc.2" dependencies = [ "cpufeatures", "hex...
4
5
5
7c92c1557621686af14b365083473629bf55fda3
Tony Arcieri
2025-09-02T21:21:58
Bump `universal-hash` to v0.6.0-rc.2 (#240)
diff --git a/Cargo.lock b/Cargo.lock index e6bb079..6010361 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -19,15 +19,16 @@ dependencies = [ [[package]] name = "crypto-common" -version = "0.2.0-rc.3" -source = "git+https://github.com/RustCrypto/traits#b91704f633a83798c1ba89f908cff067ddc7d843" +version = "0.2.0-rc.4" +...
5
9
12
55f7d5b371ad23dc9a78c40d2e473ec1ed1ea596
Tony Arcieri
2025-09-02T03:11:30
Bump `hybrid-array` to v0.4 (#239)
diff --git a/Cargo.lock b/Cargo.lock index db4f6f6..e6bb079 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -20,8 +20,7 @@ dependencies = [ [[package]] name = "crypto-common" version = "0.2.0-rc.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a23fa214dea9efd4dacee5a5614646b30216ae0f05d...
3
14
11
b28ccddec0c3d98d967d59b5c0d09490c16aaba5
Артём Павлов [Artyom Pavlov]
2025-08-21T08:58:51
Update Cargo.lock
diff --git a/Cargo.lock b/Cargo.lock index 1d5eb7f..db4f6f6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4,9 +4,9 @@ version = 4 [[package]] name = "cfg-if" -version = "1.0.1" +version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9555578bc9e57714c812a1f84e4fc5b4d21fcb0634...
1
6
6
6879fe48d702fd16d06887fe02bc2d1757b43cbf
Tony Arcieri
2025-05-30T15:18:16
Bump `universal-hash` dependency to v0.6.0-rc.1 (#234) Also cuts new releases of all crates
diff --git a/Cargo.lock b/Cargo.lock index 503dd4f..b41e411 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -19,15 +19,16 @@ dependencies = [ [[package]] name = "crypto-common" -version = "0.2.0-rc.2" -source = "git+https://github.com/RustCrypto/traits#f8aa068be3e64ba8970107042f21605b237754ac" +version = "0.2.0-rc.3" +...
5
15
16
3a374a37fdc5b6bdeaf6f92b560692678a6a6c0a
Tony Arcieri
2025-05-30T15:02:36
Remove `opaque-debug` dependencies (#233)
diff --git a/Cargo.lock b/Cargo.lock index 19f2538..503dd4f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -55,19 +55,12 @@ version = "0.2.170" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "875b3680cb2f8f71bdcf9a30f38d48282f5d3c95cbf9b3fa57269bb5d5c06828" -[[package]] -name = "opaque-deb...
4
6
11
f62dffd2605a82b183ca6badbab5418625bc3b32
Tony Arcieri
2025-05-30T14:46:36
polyval: use `doc_auto_cfg` (#231)
diff --git a/polyval/src/lib.rs b/polyval/src/lib.rs index ec07914..b9ece38 100644 --- a/polyval/src/lib.rs +++ b/polyval/src/lib.rs @@ -71,7 +71,7 @@ //! [RFC 8452 Appendix A]: https://tools.ietf.org/html/rfc8452#appendix-A #![no_std] -#![cfg_attr(docsrs, feature(doc_cfg))] +#![cfg_attr(docsrs, feature(doc_auto_cf...
1
1
1
5abf22026f9ae8c02abeb468df3f05c0d32b9190
Nick Mathewson
2025-05-16T21:04:06
polyval+ghash: large performance improvements via better ILP (#230) This MR adapts code from @ericlagergren with permission (see #225) to speed up `polyval` and `ghash` using instruction level parallelism. I expect there are still some performance gains to be had, but this is already fairly well improved: I'm seeing ...
diff --git a/Cargo.lock b/Cargo.lock index 7febd6f..19f2538 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -30,7 +30,6 @@ name = "ghash" version = "0.6.0-rc.0" dependencies = [ "hex-literal", - "opaque-debug", "polyval", "zeroize", ] diff --git a/ghash/Cargo.toml b/ghash/Cargo.toml index 8e3cc0c..a61555a 100644 -...
12
485
172
802b40974a08bbd2663c63780fc87a23ee931868
Thomas Coratger
2024-12-16T06:25:23
polyval: introduce POLY constant in the pmull backend (#223)
diff --git a/polyval/src/backend/pmull.rs b/polyval/src/backend/pmull.rs index 0c9eb53..ff43314 100644 --- a/polyval/src/backend/pmull.rs +++ b/polyval/src/backend/pmull.rs @@ -21,6 +21,9 @@ use universal_hash::{ use crate::{Block, Key, Tag}; +/// Montgomery reduction polynomial +const POLY: u128 = (1 << 127) | (1...
1
4
1