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 |
|---|---|---|---|---|---|---|---|
c134bb14690ff7a5fed8ab71ea9a9bacd190202d | Parker Timmerman | 2021-09-20T01:28:58 | fix the path to the README | diff --git a/compact_str/Cargo.toml b/compact_str/Cargo.toml
index 70bce4ff..35c023ca 100644
--- a/compact_str/Cargo.toml
+++ b/compact_str/Cargo.toml
@@ -7,7 +7,7 @@ edition = "2018"
license = "MIT"
homepage = "https://github.com/ParkMyCar/compact_str"
repository = "https://github.com/ParkMyCar/compact_str"
-readme... | 1 | 1 | 1 |
79fad04a8da49dfe02f354d8b8bb789bb0ce3636 | Parker Timmerman | 2021-09-19T18:47:06 | fix cargo clippy | diff --git a/compact_str/src/repr/inline.rs b/compact_str/src/repr/inline.rs
index c5eab8a0..10ccbef6 100644
--- a/compact_str/src/repr/inline.rs
+++ b/compact_str/src/repr/inline.rs
@@ -39,6 +39,7 @@ impl InlineString {
if text.len() > MAX_INLINE_SIZE {
// HACK: This allows us to make assertions ... | 3 | 4 | 0 |
4409816fa791bef7889906ea10d8b9d736e89380 | Parker Timmerman | 2021-09-19T18:46:17 | cargo fmt | diff --git a/compact_str/src/repr/mod.rs b/compact_str/src/repr/mod.rs
index db46cc4e..6d342ded 100644
--- a/compact_str/src/repr/mod.rs
+++ b/compact_str/src/repr/mod.rs
@@ -1,7 +1,4 @@
-use static_assertions::{
- assert_eq_size,
- const_assert_eq,
-};
+use static_assertions::{assert_eq_size, const_assert_eq};
... | 1 | 1 | 4 |
4d700f006ddfdb6f126b8ad0d47cc224ff4e22cd | Parker Timmerman | 2021-09-19T18:46:02 | little bit of cleanup | diff --git a/compact_str/src/repr/discriminant.rs b/compact_str/src/repr/discriminant.rs
index 8fb09408..2f72c45d 100644
--- a/compact_str/src/repr/discriminant.rs
+++ b/compact_str/src/repr/discriminant.rs
@@ -16,7 +16,8 @@ pub struct DiscriminantMask {
}
impl DiscriminantMask {
- pub fn disciminant(&self) -> D... | 3 | 8 | 4 |
a339ec6470b23fad2c38e68d132b69315c89a4f9 | Parker Timmerman | 2021-09-19T18:40:24 | cleanup benchmarks, improve performance, add methods to create a const CompactStr | diff --git a/compact_str/Cargo.toml b/compact_str/Cargo.toml
index 6c7a4189..7cca78ba 100644
--- a/compact_str/Cargo.toml
+++ b/compact_str/Cargo.toml
@@ -20,5 +20,9 @@ smol_str = "0.1"
tracing_alloc = { path = "../tracing_alloc" }
[[bench]]
-name = "perf"
+name = "compact_str"
+harness = false
+
+[[bench]]
+name =... | 9 | 215 | 135 |
616816d93f7db39250788def37b3de38fe2eaaf3 | Parker Timmerman | 2021-09-19T16:15:24 | cargo fmt | diff --git a/compact_str/benches/perf.rs b/compact_str/benches/perf.rs
index 029c076e..ff42a41c 100644
--- a/compact_str/benches/perf.rs
+++ b/compact_str/benches/perf.rs
@@ -1,5 +1,5 @@
-use criterion::{criterion_group, criterion_main, BenchmarkId, Criterion};
use compact_str::CompactStr;
+use criterion::{criterion_g... | 4 | 10 | 6 |
fae3e173ebd53cae7ef51d584ff249ca05378ec5 | Parker Timmerman | 2021-09-19T16:14:46 | rename to compact_str | diff --git a/Cargo.toml b/Cargo.toml
index dee92dad..d934e31f 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,2 +1,2 @@
[workspace]
-members = ["examples/serde", "smart_str", "tracing_alloc"]
+members = ["examples/serde", "compact_str", "tracing_alloc"]
diff --git a/smart_str/Cargo.toml b/compact_str/Cargo.toml
similar... | 15 | 98 | 98 |
b31df31d0c06e74bb6de3df27e715c06a5ba6574 | Parker Timmerman | 2021-09-18T17:39:46 | add serde example | diff --git a/Cargo.toml b/Cargo.toml
index 7bb48765..dee92dad 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,2 +1,2 @@
[workspace]
-members = ["smart_str", "tracing_alloc"]
+members = ["examples/serde", "smart_str", "tracing_alloc"]
diff --git a/examples/serde/Cargo.toml b/examples/serde/Cargo.toml
new file mode 10064... | 4 | 48 | 2 |
498ebc520595dcc64813c17c490ffa4c276eb19f | Parker Timmerman | 2021-09-18T02:30:45 | cargo fmt | diff --git a/smart_str/benches/perf.rs b/smart_str/benches/perf.rs
index fbfad544..aeee09f9 100644
--- a/smart_str/benches/perf.rs
+++ b/smart_str/benches/perf.rs
@@ -13,9 +13,11 @@ fn bench_string_creation(c: &mut Criterion) {
.collect();
for word in words {
- group.bench_with_input(BenchmarkId:... | 4 | 8 | 16 |
3e43a4d0e3566a73e90db8273ae4c51108c7bb0d | Parker Timmerman | 2021-09-18T02:30:30 | use const instead of number | diff --git a/smart_str/src/repr/heap.rs b/smart_str/src/repr/heap.rs
index fc3f1a41..bb6b0231 100644
--- a/smart_str/src/repr/heap.rs
+++ b/smart_str/src/repr/heap.rs
@@ -1,10 +1,13 @@
use static_assertions::assert_eq_size;
use std::{mem, sync::Arc};
-use super::MAX_SIZE;
+use super::{
+ HEAP_MASK,
+ MAX_SIZE... | 1 | 5 | 2 |
755fa5ea2b7d564ea8a1005cf58afa71ddd0befd | Parker Timmerman | 2021-09-18T02:28:10 | clean up the code a little bit, benchmarks a WIP | diff --git a/smart_str/benches/perf.rs b/smart_str/benches/perf.rs
index 9c7b1504..fbfad544 100644
--- a/smart_str/benches/perf.rs
+++ b/smart_str/benches/perf.rs
@@ -1,84 +1,126 @@
-use criterion::{criterion_group, criterion_main, Criterion};
+use criterion::{criterion_group, criterion_main, BenchmarkId, Criterion};
... | 5 | 150 | 110 |
70c01f5de63837a68d98f2374a6327e9e167bdb0 | Parker Timmerman | 2021-09-17T14:15:03 | fix some warnings, make more assertions | diff --git a/smart_str/src/lib.rs b/smart_str/src/lib.rs
index 03bc005a..935f5d47 100644
--- a/smart_str/src/lib.rs
+++ b/smart_str/src/lib.rs
@@ -1,3 +1,5 @@
+#![deny(warnings)]
+
//! `SmartStr` is a smart immutable string type that stores itself on the stack, if possible, and seamlessly
//! interacts with `String`s... | 2 | 5 | 1 |
b34e8dd79c0ac524b3f06417a5b81b4eb02bf35f | Parker Timmerman | 2021-09-17T14:06:29 | fix tests | diff --git a/smart_str/src/tests.rs b/smart_str/src/tests.rs
index f451f689..f2672fd7 100644
--- a/smart_str/src/tests.rs
+++ b/smart_str/src/tests.rs
@@ -93,7 +93,7 @@ fn test_medium_unicode() {
("🦀😀😃😄😁🦀", true),
];
- #[cfg(target_pointer_width = "32", allow(unused_variables))]
+ #[allow(un... | 1 | 1 | 1 |
61eab09eb7f1e3ffa89407cae2bf44d7e35f01e8 | Parker Timmerman | 2021-09-17T04:04:58 | fix tests on 32 bit | diff --git a/smart_str/src/tests.rs b/smart_str/src/tests.rs
index f49671ee..f451f689 100644
--- a/smart_str/src/tests.rs
+++ b/smart_str/src/tests.rs
@@ -49,7 +49,7 @@ fn test_short_ascii() {
fn test_short_unicode() {
let strs = [
("🦀", false),
- ("🌧☀️🌈", false),
+ ("🌧☀️", false),
... | 1 | 2 | 1 |
59603d50c082ba23fbe02073b55c9d10f00691a6 | Parker Timmerman | 2021-09-17T04:00:34 | dont collect words for randomized tests | diff --git a/smart_str/tests/correctness.rs b/smart_str/tests/correctness.rs
index e907dc5f..65f27fc5 100644
--- a/smart_str/tests/correctness.rs
+++ b/smart_str/tests/correctness.rs
@@ -15,22 +15,19 @@ fn test_randomized_roundtrip() {
let runs = option_env!("RANDOMIZED_RUNS")
.map(|v| v.parse().expect(... | 1 | 10 | 13 |
57362c75309948ab664110fa4db582915abecc2a | Parker Timmerman | 2021-09-17T00:55:20 | initial commit | diff --git a/smart_str/tests/alloc.rs b/smart_str/tests/alloc.rs
index 5642f79c..db88d2e9 100644
--- a/smart_str/tests/alloc.rs
+++ b/smart_str/tests/alloc.rs
@@ -1,15 +1,14 @@
-use rand::{distributions::Alphanumeric, rngs::StdRng, Rng, SeedableRng};
+use rand::{distributions, rngs::StdRng, Rng, SeedableRng};
use smar... | 1 | 10 | 9 |
d8fb56fcea38191f2c7000ef10ea5756c1f7f8d5 | Parker Timmerman | 2021-09-14T04:39:58 | update test to use different assertions for 32-bit archs | diff --git a/smart_str/src/repr/discriminant.rs b/smart_str/src/repr/discriminant.rs
index 792a3ae5..611ffef0 100644
--- a/smart_str/src/repr/discriminant.rs
+++ b/smart_str/src/repr/discriminant.rs
@@ -22,7 +22,7 @@ impl DiscriminantMask {
pub fn disciminant(&self) -> Discriminant {
if self.val == HEAP_M... | 2 | 7 | 1 |
a13fc8e34053a23026aae36ee613949834415951 | Parker Timmerman | 2021-09-14T04:34:18 | maybe? fix little endian | diff --git a/smart_str/src/repr/discriminant.rs b/smart_str/src/repr/discriminant.rs
index 611ffef0..792a3ae5 100644
--- a/smart_str/src/repr/discriminant.rs
+++ b/smart_str/src/repr/discriminant.rs
@@ -22,7 +22,7 @@ impl DiscriminantMask {
pub fn disciminant(&self) -> Discriminant {
if self.val == HEAP_M... | 1 | 1 | 1 |
424a19cd7c1e0aff4ab08cde72c064887ab99eb4 | Parker Timmerman | 2021-09-14T04:27:36 | fmt and clippy | diff --git a/smart_str/src/repr/discriminant.rs b/smart_str/src/repr/discriminant.rs
index 051ade6a..611ffef0 100644
--- a/smart_str/src/repr/discriminant.rs
+++ b/smart_str/src/repr/discriminant.rs
@@ -22,12 +22,10 @@ impl DiscriminantMask {
pub fn disciminant(&self) -> Discriminant {
if self.val == HEAP... | 3 | 6 | 15 |
7ef8eb8e8f27cb059f1a14f1735a4ca16af02ca3 | Parker Timmerman | 2021-09-14T04:26:23 | implement PackedString | diff --git a/smart_str/Cargo.toml b/smart_str/Cargo.toml
index d46b4f50..95b9a416 100644
--- a/smart_str/Cargo.toml
+++ b/smart_str/Cargo.toml
@@ -6,7 +6,6 @@ edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
-bitflags = "1"
serde = { v... | 10 | 173 | 114 |
1b516f195dd618570095ff7e96a60fc24428a1ee | Parker Timmerman | 2021-09-12T19:39:52 | cargo fmt | diff --git a/smart_str/src/serde.rs b/smart_str/src/serde.rs
index f5b028bc..a9c07768 100644
--- a/smart_str/src/serde.rs
+++ b/smart_str/src/serde.rs
@@ -27,21 +27,24 @@ fn smart_str<'de: 'a, 'a, D: Deserializer<'de>>(deserializer: D) -> Result<Smart
fn visit_bytes<E: Error>(self, v: &[u8]) -> Result<Self::Va... | 1 | 7 | 4 |
dce70f95b79231822867c16f4a0a57e71aedf186 | Parker Timmerman | 2021-09-12T19:35:52 | add serde implementation for SmartStr | diff --git a/smart_str/Cargo.toml b/smart_str/Cargo.toml
index 1364eb27..ed4581ac 100644
--- a/smart_str/Cargo.toml
+++ b/smart_str/Cargo.toml
@@ -7,8 +7,12 @@ edition = "2018"
[dependencies]
bitflags = "1"
+serde = { version = "1", optional = true, default-features = false }
static_assertions = "1"
+[features]
... | 3 | 69 | 0 |
bfd3a4bdbc3b6c8f8e237934c477a5a773020556 | Parker Timmerman | 2021-09-12T19:08:06 | fmt and clippy | diff --git a/smart_str/src/lib.rs b/smart_str/src/lib.rs
index 46077c3e..2af15b20 100644
--- a/smart_str/src/lib.rs
+++ b/smart_str/src/lib.rs
@@ -23,7 +23,6 @@ mod metadata;
mod repr;
use repr::Repr;
-
#[cfg(test)]
mod tests;
@@ -81,11 +80,6 @@ impl SmartStr {
self.repr.as_str()
}
- #[inline... | 3 | 5 | 12 |
c579d6bbc462e2caf52d183016a5f535a6237965 | Parker Timmerman | 2021-09-12T19:03:09 | refactor to make code layout more clear, impl a lot of traits for SmartStr, add documentation to public facing structs | diff --git a/smart_str/src/lib.rs b/smart_str/src/lib.rs
index 7fec4952..46077c3e 100644
--- a/smart_str/src/lib.rs
+++ b/smart_str/src/lib.rs
@@ -1,5 +1,195 @@
+//! `SmartStr` is a smart immutable string type that stores itself on the stack, if possible, and seamlessly
+//! interacts with `String`s and `&str`s.
+//!
+... | 8 | 415 | 251 |
b0e2045c2d1f556100f9f61ba327150078bad28e | Parker Timmerman | 2021-09-12T01:01:46 | rename tracing to tracing_alloc to give it a bit more context | diff --git a/Cargo.toml b/Cargo.toml
index 381a2fdd..7bb48765 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,2 +1,2 @@
[workspace]
-members = ["smart_str", "tracing"]
+members = ["smart_str", "tracing_alloc"]
diff --git a/smart_str/Cargo.toml b/smart_str/Cargo.toml
index f27bf628..1364eb27 100644
--- a/smart_str/Cargo... | 5 | 5 | 5 |
9b8d19f30124be884167ff90e59b07740ac6be91 | Parker Timmerman | 2021-09-12T00:30:32 | fmt and clippy | diff --git a/smart_str/benches/perf.rs b/smart_str/benches/perf.rs
index 641a3a29..9c7b1504 100644
--- a/smart_str/benches/perf.rs
+++ b/smart_str/benches/perf.rs
@@ -1,6 +1,6 @@
use criterion::{criterion_group, criterion_main, Criterion};
-use smartstring::alias::String as SmartString;
use smart_str::SmartStr;
+use ... | 2 | 40 | 18 |
f202b3e22f37951b326f93183fff6d977809cfb3 | Parker Timmerman | 2021-09-12T00:27:19 | little bit of refactoring | diff --git a/smart_str/src/repr.rs b/smart_str/src/repr.rs
index 2e266412..a35da08f 100644
--- a/smart_str/src/repr.rs
+++ b/smart_str/src/repr.rs
@@ -16,6 +16,7 @@ pub union Repr {
}
impl Repr {
+ #[inline(always)]
pub fn new<T: AsRef<str>>(text: T) -> Self {
let text = text.as_ref();
@@ -39,24 ... | 1 | 13 | 18 |
39b85d3931b04b7ca178ac4d63a719d550510062 | Parker Timmerman | 2021-09-12T00:13:38 | add benchmarks against other popular libraries | diff --git a/smart_str/Cargo.toml b/smart_str/Cargo.toml
index d5389542..f27bf628 100644
--- a/smart_str/Cargo.toml
+++ b/smart_str/Cargo.toml
@@ -10,6 +10,13 @@ bitflags = "1"
static_assertions = "1"
[dev-dependencies]
+criterion = { version = "0.3", features = ["html_reports"] }
proptest = "1"
rand = "0.8"
+sma... | 5 | 104 | 5 |
d4c505f5ca66645b8ab63ee88006841772545231 | Parker Timmerman | 2021-09-11T23:20:55 | fix cargo fmt | diff --git a/smart_str/src/repr.rs b/smart_str/src/repr.rs
index ad1d2219..7a7c3330 100644
--- a/smart_str/src/repr.rs
+++ b/smart_str/src/repr.rs
@@ -1,8 +1,5 @@
use static_assertions::*;
-use std::{
- mem::ManuallyDrop,
- sync::Arc,
-};
+use std::{mem::ManuallyDrop, sync::Arc};
use crate::metadata::{Discrim... | 2 | 1 | 5 |
d35acbb4655baeddc4e194f070b1509e1c53caec | Parker Timmerman | 2021-09-11T22:17:34 | fix clippy, again | diff --git a/tracing/src/lib.rs b/tracing/src/lib.rs
index a56d2a3d..5f1ea8a3 100644
--- a/tracing/src/lib.rs
+++ b/tracing/src/lib.rs
@@ -12,7 +12,7 @@ impl Event {
pub fn delta(&self) -> isize {
match self {
Self::Alloc { size, .. } => *size as isize,
- Self::Freed { size, .. } =... | 1 | 1 | 1 |
4ca94acd5d97b29c6ed06d5dc5bd13c21ea8a9c2 | Parker Timmerman | 2021-09-11T22:13:08 | clippy and fmt fixes | diff --git a/smart_str/src/repr.rs b/smart_str/src/repr.rs
index c08829bf..d4ab155a 100644
--- a/smart_str/src/repr.rs
+++ b/smart_str/src/repr.rs
@@ -29,7 +29,7 @@ impl Repr {
#[inline(always)]
pub fn as_str(&self) -> &str {
- self.cast().as_str()
+ self.cast().into_str()
}
#[inli... | 2 | 7 | 12 |
afea154178d97ab91fdf5dd2ffddee1e4dbefa04 | Parker Timmerman | 2021-09-11T22:10:21 | check if a string is heap allocated as part of proptest | diff --git a/smart_str/src/repr.rs b/smart_str/src/repr.rs
index 7557ed80..c08829bf 100644
--- a/smart_str/src/repr.rs
+++ b/smart_str/src/repr.rs
@@ -32,6 +32,12 @@ impl Repr {
self.cast().as_str()
}
+ #[inline]
+ pub fn is_heap_allocated(&self) -> bool {
+ matches!(self.cast(), StrongRepr... | 2 | 20 | 1 |
d2301d932121bb61a21fe40522d3591c5d5054c6 | Parker Timmerman | 2021-09-11T22:05:44 | add proptest for correctness, randomly test allocations | diff --git a/smart_str/Cargo.toml b/smart_str/Cargo.toml
index c8a55996..d5389542 100644
--- a/smart_str/Cargo.toml
+++ b/smart_str/Cargo.toml
@@ -10,4 +10,6 @@ bitflags = "1"
static_assertions = "1"
[dev-dependencies]
+proptest = "1"
+rand = "0.8"
tracing = { path = "../tracing" }
diff --git a/smart_str/src/metad... | 5 | 64 | 16 |
29384786d261108efbd4821ca0d97d050ec1b58a | Parker Timmerman | 2021-09-11T21:00:45 | create a workspace and add a basic tracing allocator to assert the correct behavior | diff --git a/Cargo.toml b/Cargo.toml
index 37aff3a4..381a2fdd 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,10 +1,2 @@
-[package]
-name = "smart_str"
-version = "0.1.0"
-edition = "2018"
-
-# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
-
-[dependencies]
-bitflags = "1... | 9 | 144 | 24 |
667e1b99674afc4aceca1a498f08068846c3aa79 | Parker Timmerman | 2021-09-11T20:09:37 | impl Drop for Repr | diff --git a/src/metadata.rs b/src/metadata.rs
index 5d0e9eb8..3fbb2521 100644
--- a/src/metadata.rs
+++ b/src/metadata.rs
@@ -60,7 +60,7 @@ mod tests {
let discriminants = [Discriminant::HEAP, Discriminant::INLINE];
for d in discriminants {
- for i in (0..=127) {
+ for i in 0.... | 2 | 23 | 2 |
dec6a6e43facedced88e167a80b74f2e880c1b4c | Parker Timmerman | 2021-09-11T16:43:58 | test commit | diff --git a/src/smart.rs b/src/smart.rs
index f16d6807..cbaf3fdc 100644
--- a/src/smart.rs
+++ b/src/smart.rs
@@ -1,5 +1,6 @@
use crate::repr::Repr;
+#[derive(Debug, Copy, Clone)]
pub struct SmartStr {
_repr: Repr,
} | 1 | 1 | 0 |
a80c8475decc057301cf79ee1611e50b8d8b6f50 | Parker Timmerman | 2021-09-11T16:26:58 | initial commit | diff --git a/Cargo.toml b/Cargo.toml
index 3e2f4466..6eb0f0ef 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -6,3 +6,4 @@ edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
+static_assertions = "1"
diff --git a/src/lib.rs b/src/lib.rs
index ... | 4 | 23 | 7 |
b612904ba06ce5b789efbb66ab53d81acde24577 | Artyom Pavlov | 2026-04-10T12:17:31 | aes: remove `zeroize_works` test (#551)
The test is arguably redundant and, worse, contains UB which triggers Miri. | diff --git a/aes/src/lib.rs b/aes/src/lib.rs
index b1cfa1d..46075e7 100644
--- a/aes/src/lib.rs
+++ b/aes/src/lib.rs
@@ -154,80 +154,3 @@ use cipher::{array::Array, consts::U16};
/// 128-bit AES block
pub type Block = Array<u8, U16>;
-
-#[cfg(test)]
-mod tests {
- #[cfg(feature = "zeroize")]
- #[test]
- fn... | 1 | 0 | 77 |
f4682300988b2965582f2b42618c8208fa13e0e5 | Shun Sakai | 2026-03-04T22:38:19 | Remove unnecessary `clone`s from examples and tests (#540) | diff --git a/aes/src/lib.rs b/aes/src/lib.rs
index ed56287..c9f1f60 100644
--- a/aes/src/lib.rs
+++ b/aes/src/lib.rs
@@ -65,7 +65,7 @@
//! // Initialize cipher
//! let cipher = Aes128::new(&key);
//!
-//! let block_copy = block.clone();
+//! let block_copy = block;
//!
//! // Encrypt block in-place
//! cipher.enc... | 6 | 7 | 7 |
55244b65aa28b2cead992782ca03ced55d14766e | Artyom Pavlov | 2026-02-25T15:42:05 | Bump `cipher` to v0.5.1 (#536) | diff --git a/Cargo.lock b/Cargo.lock
index 6d0c47f..01ca7fd 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -37,9 +37,9 @@ checksum = "89af0b093cc13baa4e51e64e65ec2422f7e73aea0e612e5ad3872986671622f1"
[[package]]
name = "block-buffer"
-version = "0.11.0"
+version = "0.12.0"
source = "registry+https://github.com/rust-l... | 5 | 50 | 54 |
a37f6ee9ddbe8a038135462d4efeb5c671455bed | Tony Arcieri | 2026-02-09T15:54:22 | aes: bump `cpubits` to v0.1; `cpufeatures` to v0.3 (#535) | diff --git a/Cargo.lock b/Cargo.lock
index c03de11..6d0c47f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -104,15 +104,15 @@ dependencies = [
[[package]]
name = "cpubits"
-version = "0.1.0-rc.3"
+version = "0.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "11a8c0210fa48ba3ea04ac1e9... | 2 | 6 | 6 |
974ad9499cd1a370d7fcf3211a99bbb825ce0400 | Tony Arcieri | 2026-02-09T15:36:33 | Bump `cipher` to v0.5 (#534)
Release PR: RustCrypto/traits#2281 | diff --git a/Cargo.lock b/Cargo.lock
index 368ebcc..c03de11 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -91,9 +91,9 @@ checksum = "2fd1289c04a9ea8cb22300a459a72a385d7c73d3259e2ed7dcb2af674838cfa9"
[[package]]
name = "cipher"
-version = "0.5.0-rc.8"
+version = "0.5.0"
source = "registry+https://github.com/rust-lang... | 22 | 48 | 48 |
175f7cb25dfa1cdf992fedb8a68d98b855832d1e | Tony Arcieri | 2026-02-02T04:30:58 | aes: use `cpubits` crate (#532)
The `cpubits` crate contains a macro for selecting between 32-bit and
64-bit backends, incorporating 64-bit overrides for certain natively
32-bit targets with native ISA support for operations on "register
pairs", namely ARMv7 and WASM. It also supports overriding the selection
with `cf... | diff --git a/Cargo.lock b/Cargo.lock
index c2da165..06f5d0f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -6,8 +6,8 @@ version = 4
name = "aes"
version = "0.9.0-rc.3"
dependencies = [
- "cfg-if",
"cipher",
+ "cpubits",
"cpufeatures",
"hex-literal",
"zeroize",
@@ -102,6 +102,12 @@ dependencies = [
"zeroize",
... | 4 | 26 | 9 |
d32271c082b34d7c9766a88ce224e47f5053048a | Tony Arcieri | 2026-02-01T20:43:07 | Cut new prereleases (#531)
Releases the following with a `cipher` v0.5.0-rc.7 dependency, which
transitively depends on `rand_core` v0.10 by way of `crypto-common`:
- `aes` v0.9.0-rc.3
- `aria` v0.2.0-rc.1
- `belt-block` v0.2.0-rc.3
- `blowfish` v0.10.0-rc.3
- `camellia` v0.2.0-rc.1
- `cast5` v0.12.0-rc.1
- `cast6` v... | diff --git a/Cargo.lock b/Cargo.lock
index f5ac90b..c2da165 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4,7 +4,7 @@ version = 4
[[package]]
name = "aes"
-version = "0.9.0-rc.2"
+version = "0.9.0-rc.3"
dependencies = [
"cfg-if",
"cipher",
@@ -15,7 +15,7 @@ dependencies = [
[[package]]
name = "aria"
-versio... | 22 | 42 | 42 |
5cfdb862c264542a13e80d78a14d7d6ac36da32d | Tony Arcieri | 2026-02-01T20:29:12 | Bump `cipher` dependency to v0.5.0-rc.7 (#530)
Includes transitive `rand_core` v0.10 bump (though it doesn't impact
this repo) | diff --git a/Cargo.lock b/Cargo.lock
index 7a67901..f5ac90b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -91,9 +91,9 @@ checksum = "2fd1289c04a9ea8cb22300a459a72a385d7c73d3259e2ed7dcb2af674838cfa9"
[[package]]
name = "cipher"
-version = "0.5.0-rc.6"
+version = "0.5.0-rc.7"
source = "registry+https://github.com/rust... | 22 | 46 | 46 |
beb7203370168bc6baaae2ce12c84381ab7ad2e0 | Aaron Feickert | 2026-01-25T18:16:30 | Remove AES weak key test (#526)
A test for alleged AES weak keys was introduced in #465 based on [TCG
documentation](https://trustedcomputinggroup.org/wp-content/uploads/TPM-2.0-1.83-Part-1-Architecture.pdf#page=82).
But as noted in a
[comment](https://github.com/RustCrypto/block-ciphers/issues/525#issuecomment-379180... | diff --git a/aes/src/armv8.rs b/aes/src/armv8.rs
index 995e6ba..aed6caf 100644
--- a/aes/src/armv8.rs
+++ b/aes/src/armv8.rs
@@ -21,7 +21,6 @@ use cipher::{
AlgorithmName, BlockCipherDecClosure, BlockCipherDecrypt, BlockCipherEncClosure,
BlockCipherEncrypt, BlockSizeUser, Key, KeyInit, KeySizeUser,
const... | 7 | 1 | 135 |
c638cf241963d460b2ae9bdf88fd5082f1053693 | Tony Arcieri | 2026-01-24T16:17:27 | Bump `cipher` to v0.5.0-rc.6 (#527) | diff --git a/Cargo.lock b/Cargo.lock
index 1d8e547..7a67901 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -91,9 +91,9 @@ checksum = "2fd1289c04a9ea8cb22300a459a72a385d7c73d3259e2ed7dcb2af674838cfa9"
[[package]]
name = "cipher"
-version = "0.5.0-rc.3"
+version = "0.5.0-rc.6"
source = "registry+https://github.com/rust... | 22 | 48 | 48 |
9cc53c4d39f8164041783fa248c3432ae9f41535 | Shun Sakai | 2026-01-20T11:33:55 | speck: fix documentation field (#521) | diff --git a/speck/Cargo.toml b/speck/Cargo.toml
index 3094918..7432532 100644
--- a/speck/Cargo.toml
+++ b/speck/Cargo.toml
@@ -4,7 +4,7 @@ version = "0.1.0-rc.2"
authors = ["RustCrypto Developers"]
license = "Apache-2.0 OR MIT"
description = "Speck block cipher algorithm"
-documentation = "https://docs.rs/speck"
+... | 1 | 1 | 1 |
17bbd0bba642cfce4a483ac281143525462c640d | Tony Arcieri | 2026-01-07T23:27:50 | aes: change AES-NI `ParBlocksSize` back to 8 (#519)
Changes it from 9 back to 8, like it was in `aes` v0.8.
Anecdotally we've had some reports of better performance: #515
I also think an odd number of blocks just seems a bit unusual to me, and
8 blocks is what I've typically seen in other implementations. | diff --git a/aes/src/x86.rs b/aes/src/x86.rs
index 6fa1f1f..e479e50 100644
--- a/aes/src/x86.rs
+++ b/aes/src/x86.rs
@@ -17,7 +17,7 @@ use cipher::{
AlgorithmName, BlockCipherDecBackend, BlockCipherDecClosure, BlockCipherDecrypt,
BlockCipherEncBackend, BlockCipherEncClosure, BlockCipherEncrypt, BlockSizeUser,... | 1 | 2 | 2 |
2e05b004cbd1c4e82e4c9be95d196f834a228659 | Tony Arcieri | 2025-12-27T20:30:43 | Bump `cipher` dependency to v0.5.0-rc.3 (#518)
This brings `getrandom` v0.4.0-rc.0 and `rand_core` v0.10.0-rc-3 | diff --git a/Cargo.lock b/Cargo.lock
index 33c4c04..d932fc6 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -37,9 +37,9 @@ checksum = "89af0b093cc13baa4e51e64e65ec2422f7e73aea0e612e5ad3872986671622f1"
[[package]]
name = "block-buffer"
-version = "0.11.0-rc.5"
+version = "0.11.0"
source = "registry+https://github.com/r... | 22 | 48 | 48 |
87c3aa7119600522cf8911b587bb699e60968396 | Arthur Gautier | 2025-12-02T05:41:27 | aes: vaes detection is provided by cpufeatures-0.2.12 (#514)
This fixes a compilation error when bumping to aes-0.9.0-rc.2 (which
brings a vaes backend):
```
error: no rules expected `"vaes"`
--> $HOME/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/aes-0.9.0-rc.2/src/x86.rs:38:38
|
38 | cpufeatures::... | diff --git a/aes/Cargo.toml b/aes/Cargo.toml
index 9f19585..a28856f 100644
--- a/aes/Cargo.toml
+++ b/aes/Cargo.toml
@@ -18,7 +18,7 @@ cipher = "0.5.0-rc.2"
zeroize = { version = "1.5.6", optional = true, default-features = false, features = ["aarch64"] }
[target.'cfg(any(target_arch = "aarch64", target_arch = "x86... | 1 | 1 | 1 |
25df7c9e01777d42150708e49399a2f7d5265d22 | Tony Arcieri | 2025-11-05T17:04:53 | Cut rc.2 prereleases (#512)
Cuts the following prereleases:
- `aes` v0.9.0-rc.2
- `belt-block` v0.2.0-rc.2
- `blowfish` v0.10.0-rc.2
- `des` v0.9.0-rc.2
- `gift-cipher` v0.1.0-rc.2
- `kuznyechik` v0.9.0-rc.2
- `magma` v0.10.0-rc.2
- `rc6` v0.1.0-rc.2
- `serpent` v0.6.0-rc.2
- `sm4` v0.6.0-rc.2
- `speck-cipher` v0.1.0... | diff --git a/Cargo.lock b/Cargo.lock
index ac43acf..33c4c04 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4,7 +4,7 @@ version = 4
[[package]]
name = "aes"
-version = "0.9.0-rc.1"
+version = "0.9.0-rc.2"
dependencies = [
"cfg-if",
"cipher",
@@ -23,7 +23,7 @@ dependencies = [
[[package]]
name = "belt-block"
-... | 12 | 22 | 22 |
69b374601aa12975961f980534996a53ccbe51fc | Tony Arcieri | 2025-11-05T16:39:40 | Bump `cipher` dependency to v0.5.0-rc.2 (#511) | diff --git a/Cargo.lock b/Cargo.lock
index cf15f47..ac43acf 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -31,8 +31,9 @@ dependencies = [
[[package]]
name = "blobby"
-version = "0.4.0-pre.0"
-source = "git+https://github.com/RustCrypto/utils#8fd37074861e2d8e400a53d68e10ce713944fa65"
+version = "0.4.0"
+source = "regi... | 23 | 54 | 60 |
3eeaff09917e384ca4a651929397a486d759b7a2 | Tony Arcieri | 2025-10-05T13:09:51 | rc2 v0.9.0-pre.0 (#507)
Closes #504 | diff --git a/Cargo.lock b/Cargo.lock
index 6b865f3..d2aef8e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -190,7 +190,7 @@ dependencies = [
[[package]]
name = "rc2"
-version = "0.9.0-pre"
+version = "0.9.0-pre.0"
dependencies = [
"cipher",
]
diff --git a/rc2/Cargo.toml b/rc2/Cargo.toml
index 34a2732..da0dd6e 1006... | 2 | 2 | 2 |
c2e35db17da00ab5ce870f5ef04ec09262bc615c | Tony Arcieri | 2025-10-05T12:56:22 | Switch from `doc_auto_cfg` to `doc_cfg` (#505)
The former has been removed from the latest `nightly` compiler releases
Also removes the `--cfg docsrs` settings, since they're now automatic
See also: RustCrypto/traits#2028 | diff --git a/aes/Cargo.toml b/aes/Cargo.toml
index 244b67b..46e93f2 100644
--- a/aes/Cargo.toml
+++ b/aes/Cargo.toml
@@ -35,4 +35,3 @@ check-cfg = ["cfg(aes_compact)", "cfg(aes_force_soft)"]
[package.metadata.docs.rs]
all-features = true
-rustdoc-args = ["--cfg", "docsrs"]
diff --git a/aes/src/lib.rs b/aes/src/lib.... | 40 | 20 | 40 |
ffcfc5c380793695f9d7083990130603a6d781dd | Tony Arcieri | 2025-10-05T12:40:22 | magma: fix typos (#506)
The `typos` CI action recently started complaining about these:
https://github.com/RustCrypto/block-ciphers/actions/runs/18258797158/job/51983873161?pr=505
See also: RustCrypto/hashes#741 | diff --git a/magma/src/sboxes.rs b/magma/src/sboxes.rs
index a5e7ed0..8563cd4 100644
--- a/magma/src/sboxes.rs
+++ b/magma/src/sboxes.rs
@@ -41,9 +41,9 @@ pub(crate) trait SboxExt: Sbox {
fn apply_sbox(a: u32) -> u32 {
let mut v = 0;
for i in 0..4 {
- let shft = 8 * i;
- let... | 1 | 3 | 3 |
bcedd162243f52d5dca34b7b9cc67a02114bb29b | Artyom Pavlov | 2025-09-05T14:56:56 | Migrate to new dev macro (#502) | diff --git a/Cargo.lock b/Cargo.lock
index e6d8ae0..5c0a7dd 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -32,8 +32,7 @@ dependencies = [
[[package]]
name = "blobby"
version = "0.4.0-pre.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4a859067dcb257cb2ae028cb821399b55140b76fb8b2a360e0... | 9 | 33 | 28 |
2c68c5ba76b01772b50530e229d39dba3fe2071c | Tony Arcieri | 2025-09-03T01:49:41 | Cut prereleases with `hybrid-array` v0.4 support (#500)
Releases the following:
- `aes` v0.9.0-rc.1
- `belt-block` v0.2.0-rc.1
- `blowfish` v0.10.0-rc.1
- `des` v0.9.0-rc.1
- `gift-cipher` v0.0.1-rc.1
- `kuznyechik` v0.9.0-rc.1
- `magma` v0.10.0-rc.1 | diff --git a/Cargo.lock b/Cargo.lock
index 61b5bbb..e6d8ae0 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4,7 +4,7 @@ version = 4
[[package]]
name = "aes"
-version = "0.9.0-rc.0"
+version = "0.9.0-rc.1"
dependencies = [
"cfg-if",
"cipher",
@@ -23,7 +23,7 @@ dependencies = [
[[package]]
name = "belt-block"
-... | 8 | 14 | 14 |
cbc75f837701a1114bd50748cff6cdb65e8d3c1d | Tony Arcieri | 2025-09-02T19:58:02 | Bump `cipher` to v0.5.0-rc.1 (#499)
Notably this includes `hybrid-array` v0.4 support | diff --git a/Cargo.lock b/Cargo.lock
index a9e672a..61b5bbb 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -37,8 +37,9 @@ checksum = "4a859067dcb257cb2ae028cb821399b55140b76fb8b2a360e052fe109019db43"
[[package]]
name = "block-buffer"
-version = "0.11.0-rc.4"
-source = "git+https://github.com/RustCrypto/utils.git#adfcc... | 22 | 56 | 57 |
ca1dffbc63faca87ebddff9f2667a23d9d793811 | Tony Arcieri | 2025-09-02T00:37:17 | Bump `hybrid-array` to v0.4 (#498)
The upstream changes also includes RustCrypto/traits#1916, so until the
tests are updated this temporarily disables them | diff --git a/Cargo.lock b/Cargo.lock
index d6d5806..a9e672a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -35,6 +35,15 @@ version = "0.4.0-pre.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4a859067dcb257cb2ae028cb821399b55140b76fb8b2a360e052fe109019db43"
+[[package]]
+name = "block-b... | 9 | 44 | 25 |
73b104d31747ff763de345372ceab6eeffd04319 | Tony Arcieri | 2025-05-30T14:08:03 | Bump `cipher` to v0.5.0-rc.0 (#483)
Also includes `rc.0` releases of crates which were previously released
as `pre.3` (i.e. ones which are used as `dev-dependencies` elsewhere in
the project) | diff --git a/Cargo.lock b/Cargo.lock
index ee9ae0d..f63847a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4,7 +4,7 @@ version = 4
[[package]]
name = "aes"
-version = "0.9.0-pre.3"
+version = "0.9.0-rc.0"
dependencies = [
"cfg-if",
"cipher",
@@ -23,7 +23,7 @@ dependencies = [
[[package]]
name = "belt-block"
... | 21 | 59 | 59 |
fbb68f40b122909d92e40ee8a50112b6e5d0af8f | Artyom Pavlov | 2025-03-07T14:27:04 | Release pre.3 crate versions (#479) | diff --git a/Cargo.lock b/Cargo.lock
index bd6ac51..ee9ae0d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4,7 +4,7 @@ version = 4
[[package]]
name = "aes"
-version = "0.9.0-pre.2"
+version = "0.9.0-pre.3"
dependencies = [
"cfg-if",
"cipher",
@@ -23,7 +23,7 @@ dependencies = [
[[package]]
name = "belt-block"... | 7 | 16 | 16 |
fb1ee62c4442fd6acaa6e3aa3f36c7891579660d | Jack Lloyd | 2025-02-28T02:34:16 | serpent: Actually bitslice encryption and decryption (#474)
The Serpent sboxes were designed to be bitsliced, but previously were
implemented via table lookups instead.
This change improves performance by approximately a factor of 20. In
addition, the avoidance of table lookups removes the risk of cache-based
side ch... | diff --git a/serpent/src/bitslice.rs b/serpent/src/bitslice.rs
new file mode 100644
index 0000000..8cdc1a4
--- /dev/null
+++ b/serpent/src/bitslice.rs
@@ -0,0 +1,459 @@
+//!
+//! Serpent uses 8 4-bit Sboxes which were designed to be implemented using small
+//! circuits. For each block these Sboxes are applied in a bit... | 3 | 544 | 123 |
cc7bd8d6a417d71cbc0abe5642a746026279c97b | Artyom Pavlov | 2025-02-14T15:31:48 | des: add subkey equality check to TDES weak key test (#470) | diff --git a/des/src/des.rs b/des/src/des.rs
index 917871f..90052aa 100644
--- a/des/src/des.rs
+++ b/des/src/des.rs
@@ -53,7 +53,8 @@ impl KeyInit for Des {
#[inline]
fn weak_key_test(key: &Key<Self>) -> Result<(), WeakKeyError> {
- match super::weak_key_test(&key.0) {
+ let key = u64::from_n... | 4 | 36 | 14 |
5ac1ffda0a8dea7b5f4936ae0711007e5d3d16c6 | Artyom Pavlov | 2025-02-14T12:06:04 | aes: tweak weak key test (#469)
The new code results in a better codegen with resulting binaries still
being const time: https://rust.godbolt.org/z/x1a8aTsbY | diff --git a/Cargo.lock b/Cargo.lock
index 9f55077..c3a6d88 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -10,7 +10,6 @@ dependencies = [
"cipher",
"cpufeatures",
"hex-literal",
- "subtle",
"zeroize",
]
@@ -217,12 +216,6 @@ dependencies = [
"hex-literal",
]
-[[package]]
-name = "subtle"
-version = "2.6.1"... | 8 | 55 | 47 |
717c382d2cdb49a858a6ecd3988090628425f0a3 | Artyom Pavlov | 2025-02-14T11:29:54 | des: tweak weak key test (#468)
The new code results in a slightly better codegen while still being
const time, including 32 bit targets:
https://rust.godbolt.org/z/K7cjj5d1P | diff --git a/Cargo.lock b/Cargo.lock
index a85c2b2..9f55077 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -114,7 +114,6 @@ version = "0.9.0-pre.2"
dependencies = [
"cipher",
"hex-literal",
- "subtle",
]
[[package]]
diff --git a/des/Cargo.toml b/des/Cargo.toml
index 12f396b..550d544 100644
--- a/des/Cargo.toml
++... | 6 | 103 | 108 |
b40a0038dadde829bc03e424c4557c282de87747 | Arthur Gautier | 2025-02-11T23:30:23 | des: zeroize key (#467) | diff --git a/Cargo.lock b/Cargo.lock
index 5fa9a48..a85c2b2 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -83,8 +83,7 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
[[package]]
name = "cipher"
version = "0.5.0-pre.7"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-c... | 3 | 9 | 4 |
e83fa489e10f1349d149bc3cee7dec1dab3e1145 | Arthur Gautier | 2025-02-11T22:28:31 | aes,des: implement weak key detection (#465)
See https://github.com/RustCrypto/traits/issues/1738 | diff --git a/Cargo.lock b/Cargo.lock
index 202e3a5..5fa9a48 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -10,6 +10,7 @@ dependencies = [
"cipher",
"cpufeatures",
"hex-literal",
+ "subtle",
"zeroize",
]
@@ -103,8 +104,7 @@ dependencies = [
[[package]]
name = "crypto-common"
version = "0.2.0-rc.1"
-source = ... | 13 | 287 | 2 |
551e7919395e17cc7efe9a68024a64512ac8282f | Artyom Pavlov | 2025-01-31T12:53:05 | Fix `clippy::precedence` lints (#466) | diff --git a/belt-block/src/consts.rs b/belt-block/src/consts.rs
index ce2a4cc..38b1bca 100644
--- a/belt-block/src/consts.rs
+++ b/belt-block/src/consts.rs
@@ -174,7 +174,7 @@ mod tests {
let mut h: [u32; 256] = [0u32; 256];
for x in 0..256 {
let mut y: u32 = H[x] as u32;
- ... | 3 | 11 | 11 |
81f1eb483b4a0d6447cc5a812973b5f3f0969b25 | Artyom Pavlov | 2025-01-29T00:30:38 | aes: move `Block8` to the hazmat module (#463)
The backends were changed to use a different number of parallel blocks,
so the alias is now used only by hazmat functions. | diff --git a/aes/src/armv8/hazmat.rs b/aes/src/armv8/hazmat.rs
index f094243..1820679 100644
--- a/aes/src/armv8/hazmat.rs
+++ b/aes/src/armv8/hazmat.rs
@@ -4,7 +4,7 @@
//! implementations in this crate, but instead provides raw AES-NI accelerated
//! access to the AES round function gated under the `hazmat` crate fe... | 7 | 11 | 12 |
cfbb0a59fba82510381b5490b70fd686ac88c35e | Tony Arcieri | 2024-07-31T16:28:15 | xtea v0.0.1-pre.0 (#441) | diff --git a/Cargo.lock b/Cargo.lock
index 2b406c2..e624b6f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -239,7 +239,7 @@ checksum = "42ff0bf0c66b8238c6f3b578df37d0b7848e55df8577b3f74f92a69acceeb825"
[[package]]
name = "xtea"
-version = "0.0.0"
+version = "0.0.1-pre.0"
dependencies = [
"cipher",
]
diff --git a/x... | 2 | 2 | 2 |
384175d0fa57864653aa74d32bf4cfbc51ff2bcb | Tony Arcieri | 2024-07-31T14:36:47 | gift-cipher v0.0.1-pre.0 (#440) | diff --git a/Cargo.lock b/Cargo.lock
index 57e8b41..2b406c2 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -118,7 +118,7 @@ dependencies = [
[[package]]
name = "gift-cipher"
-version = "0.0.0"
+version = "0.0.1-pre.0"
dependencies = [
"cipher",
]
diff --git a/gift/Cargo.toml b/gift/Cargo.toml
index 33d86dd..1cebbd... | 2 | 3 | 3 |
c7ca2b0383eeb93db7c8db6f726c41ae3e58342c | Artyom Pavlov | 2024-07-29T13:56:37 | aes: bump `hex-literal` to v0.4 (#437) | diff --git a/Cargo.lock b/Cargo.lock
index a6e2c7c..57e8b41 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -9,7 +9,7 @@ dependencies = [
"cfg-if",
"cipher",
"cpufeatures",
- "hex-literal 0.3.4",
+ "hex-literal",
"zeroize",
]
@@ -18,7 +18,7 @@ name = "aria"
version = "0.2.0-pre"
dependencies = [
"cipher",
- ... | 2 | 15 | 19 |
12a5d6408f9e718dce3316e445bf1c63e24a14ec | Tony Arcieri | 2024-07-29T00:58:36 | gift+xtea: bump dependencies (#433)
- Updates `cipher` to v0.5.0-pre.6
- Sets both crates' versions to 0.0.0
- Renames gift to `gift-cipher` which is presently unregistered | diff --git a/Cargo.lock b/Cargo.lock
index 0cdf9cc..8eea6c7 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4,7 +4,7 @@ version = 3
[[package]]
name = "aes"
-version = "0.9.0-pre.0"
+version = "0.9.0-pre.1"
dependencies = [
"cfg-if",
"cipher",
@@ -13,6 +13,15 @@ dependencies = [
"zeroize",
]
+[[package]]
+na... | 6 | 638 | 27 |
4e6de5353628913835141f54ccf4483fb6ec4fe4 | Tony Arcieri | 2024-07-27T19:36:17 | blowfish v0.10.0-pre.1 (#432) | diff --git a/blowfish/Cargo.toml b/blowfish/Cargo.toml
index 35d68be..3eb9a59 100644
--- a/blowfish/Cargo.toml
+++ b/blowfish/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "blowfish"
-version = "0.10.0-pre"
+version = "0.10.0-pre.1"
description = "Blowfish block cipher"
authors = ["RustCrypto Developers"]
license = ... | 1 | 1 | 1 |
ab802d8370c17e36c990c868607056e57461e740 | Tony Arcieri | 2024-07-26T22:26:46 | Cut pre.1 prereleases (#431)
Cuts a new release of every crate which previously received a pre.0
prerelease, i.e. is used as a (dev-)dependency in downstream projects
that need to be upgraded.
This includes the following:
- `aes` v0.9.0-pre.1
- `belt-block` v0.2.0-pre.1
- `des` v0.9.0-pre.1
- `kuznyechik` v... | diff --git a/aes/Cargo.toml b/aes/Cargo.toml
index 2a45ef1..6065cbe 100644
--- a/aes/Cargo.toml
+++ b/aes/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "aes"
-version = "0.9.0-pre.0"
+version = "0.9.0-pre.1"
description = "Pure Rust implementation of the Advanced Encryption Standard (a.k.a. Rijndael)"
authors = ["Rus... | 5 | 5 | 5 |
da5444c1b13cf006b52490282ddbfebca3a725de | Tony Arcieri | 2024-07-26T22:09:58 | Bump `cipher` to v0.5.0-pre.6 (#430) | diff --git a/Cargo.lock b/Cargo.lock
index abe3908..a3a2647 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -81,9 +81,9 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
[[package]]
name = "cipher"
-version = "0.5.0-pre.4"
+version = "0.5.0-pre.6"
source = "registry+https://github.com/ru... | 22 | 49 | 44 |
f7011725bd23296b8de300cd865381b5915b9b9f | Tony Arcieri | 2024-07-26T21:14:34 | aes,kuznyechik,threefish: Rust 1.80 lint fixes (#429)
- add `lints.rust.unexpected_cfgs` to Cargo.toml
- threefish: fix typo in `cfg(feature = "cipher")` | diff --git a/aes/Cargo.toml b/aes/Cargo.toml
index 4fe31c7..023b599 100644
--- a/aes/Cargo.toml
+++ b/aes/Cargo.toml
@@ -15,7 +15,7 @@ categories = ["cryptography", "no-std"]
[dependencies]
cfg-if = "1"
cipher = "=0.5.0-pre.4"
-zeroize = { version = "1.5.6", optional = true, default_features = false, features = ["aa... | 3 | 10 | 2 |
3e7c873e6234025599c19b0e01e4bd3481bbf065 | Joe Birr-Pixton | 2024-07-21T19:30:42 | aes256.rs: fix typo (#427) | diff --git a/aes/src/ni/aes256.rs b/aes/src/ni/aes256.rs
index bea090a..b42e2e6 100644
--- a/aes/src/ni/aes256.rs
+++ b/aes/src/ni/aes256.rs
@@ -3,7 +3,7 @@ use crate::{Block, Block8};
use cipher::inout::InOut;
use core::mem;
-/// AES-192 round keys
+/// AES-256 round keys
pub(super) type RoundKeys = [__m128i; 15]... | 1 | 1 | 1 |
c577715951ed183b7980a3b7499797723909c1dc | Arthur Gautier | 2024-03-05T17:03:45 | bump `cipher` dependency to `0.5.0-pre.4` (#413) | diff --git a/Cargo.lock b/Cargo.lock
index 96dff53..bd8023c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -81,8 +81,9 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
[[package]]
name = "cipher"
-version = "0.5.0-pre.2"
-source = "git+https://github.com/RustCrypto/traits.git#4459f6012a... | 20 | 44 | 46 |
71f858516ac466baf4c20c70c21871f3d66a863e | Artyom Pavlov | 2024-02-13T14:09:15 | aes: use const preconditions assert (#408) | diff --git a/aes/src/armv8/expand.rs b/aes/src/armv8/expand.rs
index b4bfac8..4d5b74c 100644
--- a/aes/src/armv8/expand.rs
+++ b/aes/src/armv8/expand.rs
@@ -20,9 +20,9 @@ pub unsafe fn expand_key<const L: usize, const N: usize>(key: &[u8; L]) -> [uint
// Sanity check, as this is required in order for the followi... | 1 | 3 | 3 |
3e1e83fdd4be9d49f6ee9d75a36f1c3a25d59fc8 | Joshua Liebow-Feeser | 2024-02-13T03:19:10 | aes: Assert precondition required for soundness (#407) | diff --git a/aes/src/armv8/expand.rs b/aes/src/armv8/expand.rs
index 0a0eaa6..b4bfac8 100644
--- a/aes/src/armv8/expand.rs
+++ b/aes/src/armv8/expand.rs
@@ -18,6 +18,9 @@ pub unsafe fn expand_key<const L: usize, const N: usize>(key: &[u8; L]) -> [uint
let mut expanded_keys: [uint8x16_t; N] = mem::zeroed();
+ ... | 1 | 3 | 0 |
1206250a44df60b917e0effa1df045a842410d7e | Tony Arcieri | 2024-01-29T02:39:27 | Bump `hybrid-array` to v0.2.0-rc.3 (#405) | diff --git a/Cargo.lock b/Cargo.lock
index 212954e..96dff53 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -129,9 +129,9 @@ checksum = "6fe2267d4ed49bc07b63801559be28c718ea06c4738b7a03c94df7386d2cde46"
[[package]]
name = "hybrid-array"
-version = "0.2.0-rc.2"
+version = "0.2.0-rc.3"
source = "registry+https://github.... | 1 | 2 | 2 |
a4a96f77ec1d84786fdd2b620fe6c3ed7860da80 | Tony Arcieri | 2024-01-27T15:56:26 | Bump `hybrid-array` to v0.2.0-rc.2 (#404) | diff --git a/Cargo.lock b/Cargo.lock
index c1fbf2e..212954e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -129,9 +129,9 @@ checksum = "6fe2267d4ed49bc07b63801559be28c718ea06c4738b7a03c94df7386d2cde46"
[[package]]
name = "hybrid-array"
-version = "0.2.0-rc.0"
+version = "0.2.0-rc.2"
source = "registry+https://github.... | 1 | 2 | 2 |
bf57b4399ee00a7696d0fc6f84cd21ec532a1e54 | Artyom Pavlov | 2024-01-24T12:08:12 | belt-block: mark `to_u32` function as private (#402) | diff --git a/belt-block/src/lib.rs b/belt-block/src/lib.rs
index 3baf067..321bfc4 100644
--- a/belt-block/src/lib.rs
+++ b/belt-block/src/lib.rs
@@ -170,7 +170,7 @@ pub struct InvalidLengthError;
/// # Panics
/// If length of `src` is not equal to `4 * N`.
#[inline(always)]
-pub fn to_u32<const N: usize>(src: &[u8])... | 2 | 11 | 2 |
6556a186975c44f053630593ec1341f0e03ce5ea | Tony Arcieri | 2024-01-10T18:01:08 | Bump `cipher` dependency to v0.5.0-pre.2 (#398) | diff --git a/Cargo.lock b/Cargo.lock
index f2a2a85..3002385 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -81,9 +81,9 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
[[package]]
name = "cipher"
-version = "0.5.0-pre.1"
+version = "0.5.0-pre.2"
source = "registry+https://github.com/ru... | 19 | 44 | 44 |
e76698eee4d87626112db7716d87a48cc878a0fd | Artyom Pavlov | 2023-11-27T11:45:35 | rc5: minor code tweak (#393) | diff --git a/Cargo.lock b/Cargo.lock
index 44aa477..5aad667 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -93,9 +93,9 @@ dependencies = [
[[package]]
name = "cpufeatures"
-version = "0.2.9"
+version = "0.2.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a17b76ff3a4162b0b27f354a0c870... | 2 | 9 | 9 |
278350598251d27b8cc1f04af4395061b1749a20 | Artyom Pavlov | 2023-09-25T22:45:05 | aes: add #[inline] attributes for KeyInit::new impls (#386) | diff --git a/aes/src/armv8.rs b/aes/src/armv8.rs
index 3ece1b4..20307bb 100644
--- a/aes/src/armv8.rs
+++ b/aes/src/armv8.rs
@@ -147,6 +147,7 @@ macro_rules! define_aes_impl {
}
impl KeyInit for $name_enc {
+ #[inline]
fn new(key: &Key<Self>) -> Self {
Self {... | 2 | 4 | 0 |
197b1170e826b23b566f7e557a39d4822bddb986 | Артём Павлов [Artyom Pavlov] | 2023-07-05T11:07:03 | Update Cargo.lock | diff --git a/Cargo.lock b/Cargo.lock
index c64fea6..7a99397 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -85,9 +85,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 |
eb309c63877558aaac0a61b00be3433e2c70117e | Tony Arcieri | 2023-06-17T23:12:23 | aes: refactor ARMv8 `expand_key` (#367)
Changes `expand_key` to an `unsafe fn` that uses `target_feature`.
Removes the TODOs: due to AES-192 this function can't be easily
refactored to use `vinterpretq_u8_u32`. | diff --git a/aes/src/armv8.rs b/aes/src/armv8.rs
index 0bd9287..3ece1b4 100644
--- a/aes/src/armv8.rs
+++ b/aes/src/armv8.rs
@@ -149,7 +149,7 @@ macro_rules! define_aes_impl {
impl KeyInit for $name_enc {
fn new(key: &Key<Self>) -> Self {
Self {
- round_keys: ex... | 3 | 16 | 18 |
e8970bea89cf9d5600db0215f59ebf83802ca7ee | Артём Павлов [Artyom Pavlov] | 2023-06-16T13:25:30 | Update Cargo.lock | diff --git a/Cargo.lock b/Cargo.lock
index 14bf8b5..b8a91ac 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -85,9 +85,9 @@ dependencies = [
[[package]]
name = "cpufeatures"
-version = "0.2.7"
+version = "0.2.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3e4c1eaa2012c47becbbad2ab17548... | 1 | 2 | 2 |
efd9d8a3e406bc3cb2fb3a0032122319a3834a80 | Артём Павлов [Artyom Pavlov] | 2023-04-21T09:06:59 | Update Cargo.lock | diff --git a/Cargo.lock b/Cargo.lock
index 07a000a..96d2df6 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -85,9 +85,9 @@ dependencies = [
[[package]]
name = "cpufeatures"
-version = "0.2.6"
+version = "0.2.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "280a9f2d8b3a38871a3c8a46fb80db... | 1 | 6 | 6 |
7822e53eccbe68e5fa9580b933b2e5db5ece3423 | Max Thorn | 2023-03-11T20:19:28 | fix doc typo in hazmat.rs (#355) | diff --git a/aes/src/hazmat.rs b/aes/src/hazmat.rs
index 9b5555e..4776bb4 100644
--- a/aes/src/hazmat.rs
+++ b/aes/src/hazmat.rs
@@ -8,7 +8,7 @@
//! There are very few valid uses cases for this API. It's intended to be used
//! for implementing well-reviewed higher-level constructions.
//!
-//! We do NOT recommendin... | 1 | 1 | 1 |
fee20eb6f5de54c4811c78abc6786cafddbd8e17 | Артём Павлов [Artyom Pavlov] | 2023-03-09T00:13:31 | Update Cargo.lock | diff --git a/Cargo.lock b/Cargo.lock
index c662b1f..678c171 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -73,9 +73,9 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
[[package]]
name = "cipher"
-version = "0.4.3"
+version = "0.4.4"
source = "registry+https://github.com/rust-lang/crat... | 1 | 6 | 6 |
48242cc25cf9fa8af87acef6deb5b5edde1265f9 | Artyom Pavlov | 2022-10-27T04:28:30 | Remove html_root_url (#344) | diff --git a/aes/Cargo.toml b/aes/Cargo.toml
index 8baf16c..ebf0415 100644
--- a/aes/Cargo.toml
+++ b/aes/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "aes"
-version = "0.8.2" # Also update html_root_url in lib.rs when bumping this
+version = "0.8.2"
description = "Pure Rust implementation of the Advanced Encryption ... | 24 | 24 | 36 |
6c232487c9c9436b059438896c1aeb56e9a35a0b | Dirk Stolle | 2022-09-23T22:27:40 | Fix a few typos (#334) | diff --git a/aes/src/lib.rs b/aes/src/lib.rs
index 34589f2..5b695ed 100644
--- a/aes/src/lib.rs
+++ b/aes/src/lib.rs
@@ -73,7 +73,7 @@
//! cipher.decrypt_block(&mut block);
//! assert_eq!(block, block_copy);
//!
-//! // implementation supports parrallel block processing
+//! // implementation supports parallel block... | 3 | 5 | 5 |
bdf7f5b9cfaeba9d68a2e38f02ebcf2f88e26005 | Artyom Pavlov | 2022-09-19T11:53:48 | belt-block: minor changes in inner docs (#332) | diff --git a/belt-block/src/lib.rs b/belt-block/src/lib.rs
index e4b4e58..e4dbc4d 100644
--- a/belt-block/src/lib.rs
+++ b/belt-block/src/lib.rs
@@ -85,32 +85,34 @@ impl BeltBlock {
// Step 5
for i in 1..9 {
- // 5.1) b <- b xor G5(a+K[7i-6])
+ // 5.1) b ← b ⊕ G₅(a ⊞ k[7i-6])
... | 1 | 26 | 23 |
c154bb65d621ec677e9969c4c8fe5bd7dd15f383 | Alexandr Kitaev | 2022-09-16T08:42:37 | fix/misspell in description (#331) | diff --git a/belt-block/Cargo.toml b/belt-block/Cargo.toml
index 2898566..d16aa50 100644
--- a/belt-block/Cargo.toml
+++ b/belt-block/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "belt-block"
version = "0.1.0"
-description = "betl-block block cipher implementation"
+description = "belt-block block cipher implementati... | 1 | 1 | 1 |
a81c990a20946b87c2d7fb3e3f3d96b81e71970b | Tony Arcieri | 2022-08-25T20:42:32 | aes: remove use of `aarch64_target_feature` (#325)
It's been stabilized: rust-lang/rust#90620
Because of that, it's breaking the build on recent nightlies:
https://github.com/RustCrypto/block-ciphers/runs/7968517726?check_suite_focus=true#step:7:103
> error: the feature `aarch64_target_feature` has been stabl... | diff --git a/aes/Cargo.toml b/aes/Cargo.toml
index 842be97..a8f6d8b 100644
--- a/aes/Cargo.toml
+++ b/aes/Cargo.toml
@@ -15,17 +15,23 @@ categories = ["cryptography", "no-std"]
[dependencies]
cfg-if = "1"
cipher = "0.4.2"
-zeroize = { version = "1.5.6", optional = true, default_features = false }
[target.'cfg(any... | 2 | 10 | 6 |
04c5d466f15d48474c93a746015612f6ffd9d573 | Артём Павлов [Artyom Pavlov] | 2022-08-19T10:22:37 | Update Cargo.lock | diff --git a/Cargo.lock b/Cargo.lock
index 5b3327f..af92367 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -69,18 +69,18 @@ dependencies = [
[[package]]
name = "cpufeatures"
-version = "0.2.2"
+version = "0.2.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "59a6001667ab124aebae2a495118... | 1 | 12 | 12 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.