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 |
|---|---|---|---|---|---|---|---|
ad22c7b90da1d23cc500e7f89a0f8a4571397b4e | Artyom Pavlov | 2026-02-13T20:10:24 | Replace `AsynStreamCipher` impl with inherent methods in CFB crates (#99)
It's a quick-and-dirty solution for the removal of the trait from
`cipher`. I plan to do a more involved rework later. | diff --git a/cfb-mode/src/decrypt.rs b/cfb-mode/src/decrypt.rs
index 2775d32..de4a6ed 100644
--- a/cfb-mode/src/decrypt.rs
+++ b/cfb-mode/src/decrypt.rs
@@ -1,9 +1,9 @@
use cipher::{
- AlgorithmName, Array, AsyncStreamCipher, Block, BlockCipherDecrypt, BlockCipherEncBackend,
- BlockCipherEncClosure, BlockCipherE... | 8 | 145 | 33 |
49199e92658dbba0066a3ba071f805ea4169cf74 | Tony Arcieri | 2026-02-02T17:56:44 | Bump `cipher` to v0.5.0-rc.8 (#97)
This notably renames the `cipher::crypto_common` re-export to just
`cipher::common`, which necessitates a new release of all of the crates
in this repo:
- `belt-ctr` v0.2.0-rc.3
- `cbc` v0.2.0-rc.3
- `cfb-mode` v0.9.0-rc.3
- `cfb8` v0.9.0-rc.3
- `ctr` v0.10.0-rc.3
- `cts` v0.7.0-rc.... | diff --git a/Cargo.lock b/Cargo.lock
index 8da11cd..e07aa4b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4,27 +4,27 @@ version = 4
[[package]]
name = "aes"
-version = "0.9.0-rc.2"
+version = "0.9.0-rc.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fd9e1c818b25efb32214df89b0ec22f01... | 31 | 91 | 86 |
2a8af059a7f7f1c94f13dd46b0029fa8717ed335 | Tony Arcieri | 2026-01-24T16:33:23 | Bump `cipher` to v0.5.0-rc.6 (#96) | diff --git a/Cargo.lock b/Cargo.lock
index d0f664c..8da11cd 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -92,9 +92,9 @@ checksum = "2fd1289c04a9ea8cb22300a459a72a385d7c73d3259e2ed7dcb2af674838cfa9"
[[package]]
name = "cipher"
-version = "0.5.0-rc.3"
+version = "0.5.0-rc.6"
source = "registry+https://github.com/rust... | 10 | 24 | 24 |
61f38cb7fa297aee825b734e54aef39eb9d1d3a7 | Tony Arcieri | 2025-12-27T21:04:33 | Bump `cipher` dependency to v0.5.0-rc.3 (#94)
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 673a328..d0f664c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -39,9 +39,9 @@ checksum = "89af0b093cc13baa4e51e64e65ec2422f7e73aea0e612e5ad3872986671622f1"
[[package]]
name = "block-buffer"
-version = "0.11.0-rc.5"
+version = "0.11.0"
source = "registry+https://github.com/r... | 12 | 30 | 34 |
ca6e12a4eb98410a8c93e0ed5c1a42e79ef4d717 | Tony Arcieri | 2025-11-05T18:57:15 | Cut `rc.2` prereleases (#93)
Releases the following:
- `belt-ctr` v0.2.0-rc.2
- `cbc` v0.2.0-rc.2
- `ctr` v0.10.0-rc.2
- `cts` v0.7.0-rc.2
- `ige` v0.2.0-rc.2
- `ofb` v0.7.0-rc.2
- `pcbc` v0.2.0-rc.2 | diff --git a/Cargo.lock b/Cargo.lock
index 306b8ce..673a328 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -24,7 +24,7 @@ dependencies = [
[[package]]
name = "belt-ctr"
-version = "0.2.0-rc.1"
+version = "0.2.0-rc.2"
dependencies = [
"belt-block",
"cipher",
@@ -58,7 +58,7 @@ dependencies = [
[[package]]
name ... | 8 | 14 | 14 |
1493905bc4856ff23c04df712170c8d04b969552 | Tony Arcieri | 2025-11-05T18:46:28 | Bump `cipher` dependency to v0.5.0-rc.2 (#92) | diff --git a/Cargo.lock b/Cargo.lock
index 5146360..306b8ce 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4,9 +4,9 @@ version = 4
[[package]]
name = "aes"
-version = "0.9.0-rc.1"
+version = "0.9.0-rc.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7e713c57c2a2b19159e7be83b9194600d7e... | 11 | 59 | 63 |
49e09375c99d093a82a78ffc8e1268bc32352a29 | Artyom Pavlov | 2025-09-05T14:43:09 | Migrate to new dev macros (#89) | diff --git a/Cargo.lock b/Cargo.lock
index e706684..5a6d436 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -34,8 +34,7 @@ dependencies = [
[[package]]
name = "blobby"
version = "0.4.0-pre.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4a859067dcb257cb2ae028cb821399b55140b76fb8b2a360e0... | 30 | 527 | 520 |
a3d344e42caea74697437c0e074c6510aa86d7be | Tony Arcieri | 2025-09-03T02:56:40 | Cut prereleases with `hybrid-array` v0.4 support (#87)
Releases the following:
- `belt-ctr` v0.2.0-rc.1
- `cbc` v0.2.0-rc.1
- `cfb-mode` v0.9.0-rc.1
- `cfb8` v0.9.0-rc.1
- `ctr` v0.10.0-rc.1
- `cts` v0.7.0-rc.1
- `ige` v0.2.0-rc.1
- `ofb` v0.7.0-rc.1
- `pcbc` v0.2.0-rc.1 | diff --git a/Cargo.lock b/Cargo.lock
index b59acd9..e706684 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -24,7 +24,7 @@ dependencies = [
[[package]]
name = "belt-ctr"
-version = "0.2.0-rc.0"
+version = "0.2.0-rc.1"
dependencies = [
"belt-block",
"cipher",
@@ -58,7 +58,7 @@ dependencies = [
[[package]]
name ... | 10 | 18 | 18 |
630fe783d6c06be4842c391568ed9d2e6b2ab7e7 | Tony Arcieri | 2025-09-03T02:00:46 | Bump block cipher dependencies (#86)
Bumps to versions that use `hybrid-array` v0.4 | diff --git a/Cargo.lock b/Cargo.lock
index 1c6366b..b59acd9 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4,9 +4,9 @@ version = 4
[[package]]
name = "aes"
-version = "0.9.0-rc.0"
+version = "0.9.0-rc.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cd4838e4ad37bb032dea137f441d5f71c16... | 10 | 22 | 22 |
d8fb19f09affced26182414cbbbe935fa00ee569 | Tony Arcieri | 2025-09-02T20:09:13 | Bump `cipher` to v0.5.0-rc.1 (#85)
Notably this includes hybrid-array v0.4 support | diff --git a/Cargo.lock b/Cargo.lock
index 7b04588..1c6366b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -39,8 +39,9 @@ checksum = "4a859067dcb257cb2ae028cb821399b55140b76fb8b2a360e052fe109019db43"
[[package]]
name = "block-buffer"
-version = "0.11.0-rc.4"
-source = "git+https://github.com/RustCrypto/utils#adfccfea2... | 11 | 33 | 36 |
044d1010efc422c4ee76263f9b70102d77fd342b | Tony Arcieri | 2025-09-02T02:27:05 | Bump `hybrid-array` to v0.4 (#84) | diff --git a/Cargo.lock b/Cargo.lock
index d26587b..7b04588 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -37,11 +37,19 @@ version = "0.4.0-pre.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4a859067dcb257cb2ae028cb821399b55140b76fb8b2a360e052fe109019db43"
+[[package]]
+name = "block-... | 16 | 503 | 478 |
783fb3b682e8f613c788245c6a4228e3b6554f75 | Artyom Pavlov | 2025-06-19T12:07:45 | ige: update provenance link for test vectors (#82) | diff --git a/ige/tests/aes.rs b/ige/tests/aes.rs
index 813617f..fc08266 100644
--- a/ige/tests/aes.rs
+++ b/ige/tests/aes.rs
@@ -5,7 +5,8 @@ use ige::{Decryptor, Encryptor};
iv_state_test!(aes128_ige_enc_iv_state, Encryptor<Aes128>, encrypt);
iv_state_test!(aes128_ige_dec_iv_state, Decryptor<Aes128>, decrypt);
-// ... | 1 | 2 | 1 |
302c46c2b8ddfd8b830ad824d0d414fec1942004 | Arthur Gautier | 2025-05-30T15:34:09 | chore(deps): bump `cipher` to `0.5.0-rc.0` (#79) | diff --git a/Cargo.lock b/Cargo.lock
index b54a25b..a4aafab 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4,9 +4,9 @@ version = 4
[[package]]
name = "aes"
-version = "0.9.0-pre.3"
+version = "0.9.0-rc.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "38e4da00d9978020ddaa556c1747cfcafc... | 10 | 44 | 44 |
5e061ba59d82922665341e3dad3d57d2222f2654 | Tony Arcieri | 2024-07-27T02:28:13 | ctr v0.10.0-pre.1 (#67) | diff --git a/Cargo.lock b/Cargo.lock
index b5aec0a..eb049d4 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -114,7 +114,7 @@ dependencies = [
[[package]]
name = "ctr"
-version = "0.10.0-pre.0"
+version = "0.10.0-pre.1"
dependencies = [
"aes",
"cipher",
diff --git a/ctr/Cargo.toml b/ctr/Cargo.toml
index 5b51235..67... | 2 | 2 | 2 |
3ca918d3887fa404b419caa87760d11211a198a1 | Tony Arcieri | 2024-07-27T02:18:47 | cbc v0.2.0-pre.1 (#66) | diff --git a/Cargo.lock b/Cargo.lock
index 4e473ff..b5aec0a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -48,7 +48,7 @@ dependencies = [
[[package]]
name = "cbc"
-version = "0.2.0-pre.0"
+version = "0.2.0-pre.1"
dependencies = [
"aes",
"cipher",
diff --git a/cbc/Cargo.toml b/cbc/Cargo.toml
index 4f7dc6f..f15b82... | 2 | 2 | 2 |
6bbd3f8816f17359b6a3628d55a0798dcde22cf6 | Tony Arcieri | 2024-07-27T02:10:21 | Bump `cipher` to v0.5.0-pre.6 (#65) | diff --git a/Cargo.lock b/Cargo.lock
index 855d3cf..4e473ff 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4,8 +4,9 @@ version = 3
[[package]]
name = "aes"
-version = "0.9.0-pre.0"
-source = "git+https://github.com/RustCrypto/block-ciphers.git#ae1892c8600131227531504812260e3d2821d01e"
+version = "0.9.0-pre.1"
+source... | 14 | 54 | 54 |
3c5a65ca7687376cd6d86abe664b1f1540848ae1 | Tony Arcieri | 2024-07-26T18:19:10 | ctr v0.10.0-pre.0 (#63) | diff --git a/Cargo.lock b/Cargo.lock
index 347f565..855d3cf 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -112,7 +112,7 @@ dependencies = [
[[package]]
name = "ctr"
-version = "0.10.0-pre"
+version = "0.10.0-pre.0"
dependencies = [
"aes",
"cipher",
diff --git a/ctr/Cargo.toml b/ctr/Cargo.toml
index 2aec7ee..ba26... | 2 | 2 | 2 |
ccdc836770b65fd381a6646631fec4563a89b3f8 | Tony Arcieri | 2024-07-26T18:18:34 | cbc v0.2.0-pre.0 (#64) | diff --git a/Cargo.lock b/Cargo.lock
index cdd2302..347f565 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -46,7 +46,7 @@ dependencies = [
[[package]]
name = "cbc"
-version = "0.2.0-pre"
+version = "0.2.0-pre.0"
dependencies = [
"aes",
"cipher",
diff --git a/cbc/Cargo.toml b/cbc/Cargo.toml
index 4bafbda..745a25b ... | 2 | 2 | 2 |
a0051b2892626f4bd4f96c8ec7ca942a1047bb3c | Artyom Pavlov | 2024-06-18T15:12:33 | Update `hex-literal` to v0.4 (#62) | diff --git a/Cargo.lock b/Cargo.lock
index e05db3a..cdd2302 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4,8 +4,8 @@ version = 3
[[package]]
name = "aes"
-version = "0.9.0-pre"
-source = "git+https://github.com/RustCrypto/block-ciphers.git#c577715951ed183b7980a3b7499797723909c1dc"
+version = "0.9.0-pre.0"
+source =... | 10 | 46 | 51 |
bf22f3241d2fd01f32cdb4ece5a105e2362a49e2 | Blair Noctis | 2024-06-18T14:53:03 | cbc: bump hex-literal to 0.4.1 (#61) | diff --git a/cbc/Cargo.toml b/cbc/Cargo.toml
index 77443ff..ff17d4e 100644
--- a/cbc/Cargo.toml
+++ b/cbc/Cargo.toml
@@ -18,7 +18,7 @@ cipher = "=0.5.0-pre.4"
[dev-dependencies]
aes = "=0.9.0-pre"
cipher = { version = "=0.5.0-pre.4", features = ["dev"] }
-hex-literal = "0.3.3"
+hex-literal = "0.4.1"
[features]
d... | 1 | 1 | 1 |
957d4c989a6afd171b218c57e451c44269fac8a4 | Paolo Barbolini | 2024-03-30T14:28:08 | pcbc: fix repository field (#58) | diff --git a/pcbc/Cargo.toml b/pcbc/Cargo.toml
index a2bd96a..4cdf68c 100644
--- a/pcbc/Cargo.toml
+++ b/pcbc/Cargo.toml
@@ -8,7 +8,7 @@ edition = "2021"
rust-version = "1.65"
readme = "README.md"
documentation = "https://docs.rs/pcbc"
-repository = "https://github.com/RustCrypto/block-ciphers"
+repository = "https:... | 1 | 1 | 1 |
a2d538114e74ca85c19b6173d08e5aa519763778 | Arthur Gautier | 2024-03-05T17:42:15 | cleanup patches (#57)
https://github.com/RustCrypto/block-ciphers/pull/413 has been merged. | diff --git a/Cargo.lock b/Cargo.lock
index a3471cd..e05db3a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -5,7 +5,7 @@ version = 3
[[package]]
name = "aes"
version = "0.9.0-pre"
-source = "git+https://github.com/baloo/block-ciphers.git?branch=baloo/bump-cipher/0.5.0-pre.4#bb94e5e71f5320fcaab727ad0c503cca5190da4c"
+sou... | 2 | 8 | 8 |
2a26e767484fff1670f7725e77b2f3f013d46c4f | Артём Павлов [Artyom Pavlov] | 2023-08-07T17:33:54 | Update magma to v0.9.0 | diff --git a/Cargo.lock b/Cargo.lock
index 3495ac3..06b1177 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -180,9 +180,9 @@ checksum = "b4668fb0ea861c1df094127ac5f1da3409a82116a4ba74fca2e58ef927159bb3"
[[package]]
name = "magma"
-version = "0.8.1"
+version = "0.9.0"
source = "registry+https://github.com/rust-lang/cra... | 2 | 3 | 3 |
9ac864ecb43511b62e2cb5e837268103c89d0d52 | ChanTsune | 2023-06-28T08:03:13 | ctr: fix incorrect doc comments about counter endian flavors (#48) | diff --git a/ctr/src/flavors/ctr128.rs b/ctr/src/flavors/ctr128.rs
index 6d7ad01..ef9af96 100644
--- a/ctr/src/flavors/ctr128.rs
+++ b/ctr/src/flavors/ctr128.rs
@@ -102,7 +102,7 @@ where
}
}
-/// 128-bit big endian counter flavor.
+/// 128-bit little endian counter flavor.
#[derive(Debug)]
pub enum Ctr128LE {... | 3 | 3 | 3 |
569e4ab92944af3796a5c0dba166ef71814c8e28 | Артём Павлов [Artyom Pavlov] | 2023-06-19T19:29:04 | Update Cargo.lock | diff --git a/Cargo.lock b/Cargo.lock
index 371720a..e7e3784 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4,9 +4,9 @@ version = 3
[[package]]
name = "aes"
-version = "0.8.2"
+version = "0.8.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "433cfd6710c9986c576a25ca913c39d66a6474107b406... | 1 | 2 | 2 |
b485aa3eb80935ad1d1c98bbc3d117f56decabfc | Артём Павлов [Artyom Pavlov] | 2023-06-16T13:34:43 | Update Cargo.lock | diff --git a/Cargo.lock b/Cargo.lock
index 82afeb4..371720a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -94,9 +94,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 |
d483e3658491d1f4704bee120807d8fbe9759f04 | Артём Павлов [Artyom Pavlov] | 2023-06-08T20:20:40 | Update Cargo.lock | diff --git a/Cargo.lock b/Cargo.lock
index c3bc760..82afeb4 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -94,9 +94,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 | 4 | 4 |
fb6e81a01a5360842fa0791f204755ec47b79136 | Jonathan Woollett-Light | 2023-06-08T20:19:34 | fix: `missing_debug_implementations` (#46) | diff --git a/belt-ctr/src/lib.rs b/belt-ctr/src/lib.rs
index 57dacc8..c3cccbb 100644
--- a/belt-ctr/src/lib.rs
+++ b/belt-ctr/src/lib.rs
@@ -6,16 +6,17 @@
)]
#![forbid(unsafe_code)]
#![cfg_attr(docsrs, feature(doc_cfg))]
-#![warn(missing_docs, rust_2018_idioms)]
+#![warn(missing_debug_implementations, missing_docs, ... | 11 | 60 | 11 |
2fa4ca7d320c23568db6a2de51625be170b3ba61 | Артём Павлов [Artyom Pavlov] | 2023-04-17T19:25:54 | Update Cargo.lock | diff --git a/Cargo.lock b/Cargo.lock
index 44c0f92..c3bc760 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -15,9 +15,9 @@ dependencies = [
[[package]]
name = "belt-block"
-version = "0.1.1"
+version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5a1be3fcfd5950762b6ac3f929b7ac6... | 1 | 7 | 7 |
39af77a0a86e396ea70dd4d7b801287165ee2eb3 | Артём Павлов [Artyom Pavlov] | 2023-04-02T02:16:40 | Update Cargo.lock | diff --git a/Cargo.lock b/Cargo.lock
index 604c2d3..98b4a52 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -30,9 +30,9 @@ checksum = "847495c209977a90e8aad588b959d0ca9f5dc228096d29a6bd3defd53f35eaec"
[[package]]
name = "block-padding"
-version = "0.3.2"
+version = "0.3.3"
source = "registry+https://github.com/rust-la... | 1 | 10 | 10 |
0a71f2b2eea45957de44d272c674a0156c8d00f2 | Артём Павлов [Artyom Pavlov] | 2023-03-09T00:15:42 | Update Cargo.lock | diff --git a/Cargo.lock b/Cargo.lock
index 8a39647..604c2d3 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 | 2 | 2 |
595f4e08050f30caa38c44a26e1fc4affaabc47f | Dirk Stolle | 2022-10-03T10:20:26 | Fix a few typos (#25) | diff --git a/cbc/src/lib.rs b/cbc/src/lib.rs
index c820b3f..9c42a30 100644
--- a/cbc/src/lib.rs
+++ b/cbc/src/lib.rs
@@ -59,7 +59,7 @@
//! ```
//!
//! With enabled `alloc` (or `std`) feature you also can use allocating
-//! convinience methods:
+//! convenience methods:
//! ```
//! # #[cfg(all(feature = "alloc", f... | 3 | 3 | 3 |
37276dd2f22ce253c953c28db7db2ac1782129a1 | skaunov | 2022-09-29T01:01:02 | ctr: add comment to doc example to clarify `seek` usage (#22) | diff --git a/ctr/src/lib.rs b/ctr/src/lib.rs
index 5b2d878..1199dbc 100644
--- a/ctr/src/lib.rs
+++ b/ctr/src/lib.rs
@@ -37,7 +37,7 @@
//! }
//! assert_eq!(buf[..], plaintext[..]);
//!
-//! // CTR mode supports seeking
+//! // CTR mode supports seeking. The parameter is zero-based _bytes_ counter (not _blocks_).
//... | 1 | 1 | 1 |
b8967dfc53d4d90b2124b64e609cd296491b33f9 | skaunov | 2022-09-27T12:54:43 | Corrects a typo in a comment (#21) | diff --git a/ctr/src/ctr_core.rs b/ctr/src/ctr_core.rs
index 7868f5b..f4412b0 100644
--- a/ctr/src/ctr_core.rs
+++ b/ctr/src/ctr_core.rs
@@ -9,7 +9,7 @@ use core::fmt;
#[cfg(feature = "zeroize")]
use cipher::zeroize::ZeroizeOnDrop;
-/// Generic CTR block mode isntance.
+/// Generic CTR block mode instance.
#[deriv... | 1 | 1 | 1 |
7ba177e7b3e3098818b926759cc779fa77e0c1c8 | Artyom Pavlov | 2022-09-13T04:07:03 | Remove html_root_url and update logo URL (#20) | diff --git a/cbc/Cargo.toml b/cbc/Cargo.toml
index 493c38e..6fc68e2 100644
--- a/cbc/Cargo.toml
+++ b/cbc/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "cbc"
-version = "0.1.2" # Also update html_root_url in lib.rs when bumping this
+version = "0.1.2"
description = "Cipher Block Chaining (CBC) block cipher mode of ope... | 14 | 21 | 28 |
29ab1c22b2b12573e7dc5a6e8bdaa011e76f4716 | Friedel Ziegelmayer | 2022-09-13T03:51:49 | cfb-mode: add Buffer{Encryptor|Decryptor} (#17) | diff --git a/cfb-mode/src/decrypt.rs b/cfb-mode/src/decrypt.rs
index b188a89..7e7c1d6 100644
--- a/cfb-mode/src/decrypt.rs
+++ b/cfb-mode/src/decrypt.rs
@@ -4,7 +4,7 @@ use cipher::{
inout::InOut,
AlgorithmName, AsyncStreamCipher, Block, BlockBackend, BlockCipher, BlockClosure, BlockDecrypt,
BlockDecrypt... | 4 | 323 | 6 |
de6bda9b843c6bba92af2ce029be06197cc45d78 | Artyom Pavlov | 2022-02-22T17:15:25 | Update Cargo.lock (#13) | diff --git a/Cargo.lock b/Cargo.lock
index 8242bf2..0f925a1 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -63,9 +63,9 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
[[package]]
name = "cipher"
-version = "0.4.2"
+version = "0.4.3"
source = "registry+https://github.com/rust-lang/crat... | 1 | 2 | 2 |
f42aae71f972e4949a8692116ecd57295e18d5c5 | Artyom Pavlov | 2022-02-18T12:43:34 | Fix doctests (#11) | diff --git a/cbc/src/lib.rs b/cbc/src/lib.rs
index ef34aec..a6d4171 100644
--- a/cbc/src/lib.rs
+++ b/cbc/src/lib.rs
@@ -12,6 +12,7 @@
//!
//! # Example
//! ```
+//! # #[cfg(feature = "block-padding")] {
//! use aes::cipher::{block_padding::Pkcs7, BlockDecryptMut, BlockEncryptMut, KeyIvInit};
//! use hex_literal::... | 3 | 9 | 12 |
30560f59e9da8e3be458adfd1a1fd8a19e8ad125 | Tony Arcieri | 2026-03-10T18:32:25 | v0.10.0-rc.17 (#674) | diff --git a/Cargo.lock b/Cargo.lock
index 4fe3a6b..02a3f6c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -776,7 +776,7 @@ checksum = "ba39f3699c378cd8970968dcbff9c43159ea4cfbd88d43c00b22f2ef10a435d2"
[[package]]
name = "rsa"
-version = "0.10.0-rc.16"
+version = "0.10.0-rc.17"
dependencies = [
"base64ct",
"const... | 2 | 2 | 2 |
aae656a4f17049ade835b8205a601a106e33b606 | Tony Arcieri | 2026-03-10T17:14:13 | Bump `crypto-primes` dependency to v0.7 release (#673) | diff --git a/Cargo.lock b/Cargo.lock
index 75800cc..4fe3a6b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -184,9 +184,9 @@ dependencies = [
[[package]]
name = "crypto-bigint"
-version = "0.7.0"
+version = "0.7.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4f438b626cb7c9dd48a613a982... | 2 | 5 | 5 |
b89010148e1fd255f66c36d273c0f0895dfb8115 | Tony Arcieri | 2026-03-09T20:13:00 | Bump `crypto-bigint` to v0.7 final release (#672)
Release PR: RustCrypto/crypto-bigint#1218 | diff --git a/Cargo.lock b/Cargo.lock
index a1c41e3..75800cc 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -184,9 +184,9 @@ dependencies = [
[[package]]
name = "crypto-bigint"
-version = "0.7.0-rc.28"
+version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "96dacf199529fb801ae6... | 2 | 3 | 3 |
cd8b499f5581f4e322ed26a9bb7d96a8b7bd9bc5 | Tony Arcieri | 2026-03-01T14:09:43 | Bump `crypto-common` to v0.2; `digest` to v0.11 (#671) | diff --git a/Cargo.lock b/Cargo.lock
index 3220bf1..2570996 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -93,9 +93,9 @@ checksum = "812e12b5285cc515a9c72a5c1d3b6d46a19dac5acfef5265968c166106e31dd3"
[[package]]
name = "block-buffer"
-version = "0.11.0"
+version = "0.12.0"
source = "registry+https://github.com/rust-l... | 2 | 26 | 26 |
4ae5597175e5f2691acf7649c32be98b21fa1bbf | Tony Arcieri | 2026-02-27T17:15:27 | v0.10.0-rc.16 (#664)
Compatibility update for breaking changes in `crypto-bigint` | diff --git a/Cargo.lock b/Cargo.lock
index b5fdbc2..3220bf1 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -776,7 +776,7 @@ checksum = "ba39f3699c378cd8970968dcbff9c43159ea4cfbd88d43c00b22f2ef10a435d2"
[[package]]
name = "rsa"
-version = "0.10.0-rc.15"
+version = "0.10.0-rc.16"
dependencies = [
"base64ct",
"const... | 2 | 2 | 2 |
784fe6b9e8593b23f57659725466a0044ca6dbeb | Tony Arcieri | 2026-02-26T21:02:57 | Bump `crypto-bigint` to v0.7.0-rc.28 (#663)
This includes changes to the `Mul` impls to make them behave like
`core`, so in `rsa` the previous usages have been changed to
`concatenating_mul`.
Likewise, `square` was deprecated and replaced with
`concatenating_square`.
See RustCrypto/crypto-bigint#1208 | diff --git a/Cargo.lock b/Cargo.lock
index 88ef557..b5fdbc2 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -184,9 +184,9 @@ dependencies = [
[[package]]
name = "crypto-bigint"
-version = "0.7.0-rc.27"
+version = "0.7.0-rc.28"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b43308b9b6a475... | 4 | 28 | 19 |
6df199797756bfb527a92d950fd90719ff1a1032 | Fethbita | 2026-02-26T20:56:17 | Fix blinding factor generation loop (#653)
Closes https://github.com/RustCrypto/RSA/issues/652 | diff --git a/src/algorithms/rsa.rs b/src/algorithms/rsa.rs
index 3c444a2..82ea157 100644
--- a/src/algorithms/rsa.rs
+++ b/src/algorithms/rsa.rs
@@ -182,13 +182,10 @@ fn blind<R: TryCryptoRng + ?Sized, K: PublicKeyParts>(
debug_assert_eq!(&key.n().clone().get(), n_params.modulus());
let bits = key.n_bits_prec... | 1 | 1 | 4 |
ae65734d1f2f0929e16ae43dcdff012d4895dcf7 | Lukas Burkhalter | 2026-02-26T20:55:22 | Use bounded exponentiation to improve encrypt/verify performance (#662)
Limit exponentiation to the bit length of e to reduce computation time.
This is safe since e is public.
Improves encrypt/verify performance by over 2x on my laptop.
rsa_2048_pkcsv1_encrypt time: [17.822 µs 17.849 µs 17.877 µs]
... | diff --git a/src/algorithms/rsa.rs b/src/algorithms/rsa.rs
index 18ca94d..3c444a2 100644
--- a/src/algorithms/rsa.rs
+++ b/src/algorithms/rsa.rs
@@ -18,7 +18,8 @@ use crate::traits::keys::{PrivateKeyParts, PublicKeyParts};
/// or signature scheme. See the [module-level documentation][crate::hazmat] for more informatio... | 1 | 17 | 2 |
03e25a74ad5b2186b3b211b8fe78f1767812a25f | Tony Arcieri | 2026-02-13T00:56:39 | Bump `crypto-bigint` to v0.7.0-rc.27 (#661)
Also bumps `crypto-primes` to v0.7.0-pre.9 | diff --git a/Cargo.lock b/Cargo.lock
index 5c97f4a..88ef557 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -184,9 +184,9 @@ dependencies = [
[[package]]
name = "crypto-bigint"
-version = "0.7.0-rc.26"
+version = "0.7.0-rc.27"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8e8d50190c5aeb... | 2 | 6 | 6 |
1e9406484ce638804913a9f73a54322b5da1dece | radik878 | 2026-02-11T23:26:59 | refactor: remove redundant heap allocation in OAEP decrypt_inner (#659)
`decrypt_inner` took `em` by reference but cloned it via `em.to_vec()` into the
returned `CtOption<(Vec<u8>, u32)>`. The caller then allocated again with
`out[index..].to_vec()`. Two heap allocations per decryption instead of
one.
Unlike PKCS#1 v... | diff --git a/src/algorithms/oaep.rs b/src/algorithms/oaep.rs
index 6ac1f02..0b9693c 100644
--- a/src/algorithms/oaep.rs
+++ b/src/algorithms/oaep.rs
@@ -162,9 +162,9 @@ where
return Err(Error::Decryption);
}
- let (out, index) = res.unwrap();
+ let index = res.unwrap();
- Ok(out[index as usiz... | 1 | 6 | 9 |
16d8eaf7cb35ca6033ed47090cdab4fad986d725 | Tony Arcieri | 2026-02-11T18:51:57 | Bump `crypto-bigint` dependency to v0.7.0-rc.26 (#658) | diff --git a/Cargo.lock b/Cargo.lock
index 1585a83..5c97f4a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -160,9 +160,9 @@ checksum = "a6ef517f0926dd24a1582492c791b6a4818a4d94e789a334894aa15b0d12f55c"
[[package]]
name = "cpubits"
-version = "0.1.0-rc.3"
+version = "0.1.0"
source = "registry+https://github.com/rust-l... | 3 | 9 | 9 |
ca31a4a7c68c2511d5372217be3a99910e0bfd36 | GarmashAlex | 2026-02-09T23:18:10 | fix: reject prime == 1 in `validate_private_key_parts` (#655)
The guard in validate_private_key_parts used prime < 1 instead of prime
<= 1, so it only caught zero but let prime == 1 slip through. A few
lines below, NonZero::new(prime - 1).unwrap() panics on zero, exactly as
the existing comment warns: "Any primes ≤ 1 ... | diff --git a/src/key.rs b/src/key.rs
index df64db6..3de6065 100644
--- a/src/key.rs
+++ b/src/key.rs
@@ -752,7 +752,7 @@ fn validate_private_key_parts(key: &RsaPrivateKey) -> Result<()> {
let one = BoxedUint::one();
for prime in &key.primes {
// Any primes ≤ 1 will cause divide-by-zero panics later.
... | 1 | 1 | 1 |
e1e4f18fc6d5e73750024e37f5c84dd9d864d312 | Tony Arcieri | 2026-02-03T01:28:14 | rsa v0.10.0-rc.15 (#651) | diff --git a/Cargo.lock b/Cargo.lock
index 0f98280..113c2bc 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -766,7 +766,7 @@ checksum = "ba39f3699c378cd8970968dcbff9c43159ea4cfbd88d43c00b22f2ef10a435d2"
[[package]]
name = "rsa"
-version = "0.10.0-rc.14"
+version = "0.10.0-rc.15"
dependencies = [
"base64ct",
"const... | 2 | 2 | 2 |
578963f8489b5f03cb8204c744cddd730101d10b | Tony Arcieri | 2026-02-03T01:12:08 | Bump dependencies in `Cargo.toml` (#650)
Upgrades the following dependency requirements:
- `crypto-bigint` v0.7.0-rc.25
- `crypto-common` v0.2.0-rc.15
- `digest` v0.11.0-rc.11
- `rand_core` v0.10
- `sha1` v0.11.0-rc.5
- `sha2` v0.11.0-rc.5
- `signature` v3.0.0-rc.10 | diff --git a/Cargo.lock b/Cargo.lock
index a5d2a41..0f98280 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4,9 +4,9 @@ version = 4
[[package]]
name = "aead"
-version = "0.6.0-rc.7"
+version = "0.6.0-rc.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a6901123ca1812824ee1c21b59b5e6bf0... | 2 | 115 | 115 |
2d2bf43b59ab8108afb32131cf36f02a62808971 | Mendes | 2026-01-27T21:30:47 | Add `RsaPrivateKey::from_components_with_large_exponent` (#648)
Adds a `hazmat`-gated method to `RsaPrivateKey` to allow construction of
keys with large public exponents, which was removed in #459.
These are a potential DoS vector ("RSADoS") hence gating on `hazmat`:
https://www.imperialviolet.org/2012/03/17/rsados.... | diff --git a/src/key.rs b/src/key.rs
index 7b54f32..df64db6 100644
--- a/src/key.rs
+++ b/src/key.rs
@@ -339,20 +339,16 @@ impl RsaPrivateKey {
)
}
- /// Constructs an RSA key pair from individual components:
+ /// Private helper function that constructs an RSA key pair from components
+ /// WI... | 1 | 229 | 47 |
4f236072663fa235ab785c925b16d453a8567f88 | Tony Arcieri | 2026-01-25T19:43:17 | v0.10.0-rc.14 (#646)
Includes `rand_core` v0.10.0-rc-6 upgrade with `(Try)RngCore` =>
`(Try)Rng` rename | diff --git a/Cargo.lock b/Cargo.lock
index b5a8634..a5d2a41 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -759,7 +759,7 @@ checksum = "ba39f3699c378cd8970968dcbff9c43159ea4cfbd88d43c00b22f2ef10a435d2"
[[package]]
name = "rsa"
-version = "0.10.0-rc.13"
+version = "0.10.0-rc.14"
dependencies = [
"base64ct",
"const... | 2 | 2 | 2 |
7b85179cce84ef7194791dd091e817a9f1303159 | Tony Arcieri | 2026-01-25T19:17:33 | Bump `crypto-primes` to v0.7.0-pre.8 (#645) | diff --git a/Cargo.lock b/Cargo.lock
index 31c61ec..b5a8634 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -194,8 +194,9 @@ dependencies = [
[[package]]
name = "crypto-primes"
-version = "0.7.0-pre.7"
-source = "git+https://github.com/entropyxyz/crypto-primes#ba1024f4985d351d83dc588ee2607604ad19dba6"
+version = "0.7.0... | 2 | 4 | 6 |
433ac18eeb6a88730503ddce23f213da400d9c4c | Tony Arcieri | 2026-01-25T03:37:05 | Bump `pkcs8` to v0.11.0-rc.10 (#644) | diff --git a/Cargo.lock b/Cargo.lock
index c8ac79b..31c61ec 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -552,8 +552,9 @@ dependencies = [
[[package]]
name = "pkcs5"
-version = "0.8.0-rc.12"
-source = "git+https://github.com/RustCrypto/formats#7368fd50e14a5a53dc552914a4585ed964417da4"
+version = "0.8.0-rc.13"
+sourc... | 2 | 10 | 14 |
10afbb823def47a4476f1f6f7f41a9f68ac21906 | Tony Arcieri | 2026-01-25T01:44:24 | Cargo.toml: update `crypto-primes` patch (#643) | diff --git a/Cargo.lock b/Cargo.lock
index 699116f..c8ac79b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -195,7 +195,7 @@ dependencies = [
[[package]]
name = "crypto-primes"
version = "0.7.0-pre.7"
-source = "git+https://github.com/tarcieri/crypto-primes?branch=crypto-bigint%2Fv0.7.0-rc.22#cdb408ca1420df78b7d0d297d0d... | 2 | 2 | 3 |
aceaef909cd70dd83a60298d3f2a12d5258d8496 | Tony Arcieri | 2026-01-24T20:39:24 | Bump `crypto-bigint` to v0.7.0-rc.22 (#642)
Includes `rand_core` v0.10.0-rc-6 upgrade that renames `(Try)RngCore` =>
`(Try)Rng`. | diff --git a/Cargo.lock b/Cargo.lock
index a7056d6..699116f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -46,6 +46,12 @@ dependencies = [
"memchr",
]
+[[package]]
+name = "anyhow"
+version = "1.0.100"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a23eb6b1614318a8071c9b2521f36b424b2c... | 5 | 261 | 56 |
47777de09a7db8833ada025ff5a71605b14ac6c7 | Tony Arcieri | 2026-01-24T19:27:13 | Add Bleichenbacher attack warning about PKCS#1 v1.5 (#637)
Notes the long history of repeat attacks, and how the `rsa` crate is
still vulnerable to the Marvin Attack. | diff --git a/src/lib.rs b/src/lib.rs
index ef3ea7d..662bc37 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -45,6 +45,12 @@
//! ```
//!
//! ## PKCS#1 v1.5 encryption
+//!
+//! <div class="warning">
+//! <b>Warning:</b>
+//! See security notes in the <code><a href="./pkcs1v15/index.html">pkcs1v15</a></code> module.
+//! ... | 2 | 31 | 0 |
340b19425a9a72ebd550b2ce878fb55ac2bbb29a | Tony Arcieri | 2026-01-21T17:50:22 | v0.10.0-rc.13 (#635) | diff --git a/Cargo.lock b/Cargo.lock
index 3bc91a6..a7056d6 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -702,7 +702,7 @@ checksum = "ba39f3699c378cd8970968dcbff9c43159ea4cfbd88d43c00b22f2ef10a435d2"
[[package]]
name = "rsa"
-version = "0.10.0-rc.12"
+version = "0.10.0-rc.13"
dependencies = [
"base64ct",
"const... | 2 | 2 | 2 |
fb845ab2c2651290bcb4b4df6856c7051361a610 | Tony Arcieri | 2026-01-21T17:43:20 | Bump dependencies (#634)
Updates the following requirements in Cargo.toml:
- `crypto-bigint` v0.7.0-rc.21
- `crypto-common` v0.2.0-rc.11
- `digest` v0.11.0-rc.7
- `pkcs1` v0.8.0-rc.4
- `signature` v3.0.0-rc.8
Updates the following version pins in Cargo.lock:
$ cargo update
Updating crates.io index
Locki... | diff --git a/Cargo.lock b/Cargo.lock
index 93bc5e2..3bc91a6 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4,9 +4,9 @@ version = 4
[[package]]
name = "aead"
-version = "0.6.0-rc.5"
+version = "0.6.0-rc.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "67a578e7d4edaef88aeb9cdd81556f4a62... | 3 | 55 | 55 |
4714a83ba1704a61e0f49c25721fbce497835655 | Arthur Gautier | 2026-01-21T14:32:14 | chore(deps): bump `rand_core` to `0.10.0-rc-5` (#632) | diff --git a/Cargo.lock b/Cargo.lock
index 55cd665..93bc5e2 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -120,13 +120,13 @@ checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
[[package]]
name = "chacha20"
-version = "0.10.0-rc.6"
+version = "0.10.0-rc.8"
source = "registry+https://github.... | 5 | 51 | 50 |
e4f6bceac41f71edd4638d4e8e53d1f1be0be95f | Tony Arcieri | 2026-01-12T20:04:54 | v0.10.0-rc.12 (#629) | diff --git a/Cargo.lock b/Cargo.lock
index 33b0dae..55cd665 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -701,7 +701,7 @@ checksum = "ba39f3699c378cd8970968dcbff9c43159ea4cfbd88d43c00b22f2ef10a435d2"
[[package]]
name = "rsa"
-version = "0.10.0-rc.11"
+version = "0.10.0-rc.12"
dependencies = [
"base64ct",
"const... | 2 | 2 | 2 |
d891ab1c846e1a403004761087cd56cf085446d2 | Tony Arcieri | 2026-01-12T19:55:58 | Bump `crypto-bigint` to v0.7.0-rc.16 (#628)
This includes changes to `BoxedMontyForm::new` that handle cloning the
`Arc` around the `BoxedMontyParams` internally, rather than requiring
the caller to clone it.
It also renames the unchecked square root to `floor_sqrt`, which is fine
for the one usage here (in the prime... | diff --git a/Cargo.lock b/Cargo.lock
index a14f55a..33b0dae 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -163,9 +163,9 @@ dependencies = [
[[package]]
name = "crypto-bigint"
-version = "0.7.0-rc.13"
+version = "0.7.0-rc.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b2bb4138de6db7... | 4 | 14 | 22 |
b91a5bdb6cf13156cdb9e07062e9632f30b2e500 | Tony Arcieri | 2026-01-03T20:33:37 | Cargo.lock: bump dependencies (#623)
Updates the following dependencies:
$ cargo update
Updating git repository `https://github.com/rust-random/rand`
Updating crates.io index
Locking 50 packages to latest compatible versions
Updating aead v0.6.0-rc.3 -> v0.6.0-rc.5
Updating aho-corasick v1.1.... | diff --git a/Cargo.lock b/Cargo.lock
index eb6a278..a14f55a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4,9 +4,9 @@ version = 4
[[package]]
name = "aead"
-version = "0.6.0-rc.3"
+version = "0.6.0-rc.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "03d2d54c4d9e7006f132f615a167865bff... | 1 | 107 | 116 |
8390aed42c329f48e5d9005e8ae3b290b7806bc6 | Tony Arcieri | 2026-01-03T20:19:14 | v0.10.0-rc.11 (#622) | diff --git a/Cargo.lock b/Cargo.lock
index f0f4ce8..eb6a278 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -701,7 +701,7 @@ checksum = "ba39f3699c378cd8970968dcbff9c43159ea4cfbd88d43c00b22f2ef10a435d2"
[[package]]
name = "rsa"
-version = "0.10.0-rc.10"
+version = "0.10.0-rc.11"
dependencies = [
"base64ct",
"const... | 2 | 2 | 2 |
a1e3aaff2f38cc56dc5d0c9980f63d320d9c6dd3 | Tony Arcieri | 2026-01-03T19:56:29 | Bump `crypto-primes` to v0.7.0-pre.5 (#621) | diff --git a/Cargo.lock b/Cargo.lock
index be8b386..f0f4ce8 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -188,8 +188,9 @@ dependencies = [
[[package]]
name = "crypto-primes"
-version = "0.7.0-dev"
-source = "git+https://github.com/tarcieri/crypto-primes?branch=crypto-bigint%2Fv0.7.0-rc.13#f98697886371aa15446ca53ef5b... | 2 | 4 | 4 |
aa54cd9b021af284ec10b1307607260f9f516369 | Tony Arcieri | 2026-01-03T16:53:18 | Update `crypto-primes` branch (#620)
https://github.com/entropyxyz/crypto-primes/pull/104 | diff --git a/Cargo.lock b/Cargo.lock
index 971b8c1..be8b386 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -189,7 +189,7 @@ dependencies = [
[[package]]
name = "crypto-primes"
version = "0.7.0-dev"
-source = "git+https://github.com/tarcieri/crypto-primes?branch=crypto-bigint%2Fv0.7.0-rc.12#a96b3c9e40db97dfd3df73d9368ff... | 2 | 2 | 2 |
4ebf79c1e7abd2e77b0f1f60f40d667366455c2a | Tony Arcieri | 2026-01-03T15:17:04 | Bump `crypto-bigint` to v0.7.0-rc.13 (#619)
This release bumps `ctutils` to v0.3, which eliminated the `Choice::new`
constructor in favor of the more explicit `Choice::from_u8_lsb`.
This updates `crypto-bigint` and gets rid of the remaining usages of
`Crypto::new`. | diff --git a/Cargo.lock b/Cargo.lock
index 6f5e478..971b8c1 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -163,9 +163,9 @@ dependencies = [
[[package]]
name = "crypto-bigint"
-version = "0.7.0-rc.12"
+version = "0.7.0-rc.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a7ddf7876857d9... | 3 | 10 | 11 |
58338235371e8579606021cf9ba300a6d10cabe1 | Tony Arcieri | 2025-11-07T00:55:48 | Cargo.toml: add `package.exclude` (#605)
Excludes `marvin_toolkit/` and `thirdparty/` from crate releases | diff --git a/Cargo.toml b/Cargo.toml
index ff958e4..0a6e77d 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -11,6 +11,7 @@ keywords = ["rsa", "encryption", "security", "crypto"]
categories = ["cryptography"]
readme = "README.md"
rust-version = "1.85"
+exclude = ["marvin_toolkit/", "thirdparty/"]
[dependencies]
const... | 1 | 1 | 0 |
b34e1e737112ecb174d5b5e102aa69c5e1f7007c | Tony Arcieri | 2025-11-07T00:48:02 | v0.10.0-rc.10 (#604)
Closes #602 | diff --git a/Cargo.lock b/Cargo.lock
index a9399d6..3968744 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -671,7 +671,7 @@ checksum = "ba39f3699c378cd8970968dcbff9c43159ea4cfbd88d43c00b22f2ef10a435d2"
[[package]]
name = "rsa"
-version = "0.10.0-rc.9"
+version = "0.10.0-rc.10"
dependencies = [
"base64ct",
"const-... | 2 | 2 | 4 |
9f5888b1f6a043509d09f2d05f7eb235cfa128a0 | Tony Arcieri | 2025-11-07T00:38:33 | Bump `crypto-primes` to v0.7.0-pre.4 (#603)
Also bumps `pkcs8` to v0.11.0-pre.8 | diff --git a/Cargo.lock b/Cargo.lock
index 8645205..a9399d6 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4,9 +4,9 @@ version = 4
[[package]]
name = "aead"
-version = "0.6.0-rc.2"
+version = "0.6.0-rc.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ac8202ab55fcbf46ca829833f347a82a2a... | 2 | 43 | 45 |
4cba75a0f883ea54bed80d577016f9fd0b0f18cd | Arthur Gautier | 2025-11-06T14:10:48 | chore: remove direct dependency on `chacha20` (#601)
Followup to #600 | diff --git a/Cargo.lock b/Cargo.lock
index 43691a0..4a0751c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -680,7 +680,6 @@ name = "rsa"
version = "0.10.0-rc.9"
dependencies = [
"base64ct",
- "chacha20",
"const-oid",
"crypto-bigint",
"crypto-primes",
diff --git a/Cargo.toml b/Cargo.toml
index a17e074..4b7d726 10... | 19 | 19 | 21 |
8fd8874e17917c2621aad31bacae0e0657dacd27 | Arthur Gautier | 2025-11-06T05:07:49 | Bump `rand_core` to `0.10.0-rc.2` (#600) | diff --git a/Cargo.lock b/Cargo.lock
index db2c979..43691a0 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -96,9 +96,9 @@ dependencies = [
[[package]]
name = "block-padding"
-version = "0.4.0-rc.4"
+version = "0.4.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7e59c1aab3e6c5e56afe1b7... | 19 | 107 | 65 |
40e1750786435a8aeeb30c86b8d7c329241313e8 | Heiko Schaefer | 2025-10-17T22:21:44 | Support for cryptographic operations with larger keys (#595)
Cherry picked copy of #594 from 0-9-x | diff --git a/src/key.rs b/src/key.rs
index 3c96480..462a65c 100644
--- a/src/key.rs
+++ b/src/key.rs
@@ -228,7 +228,7 @@ impl RsaPublicKey {
/// Create a new public key from its components.
pub fn new_with_max_size(n: BoxedUint, e: BoxedUint, max_size: usize) -> Result<Self> {
- check_public_with_max... | 1 | 7 | 5 |
6b31749951acef21a724f78dae4da16e29d7550c | Daniel James | 2025-10-15T21:33:08 | Add convenience method for private -> public (#592)
The existing support through `impl AsRef<RsaPublicKey> for
RsaPrivateKey` was initially difficult to find. | diff --git a/src/key.rs b/src/key.rs
index 9c2aae4..3c96480 100644
--- a/src/key.rs
+++ b/src/key.rs
@@ -465,6 +465,13 @@ impl RsaPrivateKey {
Self::from_components(n.get(), public_exponent, d, primes)
}
+ /// Get the public key from the private key.
+ ///
+ /// Specific alternative to [`AsRef:... | 1 | 7 | 0 |
d0405d292756b87882d8e7f085ace11d301f2f98 | Arthur Gautier | 2025-10-14T13:22:37 | pss+oaep: remove `DynDigest` (#593)
I'm not sure I see why usage of `DynDigest` was originally introduced.
The need to make the Digest also Send is hard to use in downstream
crates.
I don't believe this was necessary, this removes its use and makes the
consumer specify the Digest types. | diff --git a/src/algorithms/mgf.rs b/src/algorithms/mgf.rs
index 009a503..b0ca553 100644
--- a/src/algorithms/mgf.rs
+++ b/src/algorithms/mgf.rs
@@ -1,11 +1,14 @@
//! Mask generation function common to both PSS and OAEP padding
-use digest::{Digest, DynDigest, FixedOutputReset};
+use digest::{Digest, FixedOutputRese... | 6 | 229 | 145 |
7ae85c13c56e93d30f042161668d3e0ad3b19924 | Tony Arcieri | 2025-09-30T04:19:30 | v0.10.0-rc.9 (#588) | diff --git a/Cargo.lock b/Cargo.lock
index 5c14ad9..8bbc196 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -650,7 +650,7 @@ checksum = "ba39f3699c378cd8970968dcbff9c43159ea4cfbd88d43c00b22f2ef10a435d2"
[[package]]
name = "rsa"
-version = "0.10.0-rc.8"
+version = "0.10.0-rc.9"
dependencies = [
"base64ct",
"const-o... | 2 | 2 | 2 |
baf37f47bd4e618e04c5146fd7954d835d6441b4 | Tony Arcieri | 2025-09-30T04:12:46 | Bump `crypto-bigint` to v0.7.0-rc.8 (#587) | diff --git a/Cargo.lock b/Cargo.lock
index 8867d75..5c14ad9 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -146,9 +146,9 @@ dependencies = [
[[package]]
name = "crypto-bigint"
-version = "0.7.0-rc.7"
+version = "0.7.0-rc.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e0bfcfbe68dec4e4... | 2 | 3 | 3 |
6e3e33e6e2e3f2a5a06ae968c78d773f441abfef | Arthur Gautier | 2025-09-30T04:05:43 | fixup support for `subtle` feature in `hybrid-array` (#586)
When a downstream crate enables the `subtle` feature in `hybrid-array`,
the crate would fail to compile:
```
src/algorithms/pss.rs:375:31
|
375 | if (salt_valid & h0.ct_eq(h)).into() {
| ----- ^ expected `&Array<u8, ...>`, ... | diff --git a/src/algorithms/pss.rs b/src/algorithms/pss.rs
index 99c6199..61780c6 100644
--- a/src/algorithms/pss.rs
+++ b/src/algorithms/pss.rs
@@ -372,7 +372,7 @@ where
let h0 = hash.finalize_reset();
// 14. If H = H', output "consistent." Otherwise, output "inconsistent."
- if (salt_valid & h0.ct_eq(h... | 1 | 1 | 1 |
bb0468e8769880a1a499fb267c3fe5d615a1b484 | Tony Arcieri | 2025-09-26T18:22:43 | wycheproof: add `git submodule update --init` to error message (#585)
It's otherwise unclear what needs to be done to address these errors in
the event the wycheproof submodule has not been initialized | diff --git a/tests/wycheproof.rs b/tests/wycheproof.rs
index ca0d6bb..3d30e86 100644
--- a/tests/wycheproof.rs
+++ b/tests/wycheproof.rs
@@ -149,7 +149,9 @@ impl Drop for Summary {
// #[case("rsa_signature_8192_sha512_test.json")] TODO: needs disabling of maxsize
fn test_rsa_pkcs1_verify(#[case] file: &str) {
le... | 1 | 6 | 2 |
62e4cede318389f83ef634c7cd506868669ae1b9 | Tony Arcieri | 2025-09-26T16:58:23 | Bump `serdect` to v0.4 (#584) | diff --git a/Cargo.lock b/Cargo.lock
index 225f162..8867d75 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -52,12 +52,6 @@ version = "1.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8"
-[[package]]
-name = "base16ct"
-ve... | 2 | 4 | 20 |
e51df005a9eaed8061d53edab5dda690b7745ca9 | Tony Arcieri | 2025-09-26T16:35:46 | Cargo.lock: update dependencies (#583)
Updates the following dependencies:
$ cargo update
Updating crates.io index
Locking 49 packages to latest compatible versions
Updating aead v0.6.0-rc.1 -> v0.6.0-rc.2
Updating aes v0.9.0-rc.0 -> v0.9.0-rc.1
Updating aes-gcm v0.11.0-rc.0 -> v0.11.0-rc.1
... | diff --git a/Cargo.lock b/Cargo.lock
index c3413df..584cab3 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4,9 +4,9 @@ version = 4
[[package]]
name = "aead"
-version = "0.6.0-rc.1"
+version = "0.6.0-rc.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c01559752fbde7734af628961723aa734a... | 1 | 123 | 158 |
aa845d7a801839b3f5f5a324120a871bb8f851b1 | Tony Arcieri | 2025-09-14T02:49:09 | v0.10.0-rc.8 (#580) | diff --git a/Cargo.lock b/Cargo.lock
index 457222c..c3413df 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -520,7 +520,7 @@ checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c"
[[package]]
name = "rsa"
-version = "0.10.0-rc.7"
+version = "0.10.0-rc.8"
dependencies = [
"base64ct",
"const-o... | 2 | 2 | 2 |
dbd7c4bd07c48a61b4c16c7435a19fe6ebf5e744 | Tony Arcieri | 2025-09-14T02:40:33 | Bump `signature` to v3.0.0-rc.4 (#579)
This brings `*DigestSigner`/`*DigestVerifier` changes introduced in
RustCrypto/traits#2004 | diff --git a/Cargo.lock b/Cargo.lock
index 9f7031b..457222c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -696,9 +696,9 @@ dependencies = [
[[package]]
name = "signature"
-version = "3.0.0-rc.3"
+version = "3.0.0-rc.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "39195ff4c0dc41c93e12... | 9 | 114 | 60 |
aae21cbadc806ac7cb95eb1ce92453a824489fcc | Tony Arcieri | 2025-09-14T01:43:37 | v0.10.0-rc.7 (#578) | diff --git a/Cargo.lock b/Cargo.lock
index 8c00da5..9f7031b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -520,7 +520,7 @@ checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c"
[[package]]
name = "rsa"
-version = "0.10.0-rc.6"
+version = "0.10.0-rc.7"
dependencies = [
"base64ct",
"const-o... | 2 | 2 | 2 |
5f60d8435e045bfd61a403f2b1ec210aa02a111c | Tony Arcieri | 2025-09-13T02:01:22 | Bump `crypto-bigint` to v0.7.0-rc.6 (#577) | diff --git a/Cargo.lock b/Cargo.lock
index 13565ba..8c00da5 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -137,9 +137,9 @@ dependencies = [
[[package]]
name = "crypto-bigint"
-version = "0.7.0-rc.4"
+version = "0.7.0-rc.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7c069823f41bdc75... | 2 | 6 | 6 |
eb1cca7b7ea42445dc874c1c1ce38873e4adade7 | Tony Arcieri | 2025-09-10T21:43:45 | Add minimum `bit_size` of 1024 to `RsaPrivateKey::new` (#576)
Also adds a `hazmat`-gated `RsaPrivateKey::new_unchecked` as an escape
hatch.
Partial step towards addressing #445. | diff --git a/src/errors.rs b/src/errors.rs
index 2755955..2a69b38 100644
--- a/src/errors.rs
+++ b/src/errors.rs
@@ -40,6 +40,9 @@ pub enum Error {
/// Invalid coefficient.
InvalidCoefficient,
+ /// Modulus too small.
+ ModulusTooSmall,
+
/// Modulus too large.
ModulusTooLarge,
@@ -94,6 +9... | 12 | 82 | 26 |
f5001d106a908f7f9d66aee723021e7b31dcd754 | Tony Arcieri | 2025-09-03T04:17:55 | v0.10.0-rc.6 (#574) | diff --git a/Cargo.lock b/Cargo.lock
index 684e75c..13565ba 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -520,7 +520,7 @@ checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c"
[[package]]
name = "rsa"
-version = "0.10.0-rc.5"
+version = "0.10.0-rc.6"
dependencies = [
"base64ct",
"const-o... | 2 | 5 | 5 |
a8b1fdb83e17fa9696459a0b0533060850675ed9 | Arthur Gautier | 2025-09-03T03:51:05 | Remove patch.crates-io dependencies (#573)
Version changes:
- `block-buffer` to `0.11.0-rc.5`
- `block-padding` to `0.4.0-rc.4`
- `cipher` to `0.5.0-rc.1`
- `crypto-bigint` to `0.7.0-rc.4`
- `crypto-common` to `0.2.0-rc.4`
- `ctr` to `0.10.0-rc.1`
- `digest` to `0.11.0-rc.1`
- `inout` to `0.2.0-rc.6`
- `salsa... | diff --git a/Cargo.lock b/Cargo.lock
index f1bcd16..684e75c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -78,16 +78,18 @@ checksum = "1b8e56985ec62d17e9c1001dc89c88ecd7dc08e47eba5ec7c29c7b5eeecde967"
[[package]]
name = "block-buffer"
-version = "0.11.0-rc.4"
-source = "git+https://github.com/RustCrypto/utils#adfccfe... | 2 | 39 | 49 |
77d3f86e67d26a177bdb0cae54f3b902f88aef4f | Tony Arcieri | 2025-09-02T04:14:54 | Bump `hybrid-array` to v0.4 (#572) | diff --git a/Cargo.lock b/Cargo.lock
index cebe41e..f1bcd16 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -79,8 +79,7 @@ checksum = "1b8e56985ec62d17e9c1001dc89c88ecd7dc08e47eba5ec7c29c7b5eeecde967"
[[package]]
name = "block-buffer"
version = "0.11.0-rc.4"
-source = "registry+https://github.com/rust-lang/crates.io-ind... | 2 | 30 | 19 |
472c98dd95c21cc123af77144bd2b65553ee8745 | Tony Arcieri | 2025-08-26T00:05:18 | v0.10.0-rc.5 (#570)
Also fixes #564 | diff --git a/Cargo.lock b/Cargo.lock
index a7e10db..cebe41e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -136,13 +136,13 @@ dependencies = [
[[package]]
name = "crypto-bigint"
-version = "0.7.0-rc.1"
+version = "0.7.0-rc.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a19d32a062a095... | 3 | 17 | 7 |
8b6d423a9d916ef7eaced6c3a25c39d131be5f0e | Roland Rauch | 2025-08-25T23:33:54 | PSS: Improve interoperability with optional auto salt length detection during verification (#546)
This PR adds an optional method to automatically detect the salt length
during RSA-PSS signature verification.
Should Fix: #361 and similar situations.
### Problem
The crate currently requires a fixed salt length for PS... | diff --git a/src/algorithms/pss.rs b/src/algorithms/pss.rs
index 78cdd27..99c6199 100644
--- a/src/algorithms/pss.rs
+++ b/src/algorithms/pss.rs
@@ -11,7 +11,7 @@
use alloc::vec::Vec;
use digest::{Digest, DynDigest, FixedOutputReset};
-use subtle::{Choice, ConstantTimeEq};
+use subtle::{Choice, ConditionallySelecta... | 5 | 113 | 20 |
77b5bc5b1ce041d409a1551edab8bfc47ce476d0 | Friedel Ziegelmayer | 2025-08-25T23:32:11 | bench: add key gen benchmarks (#557)
Variation is high unfortunately, but at least it's something | diff --git a/benches/key.rs b/benches/key.rs
index 5f52dab..e6a70a0 100644
--- a/benches/key.rs
+++ b/benches/key.rs
@@ -75,6 +75,26 @@ fn get_key() -> RsaPrivateKey {
.unwrap()
}
+#[bench]
+fn bench_rsa_1024_gen_key(b: &mut Bencher) {
+ let mut rng = ChaCha8Rng::from_seed([42; 32]);
+
+ b.iter(|| {
+ ... | 1 | 20 | 0 |
60e044f0bc8fe26b33697962ee9e947a087ac84b | Tony Arcieri | 2025-08-23T03:10:26 | Bump `crypto-bigint` to v0.7.0-rc.2 (#568) | diff --git a/Cargo.toml b/Cargo.toml
index e46a493..37869b1 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -14,7 +14,7 @@ rust-version = "1.85"
[dependencies]
const-oid = { version = "0.10", default-features = false }
-crypto-bigint = { version = "0.7.0-rc.1", default-features = false, features = ["zeroize", "alloc"] ... | 1 | 1 | 1 |
89f6e88d168114c9c4a32b3f578b156c91329b16 | Tony Arcieri | 2025-08-21T03:26:06 | Cargo.toml: fix docsrs feature flags (#559)
https://docs.rs/crate/rsa/0.10.0-rc.4/builds/2384222
[INFO] [stderr] error: the package 'rsa' does not contain this feature:
pem | diff --git a/Cargo.toml b/Cargo.toml
index 0ae574d..e46a493 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -60,7 +60,7 @@ pkcs5 = ["pkcs8/encryption"]
std = ["pkcs1?/std", "pkcs8?/std", "rand_core/std", "crypto-bigint/rand"]
[package.metadata.docs.rs]
-features = ["std", "pem", "serde", "hazmat", "sha2"]
+features = [... | 1 | 1 | 1 |
f32d85d1ed394a6d03f0403f423c19fda475b8bf | Friedel Ziegelmayer | 2025-08-15T19:57:50 | feat: bump crypto-bigint to 0.7.0-rc.1 | diff --git a/Cargo.lock b/Cargo.lock
index e1170e8..a7e10db 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -136,9 +136,9 @@ dependencies = [
[[package]]
name = "crypto-bigint"
-version = "0.7.0-rc.0"
+version = "0.7.0-rc.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "737a2363b81de8cc... | 4 | 7 | 6 |
9efaa5b5344cc2513f51989fca887efc0c29307c | Tony Arcieri | 2025-08-06T00:18:20 | v0.10.0-rc.4 (#552) | diff --git a/Cargo.lock b/Cargo.lock
index 9cc4181..e1170e8 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -519,7 +519,7 @@ checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c"
[[package]]
name = "rsa"
-version = "0.10.0-rc.3"
+version = "0.10.0-rc.4"
dependencies = [
"base64ct",
"const-o... | 2 | 2 | 2 |
84f65eafc5e9365ef385e804023745119df6ab97 | Tony Arcieri | 2025-08-05T23:16:32 | Bump `crypto-bigint` to v0.7.0-rc.0 (#551) | diff --git a/Cargo.lock b/Cargo.lock
index 9a6e358..9cc4181 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -136,9 +136,9 @@ dependencies = [
[[package]]
name = "crypto-bigint"
-version = "0.7.0-pre.7"
+version = "0.7.0-rc.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "85ff38607b7ebe3... | 2 | 3 | 3 |
c76e119c2ac3612013fb86d6d225b7dbd0b3fba6 | Tony Arcieri | 2025-07-19T17:00:22 | Bump `crypto-bigint` to v0.7.0-pre.7 (#544) | diff --git a/Cargo.lock b/Cargo.lock
index dd93284..21d3607 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -136,9 +136,9 @@ dependencies = [
[[package]]
name = "crypto-bigint"
-version = "0.7.0-pre.6"
+version = "0.7.0-pre.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "98dc20cae677f0... | 2 | 3 | 3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.