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 |
|---|---|---|---|---|---|---|---|
e529bcb287bb7216790b7f501ba57abc20ae6f9a | Steven Sheldon | 2015-01-31T17:57:56 | Use deref instead of as_slice. | diff --git a/src/lib.rs b/src/lib.rs
index 084c829..647afc7 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -4,6 +4,7 @@ extern crate libc;
use std::ffi;
use std::mem;
+use std::ops::Deref;
use std::ptr;
use std::slice;
use std::str;
@@ -38,7 +39,7 @@ impl<T> MallocBuffer<T> {
impl<T> Drop for MallocBuffer<T> {
... | 1 | 11 | 6 |
e35290e2e9000a28cf85fa92bd45a5404c9b6fdb | Steven Sheldon | 2015-01-30T08:44:35 | Updated features for the latest rust. | diff --git a/src/lib.rs b/src/lib.rs
index 8cf2da2..084c829 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,5 +1,4 @@
-#![feature(unsafe_destructor)]
-#![allow(unstable)]
+#![feature(core, std_misc, unsafe_destructor)]
extern crate libc;
@@ -90,7 +89,7 @@ impl MallocString {
impl Str for MallocString {
fn a... | 1 | 2 | 3 |
068b2178b1d08557a5506c489c92551ce4da8020 | Steven Sheldon | 2015-01-17T21:46:45 | Added crate metadata and bumped to 0.0.1. | diff --git a/Cargo.toml b/Cargo.toml
index a43e20c..2e7e76a 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,7 +1,12 @@
[package]
name = "malloc_buf"
-version = "0.0.0"
+version = "0.0.1"
authors = ["Steven Sheldon"]
+description = "Structs for handling malloc'd memory passed to Rust."
+repository = "https://github.... | 1 | 6 | 1 |
97c78243ed4acf31895a09909a036d7c26eee2e2 | Steven Sheldon | 2015-01-17T21:09:54 | Drop MallocBuffer's items in drop. | diff --git a/src/lib.rs b/src/lib.rs
index 9d45aca..8cf2da2 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -5,6 +5,7 @@ extern crate libc;
use std::ffi;
use std::mem;
+use std::ptr;
use std::slice;
use std::str;
use libc::{c_char, c_void};
@@ -19,12 +20,12 @@ impl<T> MallocBuffer<T> {
/// Constructs a new `Mal... | 1 | 8 | 4 |
acb164f4fe9619cbb6845627cf0931f169317d15 | Artyom Pavlov | 2026-03-30T17:33:08 | rc4: refactor tests (#556) | diff --git a/rc4/tests/lib.rs b/rc4/tests/lib.rs
index 2327a8c..d038ca3 100644
--- a/rc4/tests/lib.rs
+++ b/rc4/tests/lib.rs
@@ -1,599 +1,402 @@
+//! Test vectors from RFC 6229:
//! https://datatracker.ietf.org/doc/html/rfc6229#section-2
-#![allow(deprecated)] // uses `from_slice`
-
+use cipher::array::{Array, Array... | 1 | 329 | 526 |
bfa1f344bff8429938ad0dc7c6b65f926dcf1f90 | David Cook | 2026-03-04T22:44:16 | chacha20: miscellaneous cleanups (#550)
* Fixes an inaccuracy in the `get_word_pos()` documentation.
* Use `add()` instead of `offset()` on a pointer (when the offset is
always positive) to resolve an ignored Clippy lint.
* Replace a literal `16` with the `BLOCK_WORDS` constant.
* Rewrites a copy-pasted section of a u... | diff --git a/chacha20/src/backends/neon.rs b/chacha20/src/backends/neon.rs
index 8f27963..279e87a 100644
--- a/chacha20/src/backends/neon.rs
+++ b/chacha20/src/backends/neon.rs
@@ -180,10 +180,9 @@ impl<R: Rounds, V: Variant> StreamCipherBackend for Backend<R, V> {
}
// write blocks to... | 4 | 10 | 10 |
e65dd16077f1fc5340cea00a6d25f6c4285db6af | Shun Sakai | 2026-03-03T10:06:33 | hc-256: tweak docs for `Hc256` and `Hc256Core` (#548) | diff --git a/hc-256/src/lib.rs b/hc-256/src/lib.rs
index 678242b..8e9d214 100644
--- a/hc-256/src/lib.rs
+++ b/hc-256/src/lib.rs
@@ -78,10 +78,10 @@ const KEY_WORDS: usize = KEY_BITS / 32;
const IV_BITS: usize = 256;
const IV_WORDS: usize = IV_BITS / 32;
-/// The HC-256 stream cipher core
+/// The HC-256 stream cip... | 1 | 2 | 2 |
023c0bab130b9c871fbafb532a28f14b5a85aa95 | Artyom Pavlov | 2026-02-25T15:44:31 | Bump `cipher` to v0.5.1 (#546) | diff --git a/Cargo.lock b/Cargo.lock
index d2b17ef..a49e217 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -10,9 +10,9 @@ checksum = "89af0b093cc13baa4e51e64e65ec2422f7e73aea0e612e5ad3872986671622f1"
[[package]]
name = "block-buffer"
-version = "0.11.0"
+version = "0.12.0"
source = "registry+https://github.com/rust-l... | 1 | 8 | 8 |
421a5c12be383108a5ad4f81c961741d7bb3b241 | Artyom Pavlov | 2026-02-09T14:27:13 | rc4: add basic benches (#544) | diff --git a/rc4/Cargo.toml b/rc4/Cargo.toml
index 1c5523e..a0f28a4 100644
--- a/rc4/Cargo.toml
+++ b/rc4/Cargo.toml
@@ -16,6 +16,7 @@ description = "Pure Rust implementation of the RC4 stream cipher"
cipher = { version = "0.5", features = ["stream-wrapper"] }
[dev-dependencies]
+cipher = { version = "0.5", feature... | 2 | 17 | 0 |
842be690b57936997f4292c86d84db823918f19b | Artyom Pavlov | 2026-02-09T14:22:57 | Add module doc for basic benches (#543)
Otherwise it can trigger the `missing_docs` lint. | diff --git a/chacha20/benches/mod.rs b/chacha20/benches/mod.rs
index 7758867..b96b325 100644
--- a/chacha20/benches/mod.rs
+++ b/chacha20/benches/mod.rs
@@ -1,3 +1,4 @@
+//! Basic benchmarks
#![feature(test)]
extern crate test;
diff --git a/hc-256/benches/mod.rs b/hc-256/benches/mod.rs
index bf712a5..6fb603a 100644... | 4 | 4 | 0 |
634de378deb3a7fc5d87de372fb1d7e7892b02d2 | Artyom Pavlov | 2026-02-07T14:36:21 | chacha20: add inherent methods for RNG state (de)serialization (#541)
Fixes https://github.com/rust-random/rand/issues/1101 | diff --git a/chacha20/src/lib.rs b/chacha20/src/lib.rs
index 5a4ff31..a086a01 100644
--- a/chacha20/src/lib.rs
+++ b/chacha20/src/lib.rs
@@ -113,7 +113,7 @@ pub use legacy::{ChaCha20Legacy, LegacyNonce};
#[cfg(feature = "rng")]
pub use rand_core;
#[cfg(feature = "rng")]
-pub use rng::{ChaCha8Rng, ChaCha12Rng, ChaCha... | 3 | 138 | 8 |
9e32d252a428e00bde97a862a3fd961f3b06accd | Artyom Pavlov | 2026-02-06T20:54:32 | chacha20: minor doc tweak for RNG types (#538)
The previous link-less reference to the crate docs may be ambiguous
since RNG types are re-exported by `rand`. | diff --git a/chacha20/src/rng.rs b/chacha20/src/rng.rs
index 3d571ca..2aa6a2a 100644
--- a/chacha20/src/rng.rs
+++ b/chacha20/src/rng.rs
@@ -100,13 +100,16 @@ macro_rules! impl_chacha_rng {
($Rng:ident, $rounds:ident) => {
/// A cryptographically secure random number generator that uses the ChaCha stream ... | 1 | 6 | 3 |
0554510d5455da376a1418edbc4dafd4b79ddd1d | Artyom Pavlov | 2026-02-06T20:25:25 | chacha20: remove the license header from the `rng` module (#535)
We generally do not use license headers in source files and I don't
think there is a lot of overlap with the `rand_chacha` crate.
Additionally, introduces a minor doc tweak which we missed in #531. | diff --git a/chacha20/src/rng.rs b/chacha20/src/rng.rs
index c036726..3d571ca 100644
--- a/chacha20/src/rng.rs
+++ b/chacha20/src/rng.rs
@@ -1,11 +1,3 @@
-// Copyright 2018 Developers of the Rand project.
-//
-// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
-// https://www.apache.org/licenses/LICEN... | 1 | 1 | 9 |
9ea796f99fb28cbefbfaec877bb4ef5b2b4311cb | Tony Arcieri | 2026-02-06T19:25:07 | chacha20 v0.10.0-rc.12 (#533)
Includes #529 which removed `StreamId` and changed `Seed` to a type
alias, which are both breaking changes.
Hopefully this is the last `rc` before a final release | diff --git a/Cargo.lock b/Cargo.lock
index dbdbba1..df478bc 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -26,7 +26,7 @@ checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
[[package]]
name = "chacha20"
-version = "0.10.0-rc.11"
+version = "0.10.0-rc.12"
dependencies = [
"cfg-if",
"ciph... | 2 | 2 | 2 |
9a628ac74a1fbfec7cff0f8d3f41e8d18f79ee96 | Artyom Pavlov | 2026-02-06T17:14:52 | chacha20: RNG refactor (#529)
Removes the `StreamId` type and uses `u64` instead. Replaces `Seed` wit
type alias for `[u8; 32]`, removing various other bespoke conversions
from other types.
---------
Co-authored-by: Tony Arcieri <bascule@gmail.com> | diff --git a/chacha20/src/chacha.rs b/chacha20/src/chacha.rs
index 376d62b..1105f1a 100644
--- a/chacha20/src/chacha.rs
+++ b/chacha20/src/chacha.rs
@@ -33,6 +33,6 @@ impl<R: Rounds> IvSizeUser for ChaChaCore<R, Ietf> {
impl<R: Rounds> KeyIvInit for ChaChaCore<R, Ietf> {
#[inline]
fn new(key: &Key, iv: &Nonc... | 6 | 102 | 378 |
880bb799e1a91a279a78d9ccdbdb8738ed593546 | Tony Arcieri | 2026-02-05T14:51:01 | chacha20: bump `cpufeatures` to v0.3 (#530)
This is largely for the MSRV / edition bump, and it doesn't otherwise
contain major notable changes | diff --git a/Cargo.lock b/Cargo.lock
index e6b6624..dbdbba1 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -51,9 +51,9 @@ dependencies = [
[[package]]
name = "cpufeatures"
-version = "0.2.17"
+version = "0.3.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "59ed5838eebb26a2bb2e58f6d5b53... | 2 | 3 | 3 |
64281a781388d7750139cd18f9190136ae318a99 | Artyom Pavlov | 2026-02-05T13:05:32 | chacha20: move RNG tests (#528) | diff --git a/chacha20/src/rng.rs b/chacha20/src/rng.rs
index f486371..af35b4e 100644
--- a/chacha20/src/rng.rs
+++ b/chacha20/src/rng.rs
@@ -514,191 +514,5 @@ macro_rules! impl_chacha_rng {
}
impl_chacha_rng!(ChaCha8Rng, R8, abst8);
-
impl_chacha_rng!(ChaCha12Rng, R12, abst12);
-
impl_chacha_rng!(ChaCha20Rng, R20... | 2 | 165 | 186 |
c8923806c0f4133748900ddd70ebed4cf468fd29 | Tony Arcieri | 2026-02-05T03:29:10 | chacha20: simplify `StreamId` (#527)
With only two elements, a tuple struct containing a 2-element array is
just syntactic noise over a 2-tuple, and leads to things being
implemented in a more complex manner than they need to be. | diff --git a/chacha20/src/rng.rs b/chacha20/src/rng.rs
index a600bc8..f486371 100644
--- a/chacha20/src/rng.rs
+++ b/chacha20/src/rng.rs
@@ -93,45 +93,37 @@ impl ZeroizeOnDrop for Seed {}
///
/// The arrays should be in little endian order.
#[derive(Clone, Copy, Debug)]
-pub struct StreamId([u32; Self::LEN]);
+pub s... | 1 | 12 | 19 |
cc09e8f17aff4292c0ff0845b8e91975b6664c3b | Tony Arcieri | 2026-02-05T03:19:12 | chacha20: clippy config (#526)
Uses the same clippy config as was added to the `cipher` crate in
RustCrypto/traits#2279
Since `chacha20` defines `lints.rust.unexpected_cfgs` we have to define
this at the crate-level rather than the workspace level, since if you
use the latter it must hold all of the lint config.
Fix... | diff --git a/chacha20/Cargo.toml b/chacha20/Cargo.toml
index dc451c7..5cd2bf9 100644
--- a/chacha20/Cargo.toml
+++ b/chacha20/Cargo.toml
@@ -39,9 +39,14 @@ legacy = ["cipher"]
rng = ["dep:rand_core"]
xchacha = ["cipher"]
-[package.metadata.docs.rs]
-all-features = true
-rustdoc-args = ["--cfg", "docsrs"]
+[lints.ru... | 11 | 200 | 104 |
302dfc244c77c2638e5a7e8571caf993b1f15fd6 | Tony Arcieri | 2026-02-05T02:31:20 | chacha20: have `features.rng = ["dep:rand_core"]` (#524)
Gets rid of a separate `rand_core` feature which doesn't actually do
anything without the `rng` feature, in favor of only the latter | diff --git a/chacha20/Cargo.toml b/chacha20/Cargo.toml
index 698b117..dc451c7 100644
--- a/chacha20/Cargo.toml
+++ b/chacha20/Cargo.toml
@@ -36,7 +36,7 @@ hex-literal = "1"
[features]
default = ["cipher"]
legacy = ["cipher"]
-rng = ["rand_core"]
+rng = ["dep:rand_core"]
xchacha = ["cipher"]
[package.metadata.doc... | 2 | 4 | 5 |
4a28cd38d320f34e55923c7838ff16c75f2a2163 | Tony Arcieri | 2026-02-05T01:31:05 | chacha20: include README.md in rustdoc (#523)
Avoids duplication of certain sections | diff --git a/chacha20/src/lib.rs b/chacha20/src/lib.rs
index 68ee2bb..d814978 100644
--- a/chacha20/src/lib.rs
+++ b/chacha20/src/lib.rs
@@ -1,10 +1,17 @@
-//! Implementation of the [ChaCha] family of stream ciphers.
-//!
-//! Cipher functionality is accessed using traits from re-exported [`cipher`] crate.
+#![no_std]
... | 1 | 14 | 38 |
a51e680932d3244f317530572cbc198607033b44 | Tony Arcieri | 2026-02-04T23:49:55 | chacha20 v0.10.0-rc.11 (#522)
This should be a true "release candidate" in that the only change we
expect in a final release is a bump to `cpufeatures` v0.3.
This release includes `--cfg chacha20_backend="..."` changes in #520, as
well as the opt-in AVX-512 backend that can be enabled with `--cfg
chacha20_avx512`, an... | diff --git a/Cargo.lock b/Cargo.lock
index c0d00c5..e6b6624 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -26,7 +26,7 @@ checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
[[package]]
name = "chacha20"
-version = "0.10.0-rc.10"
+version = "0.10.0-rc.11"
dependencies = [
"cfg-if",
"ciph... | 2 | 2 | 2 |
84174d87688bd162ac0afe57a236a97eea9e6791 | Tony Arcieri | 2026-02-04T20:06:11 | Bump `cipher` crate dependency to v0.5 (#521)
Release PR: RustCrypto/traits#2281 | diff --git a/Cargo.lock b/Cargo.lock
index a6d40e6..c0d00c5 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -38,9 +38,9 @@ dependencies = [
[[package]]
name = "cipher"
-version = "0.5.0-rc.8"
+version = "0.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9002c8edb9b1e21938663da3489c9c... | 6 | 15 | 15 |
16217f2f865b7628a0c727458e56136f11a42e95 | Tony Arcieri | 2026-02-02T16:37:32 | Bump `cipher` to v0.5.0-rc.8 (#518)
This release removed the `cipher::crypto_common` re-export, which
required a small fix to `rabbit` | diff --git a/Cargo.lock b/Cargo.lock
index 2dfe658..589fd97 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -66,9 +66,9 @@ dependencies = [
[[package]]
name = "cipher"
-version = "0.5.0-rc.7"
+version = "0.5.0-rc.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cf7e48717e58fd82d6470086a... | 7 | 14 | 14 |
0fe231204b469199a6f57eb7c259d6e085736b33 | Diggory Hardy | 2026-02-02T10:20:38 | Make {get,set}_block_pos inherent methods pub (#516)
Corrects an oversight from #512. | diff --git a/chacha20/src/lib.rs b/chacha20/src/lib.rs
index 99114d1..9873950 100644
--- a/chacha20/src/lib.rs
+++ b/chacha20/src/lib.rs
@@ -266,15 +266,17 @@ impl<R: Rounds, V: Variant> ChaChaCore<R, V> {
}
}
+ /// Get the current block position.
#[cfg(any(feature = "cipher", feature = "rng"))]... | 1 | 4 | 2 |
fdbab622199f84804f022db2e3f69f68c59fca01 | Tony Arcieri | 2026-02-01T15:07:50 | chacha20 v0.10.0-rc.10 (#515)
Includes `rand_core` v0.10 upgrade | diff --git a/Cargo.lock b/Cargo.lock
index 4591468..2dfe658 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -53,7 +53,7 @@ checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
[[package]]
name = "chacha20"
-version = "0.10.0-rc.9"
+version = "0.10.0-rc.10"
dependencies = [
"cfg-if",
"ciphe... | 2 | 6 | 6 |
7613b7164c6aaed2c84a91282b02399224a0bdf6 | Tony Arcieri | 2026-02-01T15:02:46 | Bump `cipher` dependency to v0.5.0-rc.7 (#514)
Includes a transitive dependency bump to `rand_core` v0.10 by way of
`crypto-common` v0.2.0-rc.14, but that doesn't directly impact this repo | diff --git a/chacha20/Cargo.toml b/chacha20/Cargo.toml
index 1b311c1..f3d3b7f 100644
--- a/chacha20/Cargo.toml
+++ b/chacha20/Cargo.toml
@@ -20,7 +20,7 @@ rand_core-compatible RNGs based on those ciphers.
[dependencies]
cfg-if = "1"
-cipher = { version = "0.5.0-rc.6", optional = true, features = ["stream-wrapper"] ... | 5 | 9 | 9 |
d63d18f410f6762e1221eb5484d831cf628377b2 | Tony Arcieri | 2026-02-01T14:39:41 | chacha20: bump `rand_core` to v0.10 (#513) | diff --git a/Cargo.lock b/Cargo.lock
index 552d43b..4591468 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -60,7 +60,7 @@ dependencies = [
"cpufeatures",
"hex-literal",
"proptest",
- "rand_core 0.10.0-rc-6",
+ "rand_core 0.10.0",
"zeroize",
]
@@ -286,9 +286,9 @@ dependencies = [
[[package]]
name = "rand_cor... | 2 | 4 | 4 |
bffd4568f3ab144ff4ebdaf6791e669e80901b80 | Noah Stiltner | 2026-02-01T10:46:04 | chacha20: move RNG tests from `rand_chacha` to KATs (#505) | diff --git a/Cargo.lock b/Cargo.lock
index 905cc4c..552d43b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -60,7 +60,6 @@ dependencies = [
"cpufeatures",
"hex-literal",
"proptest",
- "rand_chacha",
"rand_core 0.10.0-rc-6",
"zeroize",
]
diff --git a/chacha20/Cargo.toml b/chacha20/Cargo.toml
index 3a6a182..baef31... | 4 | 353 | 518 |
b74a2207b39ed2e69b763caa7f34fbb10e7aa9f0 | Diggory Hardy | 2026-01-30T13:40:46 | Remove ChaChaXCore types (#512)
We don't need these types. The only known use is `rand::rngs::ThreadRng`,
yet there's no reason that can't use `ChaChaCore` (already a public item). | diff --git a/chacha20/src/lib.rs b/chacha20/src/lib.rs
index 11fac73..99114d1 100644
--- a/chacha20/src/lib.rs
+++ b/chacha20/src/lib.rs
@@ -136,7 +136,7 @@ pub use chacha::{ChaCha8, ChaCha12, ChaCha20, Key, KeyIvInit};
#[cfg(feature = "rng")]
pub use rand_core;
#[cfg(feature = "rng")]
-pub use rng::{ChaCha8Core, Ch... | 2 | 57 | 94 |
804bd3e751406777566b415f24a223adb13699cf | Tony Arcieri | 2026-01-24T16:11:20 | Bump `cipher` to v0.5.0-rc.6 (#510) | diff --git a/Cargo.lock b/Cargo.lock
index 2545fe1..a5c5a48 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -53,7 +53,7 @@ checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
[[package]]
name = "chacha20"
-version = "0.10.0-rc.8"
+version = "0.10.0-rc.9"
dependencies = [
"cfg-if",
"cipher... | 6 | 14 | 14 |
ee1dbf88a025b1bd6d87a7298ffc5af05d98fc43 | Tony Arcieri | 2026-01-24T14:56:28 | Bump `rand_core` to v0.10.0-rc-6 (#509)
Also releases `chacha20` v0.10.0-rc.9
This includes the `(Try)RngCore` => `(Try)Rng` changes | diff --git a/Cargo.lock b/Cargo.lock
index f51d97c..2545fe1 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -61,7 +61,7 @@ dependencies = [
"hex-literal",
"proptest",
"rand_chacha",
- "rand_core 0.10.0-rc-5",
+ "rand_core 0.10.0-rc-6",
"zeroize",
]
@@ -287,9 +287,9 @@ dependencies = [
[[package]]
name = "ran... | 4 | 13 | 13 |
950d230f6e56744f17b7281cfb943dbefd2a28ae | Tony Arcieri | 2026-01-20T15:13:12 | chacha20 v0.10.0-rc.8 (#507) | diff --git a/Cargo.lock b/Cargo.lock
index 0879cac..f51d97c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -53,7 +53,7 @@ checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
[[package]]
name = "chacha20"
-version = "0.10.0-rc.7"
+version = "0.10.0-rc.8"
dependencies = [
"cfg-if",
"cipher... | 2 | 2 | 2 |
8e1f79278c84574221774c41dbbc918b153490d7 | Tony Arcieri | 2026-01-20T15:03:10 | Bump `cipher` to v0.5.0-rc.5; `rand_core` to v0.10.0-rc.5 (#506) | diff --git a/Cargo.lock b/Cargo.lock
index 4a8e630..0879cac 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -61,15 +61,15 @@ dependencies = [
"hex-literal",
"proptest",
"rand_chacha",
- "rand_core 0.10.0-rc-4",
+ "rand_core 0.10.0-rc-5",
"zeroize",
]
[[package]]
name = "cipher"
-version = "0.5.0-rc.4"
+version... | 7 | 18 | 18 |
dd9060ca435e0101b890bf149024dfca208a3461 | Tony Arcieri | 2026-01-19T20:34:59 | chacha20 v0.10.0-rc.7 (#504)
Includes the following dependency updates:
- `cipher` v0.5.0-rc.4
- `rand_core` v0.10.0-rc-4 | diff --git a/Cargo.lock b/Cargo.lock
index 0eb4891..4a8e630 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -53,7 +53,7 @@ checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
[[package]]
name = "chacha20"
-version = "0.10.0-rc.6"
+version = "0.10.0-rc.7"
dependencies = [
"cfg-if",
"cipher... | 2 | 2 | 2 |
31e23475789f8604e039da0666077433a820b517 | Tony Arcieri | 2026-01-19T20:22:10 | Bump `cipher` dependency to v0.5.0-rc.4 (#503)
This has an optional dependency on `rand_core` v0.10.0-rc-4 (which isn't
actually used by this repo) | diff --git a/Cargo.lock b/Cargo.lock
index 2562ce1..0eb4891 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -67,9 +67,9 @@ dependencies = [
[[package]]
name = "cipher"
-version = "0.5.0-rc.3"
+version = "0.5.0-rc.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "98d708bac5451350d56398433... | 6 | 13 | 13 |
00dc865683fedb5cf03f3a782d739cb8b5413232 | Noah Stiltner | 2026-01-19T20:14:20 | chacha20: `rand_core` v0.10.0-rc.4 + `set_stream()`/`get_block_pos()` change (#500)
# Changes
* Update `rand_core` to a preview from
https://github.com/rust-random/rand_core/pull/44
* I need to change the `Cargo.toml` once that PR makes it through
* Update `set_stream()` to reset the `block_pos` + `index` to 0. Befo... | diff --git a/Cargo.lock b/Cargo.lock
index e0142f2..2562ce1 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -61,7 +61,7 @@ dependencies = [
"hex-literal",
"proptest",
"rand_chacha",
- "rand_core 0.10.0-rc-3",
+ "rand_core 0.10.0-rc-4",
"zeroize",
]
@@ -287,9 +287,9 @@ dependencies = [
[[package]]
name = "ran... | 3 | 106 | 34 |
26fac204278e9c497d524fcba3a3208634fefc6c | Tony Arcieri | 2025-12-27T23:59:08 | Bump `cipher` dependency to v0.5.0-rc.3 (#493) | diff --git a/Cargo.lock b/Cargo.lock
index 7041d78..aa21ea4 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -67,9 +67,9 @@ dependencies = [
[[package]]
name = "cipher"
-version = "0.5.0-rc.2"
+version = "0.5.0-rc.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "155e4a260750fa4f7754649f0... | 6 | 13 | 13 |
bd6c02e3e15e080e8e9da4e61dea589210bb6654 | Arthur Gautier | 2025-12-24T16:05:11 | chacha20: v0.10.0-rc.6 (#492)
Bump `rand_core` to `0.10.0-rc-3` | diff --git a/Cargo.lock b/Cargo.lock
index 7e75de6..7041d78 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -53,7 +53,7 @@ checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
[[package]]
name = "chacha20"
-version = "0.10.0-rc.5"
+version = "0.10.0-rc.6"
dependencies = [
"cfg-if",
"cipher... | 2 | 2 | 2 |
b1ce66e27946618db13f032e03b55d40567871db | Arthur Gautier | 2025-12-23T01:35:26 | chacha20: adopt the new Generator API from rand_core (#491)
The new API force the output to be a straight array, but there is a
custom drop implementation where we can put the Zeroize of the output.
This bumps the `rand_core` dependency to `0.10.0-rc-3` | diff --git a/Cargo.lock b/Cargo.lock
index 2577911..7e75de6 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -61,7 +61,7 @@ dependencies = [
"hex-literal",
"proptest",
"rand_chacha",
- "rand_core 0.10.0-rc-2",
+ "rand_core 0.10.0-rc-3",
"zeroize",
]
@@ -287,9 +287,9 @@ dependencies = [
[[package]]
name = "ran... | 3 | 17 | 42 |
dde4b637255bc6d5a4da88887b32ab5492a08f62 | Tony Arcieri | 2025-11-06T20:48:08 | chacha20 v0.10.0-rc.5 (#484)
Fixes `doc_cfg` so https://docs.rs builds should work | diff --git a/Cargo.lock b/Cargo.lock
index b121117..75916fc 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -53,7 +53,7 @@ checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
[[package]]
name = "chacha20"
-version = "0.10.0-rc.4"
+version = "0.10.0-rc.5"
dependencies = [
"cfg-if",
"cipher... | 2 | 2 | 2 |
c8d781b59a3e5267aaeb2b1064558a970e811e90 | Arthur Gautier | 2025-11-06T02:57:52 | fixup docs.rs builds (#483)
This switches from `doc_auto_cfg` to `doc_cfg` to fix the builds on
docs.rs
https://docs.rs/crate/chacha20/0.10.0-rc.4/builds/2637654 | diff --git a/chacha20/src/lib.rs b/chacha20/src/lib.rs
index d9846f7..11fac73 100644
--- a/chacha20/src/lib.rs
+++ b/chacha20/src/lib.rs
@@ -100,7 +100,7 @@
//! [`chacha20poly1305`]: https://docs.rs/chacha20poly1305
#![no_std]
-#![cfg_attr(docsrs, feature(doc_auto_cfg))]
+#![cfg_attr(docsrs, feature(doc_cfg))]
#![... | 5 | 5 | 5 |
b23aeb67220cc8c3ceb2aeac1aa3210400059fdf | Tony Arcieri | 2025-11-05T17:08:53 | Cut new prereleases (#482)
Releases the following:
- `chacha20` v0.10.0-rc.4
- `salsa20` v0.11.0-rc.2 | diff --git a/Cargo.lock b/Cargo.lock
index 26236a1..b121117 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -53,7 +53,7 @@ checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
[[package]]
name = "chacha20"
-version = "0.10.0-rc.3"
+version = "0.10.0-rc.4"
dependencies = [
"cfg-if",
"cipher... | 3 | 4 | 4 |
8d0f8db27a010221c76c1f1b0978e330776e60a7 | Tony Arcieri | 2025-11-05T16:39:59 | Bump `cipher` dependency to v0.5.0-rc.2 (#481) | diff --git a/Cargo.lock b/Cargo.lock
index efbf3e8..26236a1 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -67,9 +67,9 @@ dependencies = [
[[package]]
name = "cipher"
-version = "0.5.0-rc.1"
+version = "0.5.0-rc.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1e12a13eb01ded5d32ee9658d... | 6 | 13 | 13 |
50d3f0dac778479d3fac94cf8c36bab5d64289b9 | Tony Arcieri | 2025-11-03T20:01:10 | chacha20 v0.10.0-rc.3 (#480)
cc @dhardy | diff --git a/Cargo.lock b/Cargo.lock
index ac491e5..efbf3e8 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -53,7 +53,7 @@ checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
[[package]]
name = "chacha20"
-version = "0.10.0-rc.2"
+version = "0.10.0-rc.3"
dependencies = [
"cfg-if",
"cipher... | 2 | 2 | 2 |
bfd79c350dc363563450151f6fb29dd613796e3e | Tony Arcieri | 2025-11-03T19:40:28 | chacha20: use `rand_core` v0.10.0-rc-2 crate release (#479)
cc @dhardy | diff --git a/Cargo.lock b/Cargo.lock
index 584a71d..ac491e5 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -61,7 +61,7 @@ dependencies = [
"hex-literal",
"proptest",
"rand_chacha",
- "rand_core 0.10.0-rc.1",
+ "rand_core 0.10.0-rc-2",
"zeroize",
]
@@ -287,8 +287,9 @@ dependencies = [
[[package]]
name = "ran... | 3 | 5 | 8 |
dcce2d6606190180dbe5b534c18c71811b82ca42 | Artyom Pavlov | 2025-10-13T13:02:27 | chacha20: fix footnote in RNG docs (#469) | diff --git a/chacha20/src/rng.rs b/chacha20/src/rng.rs
index a65b4a6..4c48344 100644
--- a/chacha20/src/rng.rs
+++ b/chacha20/src/rng.rs
@@ -240,7 +240,7 @@ macro_rules! impl_chacha_rng {
/// rounds is the minimum potentially secure configuration, and 20 rounds is widely used as a
/// conservative cho... | 1 | 3 | 5 |
f2b667e16a9f94c4cea1bd1611ebac2f50425fa0 | Tony Arcieri | 2025-09-11T15:23:12 | chacha20: remove `serde` feature (#461)
See discussion from: rust-random/rand#1101
Being able to easily serialize the state of a cryptographic RNG is a
footgun that risks both duplicating the keystream (which can lead to
e.g. nonce reuse) or exposing it. | diff --git a/Cargo.lock b/Cargo.lock
index b6b4b4e..296050a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -61,8 +61,6 @@ dependencies = [
"proptest",
"rand_chacha",
"rand_core",
- "serde",
- "serde_json",
"zeroize",
]
@@ -164,12 +162,6 @@ dependencies = [
"hybrid-array",
]
-[[package]]
-name = "itoa"
-ver... | 3 | 0 | 131 |
9f095c43dba04f33dbcc0b63aef3a6d75b4e62f1 | Tony Arcieri | 2025-09-11T15:22:54 | Remove `Clone` impls on ciphers/RNGs (#462)
Allow cloning on a stream cipher or RNG is problematic because it
duplicates internal states, which can lead to keystream reuse / RNG
output duplication, which in cryptographic contexts can be catastrophic.
Instead, for things like tests ciphers can be initialized from the ... | diff --git a/chacha20/src/lib.rs b/chacha20/src/lib.rs
index 075d604..d9846f7 100644
--- a/chacha20/src/lib.rs
+++ b/chacha20/src/lib.rs
@@ -209,6 +209,7 @@ cfg_if! {
/// The ChaCha core function.
pub struct ChaChaCore<R: Rounds, V: Variant> {
/// Internal state of the core function
+ #[cfg(any(feature = "cip... | 4 | 15 | 29 |
f0bb12034b082d24cc678af32496ca3ec3c2f858 | Tony Arcieri | 2025-09-09T17:51:30 | chacha20 v0.10.0-rc.2 (#460) | diff --git a/Cargo.lock b/Cargo.lock
index c0c032a..b6b4b4e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -52,7 +52,7 @@ checksum = "2fd1289c04a9ea8cb22300a459a72a385d7c73d3259e2ed7dcb2af674838cfa9"
[[package]]
name = "chacha20"
-version = "0.10.0-rc.1"
+version = "0.10.0-rc.2"
dependencies = [
"cfg-if",
"cipher... | 2 | 2 | 2 |
9bf8f8e0a7df365b3661e746ec716eebbbf5b409 | Tony Arcieri | 2025-09-09T12:01:33 | chacha20: rename `serde1` feature to `serde` (#459) | diff --git a/chacha20/Cargo.toml b/chacha20/Cargo.toml
index 86c39d2..7209749 100644
--- a/chacha20/Cargo.toml
+++ b/chacha20/Cargo.toml
@@ -35,13 +35,12 @@ cipher = { version = "0.5.0-rc.1", features = ["dev"] }
hex-literal = "1"
proptest = "1"
rand_chacha = "0.9"
-serde_json = "1.0" # Only to test serde1
+serde_js... | 2 | 10 | 11 |
8f63e23ca78492b3ce6c1e41d5949e570969c9bd | Noah Stiltner | 2025-09-08T13:05:06 | `chacha20` - minor improvements (#456)
- remove unnecessary endian conversions
- update docs
- consolidate `StreamId` and `BlockPos` with type aliases
- update `counter_overflow_1` test to be more descriptive when the
64-bit counter is not implemented correctly for the 4th parblock - may
be unnecessary, but it pro... | diff --git a/chacha20/src/rng.rs b/chacha20/src/rng.rs
index f58152f..eaa8a3a 100644
--- a/chacha20/src/rng.rs
+++ b/chacha20/src/rng.rs
@@ -81,33 +81,33 @@ impl Debug for Seed {
}
}
-/// A wrapper for `stream_id`.
-///
-/// Can be constructed from any of the following:
-/// * `[u32; 3]`
-/// * `[u8; 12]`
-/// ... | 1 | 94 | 60 |
d43c405c20a3305d3a8e7db13cb0a1f270549e68 | Noah Stiltner | 2025-09-04T13:32:43 | `chacha20` - adding the proper features for using legacy/djb construction (#455)
Fixes #454 | diff --git a/chacha20/src/variants.rs b/chacha20/src/variants.rs
index 9bb0e7a..b843e82 100644
--- a/chacha20/src/variants.rs
+++ b/chacha20/src/variants.rs
@@ -53,13 +53,13 @@ impl Variant for Ietf {
}
/// DJB variant specific features: 64-bit counter and 64-bit nonce.
-#[cfg(feature = "legacy")]
+#[cfg(any(featur... | 1 | 3 | 3 |
9a7c28d3d53b7e4f63471e0d258b85550769e1ad | Tony Arcieri | 2025-09-02T22:53:57 | Cut prereleases with `hybrid-array` v0.4 support (#1210) (#452)
Releases the following:
- `chacha20` v0.10.0-rc.1
- `salsa20` v0.11.0-rc.1 | diff --git a/Cargo.lock b/Cargo.lock
index a289c95..47f1a8a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -52,7 +52,7 @@ checksum = "2fd1289c04a9ea8cb22300a459a72a385d7c73d3259e2ed7dcb2af674838cfa9"
[[package]]
name = "chacha20"
-version = "0.10.0-rc.0"
+version = "0.10.0-rc.1"
dependencies = [
"cfg-if",
"cipher... | 3 | 7 | 7 |
893b4c2f10bcf275d3d5f875c406c2d862a633d6 | Tony Arcieri | 2025-09-02T21:22:09 | Bump `cipher` to v0.5.0-rc.1 (#451) | diff --git a/Cargo.lock b/Cargo.lock
index 9b07ef1..a289c95 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -36,8 +36,9 @@ source = "git+https://github.com/RustCrypto/utils#adfccfea2686ef191b607f653cc358
[[package]]
name = "block-buffer"
-version = "0.11.0-rc.4"
-source = "git+https://github.com/RustCrypto/utils#adfccf... | 7 | 21 | 25 |
1b7c8220310edf3614e06e4abd1ab476c3024445 | Tony Arcieri | 2025-09-02T00:52:52 | Bump `hybrid-array` to v0.4 (#450) | diff --git a/Cargo.lock b/Cargo.lock
index 13cdea1..9b07ef1 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -32,12 +32,12 @@ checksum = "34efbcccd345379ca2868b2b2c9d3782e9cc58ba87bc7d79d5b53d9c9ae6f25d"
[[package]]
name = "blobby"
version = "0.4.0-pre.0"
-source = "git+https://github.com/RustCrypto/utils#f5ac85f6aa02aa3... | 3 | 12 | 9 |
1045d03d4f7c7d5fda5568b9c23cb0ccc5b0ce92 | Diggory Hardy | 2025-08-23T00:22:47 | chacha20: minor improvements
- lint `cfg`s
- add assertions
- avoid needless conversions | diff --git a/chacha20/Cargo.toml b/chacha20/Cargo.toml
index 7d340b5..2dc66f0 100644
--- a/chacha20/Cargo.toml
+++ b/chacha20/Cargo.toml
@@ -47,3 +47,14 @@ xchacha = ["cipher"]
[package.metadata.docs.rs]
all-features = true
rustdoc-args = ["--cfg", "docsrs"]
+
+[lints.rust.unexpected_cfgs]
+level = "warn"
+check-cfg... | 4 | 18 | 8 |
e4afea5f171080e83d984a196770635859c8c0ef | Artyom Pavlov | 2025-08-19T12:41:25 | salsa20: remove the SSE2 backend (#446)
Closes #445 | diff --git a/salsa20/src/backends.rs b/salsa20/src/backends.rs
index 35df34e..fbc9393 100644
--- a/salsa20/src/backends.rs
+++ b/salsa20/src/backends.rs
@@ -1,3 +1 @@
pub(crate) mod soft;
-#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
-pub(crate) mod sse2;
diff --git a/salsa20/src/backends/sse2.rs b/salsa20... | 4 | 32 | 209 |
962726f8cf47de18a81d5a83677405829f7cd408 | Tony Arcieri | 2025-05-30T14:28:24 | cipher v0.5.0-rc.0 (#422)
Also cuts `rc.0` releases of `chacha20` and `salsa20` | diff --git a/Cargo.lock b/Cargo.lock
index ebd7639..33a9e51 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -28,7 +28,7 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
[[package]]
name = "chacha20"
-version = "0.10.0-pre.3"
+version = "0.10.0-rc.0"
dependencies = [
"cfg-if",
"ciphe... | 6 | 17 | 17 |
e3cdfa1507e3cd95db1667297eacc32c61025aa7 | Tony Arcieri | 2025-05-30T14:23:30 | Use `doc_auto_cfg` (#420) | diff --git a/chacha20/src/lib.rs b/chacha20/src/lib.rs
index bb400a2..f9765fc 100644
--- a/chacha20/src/lib.rs
+++ b/chacha20/src/lib.rs
@@ -100,7 +100,7 @@
//! [`chacha20poly1305`]: https://docs.rs/chacha20poly1305
#![no_std]
-#![cfg_attr(docsrs, feature(doc_cfg))]
+#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![... | 8 | 5 | 19 |
18dfe15d6d2c597185acaeb136a562b9c2edf818 | Artyom Pavlov | 2025-05-26T10:33:46 | chacha20: remove unsound `test_zeroize_inputs_internal` (#419) | diff --git a/chacha20/src/rng.rs b/chacha20/src/rng.rs
index 32e53e3..07a48c7 100644
--- a/chacha20/src/rng.rs
+++ b/chacha20/src/rng.rs
@@ -619,17 +619,6 @@ pub(crate) mod tests {
26, 27, 28, 29, 30, 31, 32,
];
- #[test]
- #[cfg(feature = "zeroize")]
- fn test_zeroize_inputs_internal() {
- ... | 1 | 0 | 11 |
ca0ba526753ed24bcace72c6f84ca2e7faa0d496 | Artyom Pavlov | 2025-04-11T12:09:55 | Use the standard order of the `[package]` section fields (#400)
See https://github.com/RustCrypto/meta/issues/22 | diff --git a/chacha20/Cargo.toml b/chacha20/Cargo.toml
index ed3872a..f03c4ce 100644
--- a/chacha20/Cargo.toml
+++ b/chacha20/Cargo.toml
@@ -1,22 +1,22 @@
[package]
name = "chacha20"
version = "0.10.0-pre.3"
-description = """
-The ChaCha20 stream cipher (RFC 8439) implemented in pure Rust using traits
-from the Rus... | 5 | 22 | 22 |
26506d949001c0f3722fa8047af9006c5b7b1cbc | silverstillisntgold | 2025-02-28T12:36:07 | chacha20: `StreamId` `From` impl and doc improvements (#392) | diff --git a/chacha20/src/rng.rs b/chacha20/src/rng.rs
index 654cfb9..044239a 100644
--- a/chacha20/src/rng.rs
+++ b/chacha20/src/rng.rs
@@ -27,7 +27,7 @@ use crate::{
use cfg_if::cfg_if;
-// number of 32-bit words per ChaCha block (fixed by algorithm definition)
+/// Number of 32-bit words per ChaCha block (fixed... | 1 | 56 | 36 |
57cb81d2fc0f7568867032eb51fc2c715251001d | Noah Stiltner | 2025-02-28T09:05:27 | chacha20: rng - Fixing NEON Backend (#390)
Fixes #381 | diff --git a/chacha20/src/backends/neon.rs b/chacha20/src/backends/neon.rs
index 23c9207..79c3121 100644
--- a/chacha20/src/backends/neon.rs
+++ b/chacha20/src/backends/neon.rs
@@ -88,15 +88,6 @@ impl<R: Rounds> ParBlocksSizeUser for Backend<R> {
type ParBlocksSize = U4;
}
-macro_rules! add64 {
- ($a:expr, $... | 2 | 36 | 20 |
55a57bdc8d1f4dc29408d022a9e9a4505c6339eb | Артём Павлов [Artyom Pavlov] | 2025-02-17T11:25:08 | Update Cargo.lock | diff --git a/Cargo.lock b/Cargo.lock
index 697987e..812b55f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -38,7 +38,7 @@ dependencies = [
"cpufeatures",
"hex-literal",
"rand_chacha",
- "rand_core 0.9.0",
+ "rand_core 0.9.1",
"serde",
"serde_json",
"zeroize",
@@ -58,9 +58,9 @@ dependencies = [
[[package]]
... | 1 | 33 | 33 |
44beace0d41fa83e44e59f9f2d9349220047894c | Noah Stiltner | 2025-02-02T18:43:14 | chacha20: fix stream ID endianness (#389)
Fixes #388 | diff --git a/chacha20/src/rng.rs b/chacha20/src/rng.rs
index c50a4b1..b9a4b9e 100644
--- a/chacha20/src/rng.rs
+++ b/chacha20/src/rng.rs
@@ -116,7 +116,7 @@ pub struct StreamId([u32; 3]);
impl From<[u32; 3]> for StreamId {
fn from(value: [u32; 3]) -> Self {
- Self(value)
+ Self([value[0].to_le(), ... | 1 | 18 | 6 |
2ab56b0546f5c50b32ed5946634730108ef98f45 | Tony Arcieri | 2025-01-28T23:06:37 | chacha20 v0.10.0-pre.3 (#386)
Note: this release supports `rand_core` v0.9 | diff --git a/Cargo.lock b/Cargo.lock
index 45d456c..697987e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -31,7 +31,7 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
[[package]]
name = "chacha20"
-version = "0.10.0-pre.2"
+version = "0.10.0-pre.3"
dependencies = [
"cfg-if",
"ciph... | 2 | 2 | 2 |
87b35079c16c8c9297df07f4018fbe0d2e52f731 | Tony Arcieri | 2025-01-28T23:01:44 | chacha20: bump `rand_core` to v0.9 (#385) | diff --git a/Cargo.lock b/Cargo.lock
index 8af2775..45d456c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -38,7 +38,7 @@ dependencies = [
"cpufeatures",
"hex-literal",
"rand_chacha",
- "rand_core 0.9.0-alpha.2",
+ "rand_core 0.9.0",
"serde",
"serde_json",
"zeroize",
@@ -144,7 +144,7 @@ version = "0.2.20"
sou... | 3 | 28 | 8 |
a3ef3996245abf7469df81a7c7abfd388afa221c | Artyom Pavlov | 2024-10-27T07:21:48 | chacha20: disable default features for zeroize (#372) | diff --git a/chacha20/Cargo.toml b/chacha20/Cargo.toml
index a061739..accb922 100644
--- a/chacha20/Cargo.toml
+++ b/chacha20/Cargo.toml
@@ -23,7 +23,9 @@ cfg-if = "1"
cipher = { version = "=0.5.0-pre.7", optional = true }
rand_core = { version = "0.9.0-alpha.2", optional = true, default-features = false }
serde = {... | 1 | 3 | 1 |
87b79aabc63920d0fb6990ffcf6cd10f0c503e25 | Arthur Gautier | 2024-10-07T18:51:32 | chacha20+salsa20: cut pre.2 prereleases (#371)
Cuts the following prereleases:
- `chacha20` v0.10.0-pre.2
- `salsa20` v0.11.0-pre.2 | diff --git a/Cargo.lock b/Cargo.lock
index 37bc2f4..3e29432 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -25,7 +25,7 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
[[package]]
name = "chacha20"
-version = "0.10.0-pre.1"
+version = "0.10.0-pre.2"
dependencies = [
"cfg-if",
"ciph... | 3 | 4 | 4 |
9fcbf802c3ec29672f6fa2f22fc6ac1abce24996 | Arthur Gautier | 2024-09-27T20:16:58 | build(deps): bump rand_core from 0.9.0-alpha.1 to 0.9.0-alpha.2 (#369)
`rand_core` reworked its error management and now return Infallible
error. | diff --git a/Cargo.lock b/Cargo.lock
index d086329..37bc2f4 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -32,7 +32,7 @@ dependencies = [
"cpufeatures",
"hex-literal",
"rand_chacha",
- "rand_core 0.9.0-alpha.1",
+ "rand_core 0.9.0-alpha.2",
"serde",
"serde_json",
"zeroize",
@@ -179,9 +179,9 @@ dependencies = ... | 3 | 12 | 14 |
15c3c21600434c6f41b0007e2bd8a45e62adf359 | Arthur Gautier | 2024-09-27T19:45:09 | build(deps): bump cipher from 0.5.0-pre.6 to 0.5.0-pre.7 (#368)
fixes #366 | diff --git a/Cargo.lock b/Cargo.lock
index b6ba836..d086329 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -40,9 +40,9 @@ dependencies = [
[[package]]
name = "cipher"
-version = "0.5.0-pre.6"
+version = "0.5.0-pre.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c71c893d5a1e8257048dbb2... | 19 | 62 | 67 |
b3eb4e8f2ec15851b303a5c013a32d656d74d449 | Tony Arcieri | 2024-07-27T15:45:00 | chacha20+salsa20: cut pre.1 prereleases (#363)
Cuts the following prereleases:
- `chacha20` v0.10.0-pre.1
- `salsa20` v0.11.0-pre.1 | diff --git a/Cargo.lock b/Cargo.lock
index 5a702af..4f0507a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -25,7 +25,7 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
[[package]]
name = "chacha20"
-version = "0.10.0-pre"
+version = "0.10.0-pre.1"
dependencies = [
"cfg-if",
"cipher... | 4 | 6 | 7 |
3f83d76f4e9125f886a4f1c73a387425136683de | Tony Arcieri | 2024-07-26T22:11:08 | Bump `cipher` to v0.5.0-pre.6 (#362) | diff --git a/Cargo.lock b/Cargo.lock
index 40fd91e..5a702af 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -10,9 +10,9 @@ checksum = "847495c209977a90e8aad588b959d0ca9f5dc228096d29a6bd3defd53f35eaec"
[[package]]
name = "block-padding"
-version = "0.4.0-pre.4"
+version = "0.4.0-rc.0"
source = "registry+https://github.... | 8 | 22 | 20 |
78ea0b2ae42f9ebb8e4ffc271d05b2a04f9309ee | Martin Geisler | 2024-06-17T14:03:21 | chacha20: fix IETF URLs (#358) | diff --git a/chacha20/src/xchacha.rs b/chacha20/src/xchacha.rs
index ab0a1ff..a9a96c4 100644
--- a/chacha20/src/xchacha.rs
+++ b/chacha20/src/xchacha.rs
@@ -34,7 +34,7 @@ pub type XNonce = Array<u8, U24>;
/// several interoperable libraries and protocols (e.g. libsodium, WireGuard)
/// and is documented in an (expire... | 1 | 2 | 2 |
6a519025c2cd776007f9ae1c8f1ca738721f2cf1 | Alfredo Garcia | 2024-05-07T14:28:54 | chacha20: unify `quarter_round` in soft backend and xchacha (#349)
Deduplicates `quarter_round` in xchacha using soft backend version | diff --git a/chacha20/src/backends/soft.rs b/chacha20/src/backends/soft.rs
index 7c570b9..9cd4234 100644
--- a/chacha20/src/backends/soft.rs
+++ b/chacha20/src/backends/soft.rs
@@ -1,7 +1,7 @@
//! Portable implementation which does not rely on architecture-specific
//! intrinsics.
-use crate::{ChaChaCore, Rounds, V... | 3 | 33 | 41 |
e1269b1f6348bd0ee2da30178ea46531a09cda04 | Alfredo Garcia | 2024-04-29T15:05:39 | salsa20: re-add SSE2 support with reduced round soft fallback (#348)
- Reverts #346
- Add regression tests created in response to #346
- Add soft fallback for non salsa20/20 variants | diff --git a/Cargo.lock b/Cargo.lock
index 0ab22cf..262ffab 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -204,6 +204,7 @@ checksum = "e86697c916019a8588c99b5fac3cead74ec0b4b819707a682fd4d23fa0ce1ba1"
name = "salsa20"
version = "0.11.0-pre"
dependencies = [
+ "cfg-if",
"cipher",
"hex-literal",
]
diff --git a/sals... | 7 | 289 | 70 |
fea3dd013ee9c35fba56903ad44b411957de8cb2 | Arthur Gautier | 2024-03-05T03:32:13 | salsa20: revert sse2 (#346)
This reverts #328.
The changes introduced here generate failure when used in `scrypt`. The
`scrypt_block_mix` would generate a different value.
Note that this change was never released, so there is no security impact. | diff --git a/Cargo.lock b/Cargo.lock
index 748854e..a5540d1 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -145,7 +145,6 @@ dependencies = [
name = "salsa20"
version = "0.11.0-pre"
dependencies = [
- "cfg-if",
"cipher",
"hex-literal",
]
diff --git a/salsa20/Cargo.toml b/salsa20/Cargo.toml
index 7d611c3..5307bf3 10... | 8 | 90 | 316 |
943863351f0f7f538e5b2862f9dd43342a61a86d | Tony Arcieri | 2024-02-05T21:11:30 | Bump cipher to v0.5.0-pre.3 (#343) | diff --git a/Cargo.lock b/Cargo.lock
index 7c5bef2..5696b86 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -36,9 +36,9 @@ dependencies = [
[[package]]
name = "cipher"
-version = "0.5.0-pre.2"
+version = "0.5.0-pre.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "40619e61d2e7c018604193e... | 7 | 17 | 17 |
521d8749c8249f7ac7a5fd216389579ba5398d36 | Tony Arcieri | 2024-01-10T18:53:44 | Bump `cipher` to v0.5.0-pre.2 (#339) | diff --git a/Cargo.lock b/Cargo.lock
index 3cde1a2..7c5bef2 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -11,9 +11,9 @@ checksum = "847495c209977a90e8aad588b959d0ca9f5dc228096d29a6bd3defd53f35eaec"
[[package]]
name = "block-padding"
-version = "0.4.0-pre.3"
+version = "0.4.0-pre.4"
source = "registry+https://github... | 9 | 35 | 35 |
a8463f2031213f4f53cfbfbe55c0550ce0f223ab | Alfredo Garcia | 2024-01-07T16:25:29 | salsa20: SSE2 backend (#328)
Provides a ~14% performance improvement | diff --git a/Cargo.lock b/Cargo.lock
index 896d1d5..412659a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -125,6 +125,7 @@ dependencies = [
name = "salsa20"
version = "0.10.2"
dependencies = [
+ "cfg-if",
"cipher",
"hex-literal",
]
diff --git a/salsa20/Cargo.toml b/salsa20/Cargo.toml
index 8feda05..f5068c0 100644... | 7 | 316 | 70 |
3a53d4172a4aa6cf05cfbe455ea851d8072f05d9 | Артём Павлов [Artyom Pavlov] | 2023-10-27T11:59:03 | Update Cargo.lock | diff --git a/Cargo.lock b/Cargo.lock
index 3534ed1..2702252 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -48,9 +48,9 @@ dependencies = [
[[package]]
name = "cpufeatures"
-version = "0.2.10"
+version = "0.2.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3fbc60abd742b35f2492f808e1ab... | 1 | 2 | 2 |
2439a15c15bec2a3f9f7bc6c61e9cfbf967fc92f | Артём Павлов [Artyom Pavlov] | 2023-10-23T11:17:43 | Update Cargo.lock | diff --git a/Cargo.lock b/Cargo.lock
index 79de67e..3534ed1 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -48,9 +48,9 @@ dependencies = [
[[package]]
name = "cpufeatures"
-version = "0.2.9"
+version = "0.2.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a17b76ff3a4162b0b27f354a0c870... | 1 | 6 | 6 |
c0e9af704f59e7be659b07b7486844e6c1272622 | Артём Павлов [Artyom Pavlov] | 2023-07-05T11:05:30 | Update Cargo.lock | diff --git a/Cargo.lock b/Cargo.lock
index b957676..79de67e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -48,9 +48,9 @@ dependencies = [
[[package]]
name = "cpufeatures"
-version = "0.2.8"
+version = "0.2.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "03e69e28e9f7f77debdedbaafa2866... | 1 | 4 | 4 |
61e39e6685b5ba4b107fa5d64d57d9d848af9725 | Chuong Dong | 2023-06-23T18:47:46 | Fix Hc256Core h2 function (#324) | diff --git a/hc-256/src/lib.rs b/hc-256/src/lib.rs
index 000ea01..0d8b45a 100644
--- a/hc-256/src/lib.rs
+++ b/hc-256/src/lib.rs
@@ -198,10 +198,10 @@ impl Hc256Core {
#[inline]
fn h2(&self, x: u32) -> u32 {
- self.qtable[(x & 0xff) as usize]
- .wrapping_add(self.qtable[(256 + ((x >> 8) & ... | 1 | 4 | 4 |
4cb053fd948e03bf7adf4a349db5df462b9365c6 | Артём Павлов [Artyom Pavlov] | 2023-06-16T13:27:23 | Update Cargo.lock | diff --git a/Cargo.lock b/Cargo.lock
index 1aa9341..b957676 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -11,9 +11,9 @@ checksum = "847495c209977a90e8aad588b959d0ca9f5dc228096d29a6bd3defd53f35eaec"
[[package]]
name = "block-padding"
-version = "0.3.2"
+version = "0.3.3"
source = "registry+https://github.com/rust-la... | 1 | 12 | 12 |
5715617908e0187ebf3e73a793507f0e8d635379 | Dirk Stolle | 2022-10-06T02:36:58 | Fix some typos (#307) | diff --git a/chacha20/src/lib.rs b/chacha20/src/lib.rs
index cdbb274..576bf38 100644
--- a/chacha20/src/lib.rs
+++ b/chacha20/src/lib.rs
@@ -14,7 +14,7 @@
//! - [`XChaCha8`] / [`XChaCha12`]: reduced round variants of XChaCha20
//! - [`ChaCha20Legacy`]: "djb" variant with 64-bit nonce.
//! **WARNING:** This implement... | 1 | 2 | 2 |
6b8b1098d24f56fe7373fd9931d90aa0b5845116 | Artyom Pavlov | 2022-09-04T20:54:52 | Update cpufeatures to v0.2.5 (#305) | diff --git a/Cargo.lock b/Cargo.lock
index 822f4e4..b322bb4 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -48,9 +48,9 @@ dependencies = [
[[package]]
name = "cpufeatures"
-version = "0.2.3"
+version = "0.2.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1079fb8528d9f9c888b1e8aa651e6e... | 1 | 2 | 2 |
8a9b95d973a13aa90166159a395b17ed385bbe1f | Артём Павлов [Artyom Pavlov] | 2022-08-19T10:23:14 | Update Cargo.lock | diff --git a/Cargo.lock b/Cargo.lock
index 26265b2..822f4e4 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -11,9 +11,9 @@ checksum = "847495c209977a90e8aad588b959d0ca9f5dc228096d29a6bd3defd53f35eaec"
[[package]]
name = "block-padding"
-version = "0.3.1"
+version = "0.3.2"
source = "registry+https://github.com/rust-la... | 1 | 14 | 14 |
5396b38053ebd171b19207eca7b14ef6c7a9f8dd | Tony Arcieri | 2022-03-27T17:55:19 | rc4/Cargo.toml: add `arc4` and `arcfour` to keywords | diff --git a/rc4/Cargo.toml b/rc4/Cargo.toml
index 1c3c337..d8517b9 100644
--- a/rc4/Cargo.toml
+++ b/rc4/Cargo.toml
@@ -9,7 +9,7 @@ rust-version = "1.56"
readme = "README.md"
documentation = "https://docs.rs/rc4"
repository = "https://github.com/RustCrypto/stream-ciphers"
-keywords = ["crypto", "stream-cipher", "tr... | 1 | 1 | 1 |
a0b0a931e087da35a9617e21c5327a6157780ca2 | Artyom Pavlov | 2022-02-22T17:15:43 | Update Cargo.lock (#295) | diff --git a/Cargo.lock b/Cargo.lock
index 7ee9256..a43a8a9 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -36,9 +36,9 @@ dependencies = [
[[package]]
name = "cipher"
-version = "0.4.2"
+version = "0.4.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "035bd298db1557b73a277e9c599c5a50e0d... | 1 | 2 | 2 |
97c046f19784822156c040ec0e962ca8ef913c89 | str4d | 2021-10-19T18:51:17 | ctr: Add SAFETY comment (#278)
Suggested during review of `aes-gcm` for inclusion in Fuchsia OS:
https://fuchsia-review.googlesource.com/c/fuchsia/+/585023 | diff --git a/ctr/src/lib.rs b/ctr/src/lib.rs
index 292e200..c83aba9 100644
--- a/ctr/src/lib.rs
+++ b/ctr/src/lib.rs
@@ -241,5 +241,11 @@ fn xor(buf: &mut [u8], key: &[u8]) {
#[inline(always)]
fn to_slice<C: BlockEncrypt>(blocks: &ParBlocks<C>) -> &[u8] {
let blocks_len = C::BlockSize::to_usize() * C::ParBlocks:... | 1 | 6 | 0 |
2e64ad5387e1fe3b5f8112902a8378339861a522 | Tony Arcieri | 2021-08-29T13:30:00 | chacha20: SSE2 autodetection support (#270)
i586 targets do not have SSE2 enabled by default.
This commit adds autodetection for SSE2 in addition to the existing
autodetection for AVX2, and falls back to a portable implementation if
SSE2 is not available. | diff --git a/chacha20/src/backend/autodetect.rs b/chacha20/src/backend/autodetect.rs
index 1d5f795..d90fe43 100644
--- a/chacha20/src/backend/autodetect.rs
+++ b/chacha20/src/backend/autodetect.rs
@@ -1,8 +1,7 @@
-//! Autodetection support for AVX2 CPU intrinsics on x86 CPUs, with fallback
-//! to the SSE2 backend when... | 1 | 42 | 19 |
335f0d90be26e78f183cc31f2ea6b32657cac4b7 | Tony Arcieri | 2021-08-29T03:50:32 | chacha20: lock to `zeroize` <1.5 (#269)
Now that MSRV is 1.51+, this allows use of `zeroize` 1.4. | diff --git a/chacha20/Cargo.toml b/chacha20/Cargo.toml
index 7c2dc5a..9a6aa9f 100644
--- a/chacha20/Cargo.toml
+++ b/chacha20/Cargo.toml
@@ -20,7 +20,7 @@ edition = "2018"
cfg-if = "1"
cipher = { version = "0.3", optional = true }
rand_core = { version = "0.6", optional = true, default-features = false }
-zeroize = ... | 1 | 1 | 1 |
7c86911857e2568a1cada95ace5e300c89fae129 | str4d | 2021-08-29T03:13:58 | chacha20: Remove mutable borrows from AVX2 backend (#268)
The use of `&mut StateWord` everywhere caused a `vmovdqa` to be inserted
after almost every operation, and also caused the diagonalization to use
`vpermilps` instead of seeing the optimisation to `vpshufd`.
The new `State` struct helps to manage the passin... | diff --git a/chacha20/src/backend/avx2.rs b/chacha20/src/backend/avx2.rs
index 94b6908..d31daad 100644
--- a/chacha20/src/backend/avx2.rs
+++ b/chacha20/src/backend/avx2.rs
@@ -35,90 +35,115 @@ union StateWord {
impl StateWord {
#[inline]
+ #[must_use]
#[target_feature(enable = "avx2")]
- unsafe fn a... | 1 | 146 | 118 |
99577d62b4bb241e948c121fef0c2809e6367d76 | str4d | 2021-08-09T00:43:43 | `chacha20`: Improve AVX2 performance (#261)
* chacha20: Add a `backend::avx2::StateWord` helper union
This removes a bunch of instructions for accessing the 128-bit lanes.
* chacha20: Rename backend state words to match RFC 7539
* chacha20: Optimise diagonalization in SSE2 and AVX2 backends
The `b` state w... | diff --git a/chacha20/src/backend/avx2.rs b/chacha20/src/backend/avx2.rs
index 7449002..a5bed3d 100644
--- a/chacha20/src/backend/avx2.rs
+++ b/chacha20/src/backend/avx2.rs
@@ -17,13 +17,24 @@ use core::arch::x86::*;
#[cfg(target_arch = "x86_64")]
use core::arch::x86_64::*;
+/// Helper union for accessing per-block... | 2 | 217 | 107 |
d614a3b1882ab1cf5ba175d9eef3ccc2ceb59c1a | Artyom Pavlov | 2021-07-20T14:58:41 | use consistent doc attribute across crates (#258) | diff --git a/Cargo.lock b/Cargo.lock
index 0c48c35..255cff7 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -190,7 +190,7 @@ dependencies = [
[[package]]
name = "rabbit"
-version = "0.3.0"
+version = "0.3.1"
dependencies = [
"cipher",
"zeroize",
diff --git a/cfb-mode/Cargo.toml b/cfb-mode/Cargo.toml
index d0527b4.... | 17 | 35 | 23 |
8f9f8b58d7f7ec5050acbad5716c9b848d7f6e5c | Artyom Pavlov | 2021-07-08T18:20:11 | ctr: make implementation generic over block size (#252) | diff --git a/Cargo.lock b/Cargo.lock
index d515b7a..16b7e1f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -83,6 +83,8 @@ dependencies = [
"aes",
"cipher",
"hex-literal",
+ "kuznyechik",
+ "magma",
]
[[package]]
@@ -122,12 +124,31 @@ dependencies = [
"proc-macro-hack",
]
+[[package]]
+name = "kuznyechik"
+v... | 9 | 298 | 120 |
ed56c85708f76e22256231790c7fda4cb2e28b08 | Sören Meier | 2021-06-21T22:04:27 | export `XChaCha` (#249)
* export `XChaCha`
* Add some comments to `XChaCha` | diff --git a/chacha20/src/lib.rs b/chacha20/src/lib.rs
index 0c70e48..14f2798 100644
--- a/chacha20/src/lib.rs
+++ b/chacha20/src/lib.rs
@@ -111,7 +111,7 @@ pub use rng::{
};
#[cfg(feature = "xchacha")]
-pub use self::xchacha::{XChaCha12, XChaCha20, XChaCha8, XNonce};
+pub use self::xchacha::{XChaCha, XChaCha12, XC... | 2 | 8 | 1 |
926bd31b55f09b98829eb5e033137a6f9a5dea9a | Philip Robinson | 2021-05-25T14:57:53 | Add RFC 8439 ChaCha20 test vectors test (#245) | diff --git a/chacha20/tests/lib.rs b/chacha20/tests/lib.rs
index c907c91..d406b85 100644
--- a/chacha20/tests/lib.rs
+++ b/chacha20/tests/lib.rs
@@ -207,6 +207,93 @@ mod overflow {
}
}
+mod chacha20test {
+ use chacha20::{
+ cipher::{NewCipher, StreamCipher},
+ ChaCha20, Key, Nonce,
+ };
+ ... | 1 | 87 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.