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 |
|---|---|---|---|---|---|---|---|
137ec7935c0c1f49ff431ffad1521d4f3bc70b25 | Tony Arcieri | 2025-09-02T02:24:14 | Bump `hybrid-array` to v0.4 (#1047) | diff --git a/Cargo.lock b/Cargo.lock
index 629469b..3c9010f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -46,6 +46,12 @@ version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4c7f02d4ea65f2c1853089ffd8d2787bdbc63de2f0d29dedbcf8ccdfa0ccd4cf"
+[[package]]
+name = "base16ct"
+ve... | 6 | 55 | 30 |
393d4e0c4f88db462f07c332aa703c3879efe2b7 | Zach Halvorsen | 2025-09-01T22:09:46 | ml-dsa: Add support for external mu (#1023) | diff --git a/ml-dsa/src/lib.rs b/ml-dsa/src/lib.rs
index 88d8261..17dd733 100644
--- a/ml-dsa/src/lib.rs
+++ b/ml-dsa/src/lib.rs
@@ -373,12 +373,18 @@ impl<P: MlDsaParams> SigningKey<P> {
// the concatenated M'.
// XXX(RLB) Should the API represent this as an input?
let mu = message_represent... | 1 | 114 | 4 |
41edbafeca0ecaf8076232e4b87a5564540bd2e3 | Tony Arcieri | 2025-08-06T03:30:21 | ecdsa: bump `elliptic-curve` to v0.14.0-rc.12 (#1034) | diff --git a/Cargo.lock b/Cargo.lock
index 633c381..629469b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -409,8 +409,9 @@ checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719"
[[package]]
name = "elliptic-curve"
-version = "0.14.0-rc.11"
-source = "git+https://github.com/RustCrypto/traits#526... | 3 | 5 | 6 |
8604f8c7ef7160167f3ace2beabe4504e6e7dcea | Tony Arcieri | 2025-08-06T00:40:30 | dsa v0.7.0-rc.4 (#1032) | diff --git a/Cargo.lock b/Cargo.lock
index 0641761..633c381 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -339,7 +339,7 @@ dependencies = [
[[package]]
name = "dsa"
-version = "0.7.0-rc.3"
+version = "0.7.0-rc.4"
dependencies = [
"crypto-bigint",
"crypto-primes",
diff --git a/dsa/Cargo.toml b/dsa/Cargo.toml
inde... | 2 | 3 | 3 |
938a09b269e830ac51eef48654441fd362677aa8 | Arthur Gautier | 2025-08-05T17:04:40 | ecdsa: adopt `der` API changes (#1025)
Make ecdsa crate compatible with changes to `Header` struct in the
`der` crate.
Co-authored-by: Daniel James <dan@gemini.com> | diff --git a/Cargo.lock b/Cargo.lock
index 5394a15..0641761 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -304,9 +304,9 @@ dependencies = [
[[package]]
name = "der"
-version = "0.8.0-rc.7"
+version = "0.8.0-rc.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e2fe0a4fafae25053c19a03fef... | 4 | 9 | 9 |
41c53ced65ed47c2d794b39e6929463166d3abf2 | Tony Arcieri | 2025-08-05T03:51:03 | ecdsa: use `CtOption::into_option` (#1031)
Infers types and makes these conversions less ugly | diff --git a/ecdsa/src/recovery.rs b/ecdsa/src/recovery.rs
index 4e8fe0e..4954eb2 100644
--- a/ecdsa/src/recovery.rs
+++ b/ecdsa/src/recovery.rs
@@ -376,21 +376,20 @@ where
let z = Scalar::<C>::reduce(&bits2field::<C>(prehash)?);
let r_bytes = if recovery_id.is_x_reduced() {
- Option::<C:... | 2 | 12 | 12 |
18be0266f9ec00ad4132e4b79836668b19c3d45f | Tony Arcieri | 2025-08-05T03:44:24 | ecdsa: use new `Reduce` trait (#1030)
Uses the `Reduce` trait added in RustCrypto/traits#1949 | diff --git a/Cargo.lock b/Cargo.lock
index fab05a7..5394a15 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -261,9 +261,9 @@ checksum = "43da5946c66ffcc7745f48db692ffbb10a83bfe0afd96235c5c2a4fb23994929"
[[package]]
name = "crypto-bigint"
-version = "0.7.0-pre.7"
+version = "0.7.0-rc.0"
source = "registry+https://githu... | 4 | 11 | 11 |
289c868ba770eb3adf399296e3871406eabe0c41 | Nicola Tuveri | 2025-07-28T12:48:34 | feat(ml-dsa): Implement verifying_key method for SigningKey (#1008)
Implement the `signature::Keypair` trait for `SigningKey`, enabling
derivation of a `VerifyingKey` from a bare signing key. Also adds
inherent `verifying_key` method to act as a convenience shim around the
trait implementation, ensuring a single sourc... | diff --git a/ml-dsa/src/lib.rs b/ml-dsa/src/lib.rs
index 94407a0..88d8261 100644
--- a/ml-dsa/src/lib.rs
+++ b/ml-dsa/src/lib.rs
@@ -504,6 +504,23 @@ impl<P: MlDsaParams> SigningKey<P> {
None,
)
}
+
+ /// This auxiliary function derives a `VerifyingKey` from a bare
+ /// `SigningKey` (e... | 1 | 56 | 0 |
e6d52c2ae0dcd348c37fd7f5c402ec752043a62c | Tony Arcieri | 2025-07-19T17:12:41 | Bump `crypto-bigint` to v0.7.0-pre.7 (#1022) | diff --git a/Cargo.lock b/Cargo.lock
index 00a6a41..fab05a7 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -261,9 +261,9 @@ checksum = "43da5946c66ffcc7745f48db692ffbb10a83bfe0afd96235c5c2a4fb23994929"
[[package]]
name = "crypto-bigint"
-version = "0.7.0-pre.6"
+version = "0.7.0-pre.7"
source = "registry+https://gith... | 3 | 6 | 5 |
b34288522cc6dc29f7488458d6f441efd92610bd | Tony Arcieri | 2025-07-16T15:40:43 | ecdsa v0.17.0-rc.5 (#1019) | diff --git a/Cargo.lock b/Cargo.lock
index 129ec94..00a6a41 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -360,7 +360,7 @@ dependencies = [
[[package]]
name = "ecdsa"
-version = "0.17.0-rc.4"
+version = "0.17.0-rc.5"
dependencies = [
"der",
"digest",
@@ -409,9 +409,9 @@ checksum = "48c757948c5ede0e46177b7add2e67... | 2 | 7 | 7 |
89cc97982e493c36f2da0c588889bfc70b1e5d6a | Tony Arcieri | 2025-07-16T14:34:32 | Bump `pkcs8` to v0.11.0-rc.6 (#1017) | diff --git a/dsa/Cargo.toml b/dsa/Cargo.toml
index 7300fc7..a791a55 100644
--- a/dsa/Cargo.toml
+++ b/dsa/Cargo.toml
@@ -26,12 +26,12 @@ signature = { version = "3.0.0-rc.2", default-features = false, features = ["all
zeroize = { version = "1", default-features = false, features = ["alloc"] }
# optional dependencie... | 5 | 8 | 8 |
7359233da92483cde389ee9feed9b86442dd664a | Tony Arcieri | 2025-07-16T14:21:11 | Bump `signature` to v3.0.0-rc.2 (#1016) | diff --git a/Cargo.lock b/Cargo.lock
index 87cb9f0..129ec94 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1135,9 +1135,9 @@ dependencies = [
[[package]]
name = "signature"
-version = "3.0.0-rc.1"
+version = "3.0.0-rc.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b8852cecbd17ba4597... | 8 | 9 | 9 |
1ff759e67a1675d759e901fdb5903a07a1d7caec | Tony Arcieri | 2025-07-10T23:02:16 | dsa v0.7.0-rc.3 (#1015) | diff --git a/Cargo.lock b/Cargo.lock
index 3865586..87cb9f0 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -339,7 +339,7 @@ dependencies = [
[[package]]
name = "dsa"
-version = "0.7.0-rc.2"
+version = "0.7.0-rc.3"
dependencies = [
"crypto-bigint",
"crypto-primes",
diff --git a/dsa/Cargo.toml b/dsa/Cargo.toml
inde... | 2 | 2 | 2 |
90757c30220a224f5a9019242c82d50dff1dba7f | Tony Arcieri | 2025-07-10T22:49:25 | dsa: make `pkcs8` feature optional (#1014)
It's not needed in applications which define their own key encodings,
for example SSH.
The feature is still enabled by-default. | diff --git a/dsa/Cargo.toml b/dsa/Cargo.toml
index be42b46..2c3f631 100644
--- a/dsa/Cargo.toml
+++ b/dsa/Cargo.toml
@@ -16,14 +16,17 @@ keywords = ["crypto", "nist", "signature"]
rust-version = "1.85"
[dependencies]
+der = { version = "0.8.0-rc.7", features = ["alloc"] }
digest = "0.11.0-rc.0"
crypto-bigint = { ... | 11 | 73 | 41 |
36a3faf7aaad11652d964d2a526c7448e6eb0ca6 | Tony Arcieri | 2025-07-10T03:58:45 | ecdsa: bump `elliptic-curve` to v0.14.0-rc.9 (#1013) | diff --git a/Cargo.lock b/Cargo.lock
index 258d62f..3865586 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -304,9 +304,9 @@ dependencies = [
[[package]]
name = "der"
-version = "0.8.0-rc.6"
+version = "0.8.0-rc.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a7d571780ddd86c50ecbcf7099... | 2 | 12 | 13 |
698356ed976485563e2072820b92864d7c576aac | Tony Arcieri | 2025-07-03T22:27:03 | ecdsa v0.17.0-rc.4 (#1012) | diff --git a/Cargo.lock b/Cargo.lock
index af31e7c..258d62f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -360,7 +360,7 @@ dependencies = [
[[package]]
name = "ecdsa"
-version = "0.17.0-rc.3"
+version = "0.17.0-rc.4"
dependencies = [
"der",
"digest",
diff --git a/ecdsa/Cargo.toml b/ecdsa/Cargo.toml
index 0de8abc... | 2 | 2 | 2 |
c5d63c881ce94ad1974cd9ed34116f7d04eb9a6b | Tony Arcieri | 2025-07-03T21:46:45 | dsa v0.7.0-rc.2 (#1011) | diff --git a/Cargo.lock b/Cargo.lock
index fa81e41..af31e7c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -339,7 +339,7 @@ dependencies = [
[[package]]
name = "dsa"
-version = "0.7.0-rc.1"
+version = "0.7.0-rc.2"
dependencies = [
"crypto-bigint",
"crypto-primes",
diff --git a/dsa/Cargo.toml b/dsa/Cargo.toml
inde... | 2 | 4 | 4 |
53361b03cd854cb46b6a8c41df72421fa5085803 | Tony Arcieri | 2025-07-03T20:56:32 | dsa+ecdsa: bump dependencies (#1010)
Bumps the following:
- crypto-bigint v0.7.0-pre.6
- der v0.8.0-rc.6
- elliptic-curve v0.14.0-rc.8
- pkcs8 v0.11.0-rc.5
- sec1 v0.8.0-rc.6
- spki v0.8.0-rc.3 | diff --git a/Cargo.lock b/Cargo.lock
index 585b0a0..fa81e41 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -261,9 +261,9 @@ checksum = "43da5946c66ffcc7745f48db692ffbb10a83bfe0afd96235c5c2a4fb23994929"
[[package]]
name = "crypto-bigint"
-version = "0.7.0-pre.5"
+version = "0.7.0-pre.6"
source = "registry+https://gith... | 4 | 21 | 23 |
6cc40e5c10b04dae44d91500d5a1afc4a3ff2b49 | Tony Arcieri | 2025-06-22T03:36:45 | `der` error handling fixups (#1005)
Companion PR to RustCrypto/formats#1889 | diff --git a/Cargo.lock b/Cargo.lock
index 1be579f..585b0a0 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -305,8 +305,7 @@ dependencies = [
[[package]]
name = "der"
version = "0.8.0-rc.5"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9843074b9f917c0ae9144eeab6f7cb5c09fe6d4b79807a4aa7aa... | 7 | 26 | 26 |
6950d7d1a10c4697bd801f65e86cd383cfa75c71 | Tony Arcieri | 2025-06-21T01:41:31 | dsa v0.7.0-rc.1 (#1004) | diff --git a/Cargo.lock b/Cargo.lock
index 31d0bc8..1be579f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -339,7 +339,7 @@ dependencies = [
[[package]]
name = "dsa"
-version = "0.7.0-rc.0"
+version = "0.7.0-rc.1"
dependencies = [
"crypto-bigint",
"crypto-primes",
@@ -360,7 +360,7 @@ dependencies = [
[[package... | 2 | 3 | 3 |
1c1f9346b89ad08289b098eeebfab0c5d7681e13 | Tony Arcieri | 2025-06-20T22:49:10 | ecdsa: bump `der` to v0.8.0-rc.5 (#1003)
This version notably automatically handles setting up a nested `Reader`
for passing to `DecodeValue::decode_value`, eliminating the need to do
it manually.
Also cuts an `ecdsa` v0.17.0-rc.3 | diff --git a/Cargo.lock b/Cargo.lock
index e47c904..31d0bc8 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -304,9 +304,9 @@ dependencies = [
[[package]]
name = "der"
-version = "0.8.0-rc.3"
+version = "0.8.0-rc.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b00a9651bf9c00a38b7c383073... | 3 | 10 | 13 |
76050fbe412040a6cb239194e7b1f3ef78caba69 | Tony Arcieri | 2025-06-16T18:25:42 | ecdsa: bump `elliptic-curve` to v0.14.0-rc.7 (#999) | diff --git a/Cargo.lock b/Cargo.lock
index cca1ea2..e47c904 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -409,8 +409,9 @@ checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719"
[[package]]
name = "elliptic-curve"
-version = "0.14.0-rc.6"
-source = "git+https://github.com/RustCrypto/traits.git#... | 3 | 4 | 5 |
6cbef4f168fbb360ed6d2f4fdc81855856bf1aab | Tony Arcieri | 2025-06-16T18:02:57 | dsa: handle `NonZero`/`Odd` conversions on `BoxedUint` internally (#998)
Makes `BoxedUint` the one unsigned integer type in the public API,
converting to `NonZero<BoxedUint>` and `Odd<BoxedUint>` as needed.
This makes the API simpler to use for end-users, with fewer types for
them to manage.
Closes #987 | diff --git a/Cargo.lock b/Cargo.lock
index 0821ea0..cca1ea2 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -261,9 +261,9 @@ checksum = "43da5946c66ffcc7745f48db692ffbb10a83bfe0afd96235c5c2a4fb23994929"
[[package]]
name = "crypto-bigint"
-version = "0.7.0-pre.4"
+version = "0.7.0-pre.5"
source = "registry+https://gith... | 9 | 58 | 95 |
c84a3c411eb3a3ba1bc38dfe6ba71c2430cbb3a6 | dishmaker | 2025-06-14T18:38:13 | all: test: apply cargo clippy fixes (#966)
* dsa+ecdsa+ed25519+ed448+ml-dsa: apply cargo clippy fixes
* ml-dsa: test: allow `clippy::integer_division_remainder_used` | diff --git a/dsa/tests/signature.rs b/dsa/tests/signature.rs
index 3fa326d..dc805db 100644
--- a/dsa/tests/signature.rs
+++ b/dsa/tests/signature.rs
@@ -5,7 +5,7 @@ use digest::Digest;
use dsa::{Components, KeySize, Signature, SigningKey};
use hex_literal::hex;
use pkcs8::der::{Decode, Encode};
-use rand::{CryptoRng... | 10 | 29 | 26 |
b2229bd404849269400caad52eac100f521bf696 | dishmaker | 2025-06-14T18:37:28 | apply nightly clippy fixes (2025-05-12) (#967) | diff --git a/ecdsa/src/der.rs b/ecdsa/src/der.rs
index 873542f..06933fe 100644
--- a/ecdsa/src/der.rs
+++ b/ecdsa/src/der.rs
@@ -187,7 +187,7 @@ where
write!(f, "ecdsa::der::Signature<{:?}>(", C::default())?;
for &byte in self.as_ref() {
- write!(f, "{:02X}", byte)?;
+ write!(f... | 12 | 20 | 22 |
c2552ff7bec2aaa8b4d8bd80c63bc874bba7aa91 | Tony Arcieri | 2025-06-14T01:51:58 | ecdsa v0.17.0-rc.2 (#997) | diff --git a/Cargo.lock b/Cargo.lock
index aaa2e5b..0821ea0 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -409,9 +409,9 @@ checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719"
[[package]]
name = "elliptic-curve"
-version = "0.14.0-rc.4"
+version = "0.14.0-rc.6"
source = "registry+https://git... | 2 | 4 | 4 |
4143f2134ee2ff75e20822469f8e0dcebc288adc | Tony Arcieri | 2025-06-14T00:05:05 | ecdsa: rename `DigestPrimitive` to `DigestAlgorithm` (#996)
This name better gets the intent across | diff --git a/ecdsa/src/der.rs b/ecdsa/src/der.rs
index 541f395..873542f 100644
--- a/ecdsa/src/der.rs
+++ b/ecdsa/src/der.rs
@@ -399,7 +399,7 @@ fn find_scalar_range(outer: &[u8], inner: &[u8]) -> Result<Range<usize>> {
#[cfg(all(feature = "digest", feature = "hazmat"))]
impl<C> signature::PrehashSignature for Signat... | 6 | 46 | 46 |
ade6fdbb10428e3d5b3fad120a04f7302f6bcf97 | Arthur Gautier | 2025-06-06T17:08:15 | ecdsa: v0.17.0-rc.1 (#995) | diff --git a/Cargo.lock b/Cargo.lock
index a139aa4..aaa2e5b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -360,7 +360,7 @@ dependencies = [
[[package]]
name = "ecdsa"
-version = "0.17.0-rc.0"
+version = "0.17.0-rc.1"
dependencies = [
"der",
"digest",
diff --git a/ecdsa/Cargo.toml b/ecdsa/Cargo.toml
index b101259... | 2 | 2 | 2 |
56b66a832b3461de1216d5d2b4cedb0717e107c6 | dishmaker | 2025-06-06T14:28:44 | ecdsa: der: use impl `EncodeValue`/`DecodeValue` on `SignatureRef` (#965) | diff --git a/ecdsa/src/der.rs b/ecdsa/src/der.rs
index 65a88de..541f395 100644
--- a/ecdsa/src/der.rs
+++ b/ecdsa/src/der.rs
@@ -8,7 +8,10 @@ use core::{
fmt::{self, Debug},
ops::{Add, Range},
};
-use der::{Decode, Encode, FixedTag, Header, Length, Reader, Tag, Writer, asn1::UintRef};
+use der::{
+ Decode... | 1 | 38 | 24 |
8d8837f0d78ace236fcd171f31bcfe99b94e9d09 | Tony Arcieri | 2025-06-06T13:50:31 | Cargo.lock: bump `bumpalo` to v3.18.1 (#994)
Fixes security audit | diff --git a/Cargo.lock b/Cargo.lock
index 0be5ca1..8ac196c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -93,9 +93,9 @@ dependencies = [
[[package]]
name = "bumpalo"
-version = "3.18.0"
+version = "3.18.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c1b094a32014c3d1f3944e4808e0e7c7... | 1 | 2 | 2 |
0da7d962e1f3c51ebee4f0917a27d3557a0e977c | Tony Arcieri | 2025-06-06T00:33:59 | Cargo.lock: bump dependencies (#992)
Updates the following dependencies:
$ cargo update
Updating crates.io index
Locking 87 packages to latest compatible versions
Updating anstyle v1.0.6 -> v1.0.11
Updating autocfg v1.1.0 -> v1.4.0
Updating base64ct v1.6.0 -> v1.8.0
Updating bit-set v0.5.... | diff --git a/Cargo.lock b/Cargo.lock
index b8996cb..96ea615 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -30,15 +30,15 @@ checksum = "4b46cbb362ab8752921c97e041f5e366ee6297bd428a31275b9fcf1e380f7299"
[[package]]
name = "anstyle"
-version = "1.0.6"
+version = "1.0.11"
source = "registry+https://github.com/rust-lang/... | 1 | 230 | 254 |
ca0b3dadf4798059c1a276ac97c6fd360b581271 | Luna | 2025-06-05T20:26:36 | ml-dsa: Turn off unsused default features so that no_std works (#989) | diff --git a/ml-dsa/Cargo.toml b/ml-dsa/Cargo.toml
index 082540a..ba2dd95 100644
--- a/ml-dsa/Cargo.toml
+++ b/ml-dsa/Cargo.toml
@@ -33,10 +33,10 @@ pkcs8 = ["dep:const-oid", "dep:pkcs8"]
[dependencies]
hybrid-array = { version = "0.3", features = ["extra-sizes"] }
-num-traits = "0.2.19"
+num-traits = { version = "... | 1 | 2 | 2 |
066595c927d2468c2f278011a243e7749a188f17 | Tony Arcieri | 2025-06-05T15:56:00 | ecdsa: minor signing cleanups (#988) | diff --git a/ecdsa/src/hazmat.rs b/ecdsa/src/hazmat.rs
index 61f9eb4..a6efdcf 100644
--- a/ecdsa/src/hazmat.rs
+++ b/ecdsa/src/hazmat.rs
@@ -136,23 +136,26 @@ where
{
let z = <Scalar<C> as Reduce<C::Uint>>::reduce_bytes(z);
- // Compute scalar inversion of 𝑘
+ // Compute scalar inversion of 𝑘.
let ... | 1 | 8 | 5 |
80a0276c6f1f023be33e68061d7ed0df787cbddb | Arthur Gautier | 2025-06-05T15:25:40 | ed448: implement `AssociatedAlgorithmIdentifier` for `Signature` (#986)
See <https://datatracker.ietf.org/doc/html/rfc8410#section-3> | diff --git a/ed25519/src/lib.rs b/ed25519/src/lib.rs
index aeab9bf..c6113a8 100644
--- a/ed25519/src/lib.rs
+++ b/ed25519/src/lib.rs
@@ -396,10 +396,7 @@ impl SignatureBitStringEncoding for Signature {
impl AssociatedAlgorithmIdentifier for Signature {
type Params = AnyRef<'static>;
- const ALGORITHM_IDENTIF... | 2 | 30 | 4 |
479bcef39afcf50617491f8c209312d44dba793e | Arthur Gautier | 2025-06-05T15:24:53 | ed25519,ed448: remove std features (#985) | diff --git a/ed25519/Cargo.toml b/ed25519/Cargo.toml
index 52027cc..0e0c596 100644
--- a/ed25519/Cargo.toml
+++ b/ed25519/Cargo.toml
@@ -23,7 +23,7 @@ signature = { version = "3.0.0-rc.1", default-features = false }
# optional dependencies
pkcs8 = { version = "0.11.0-rc.2", optional = true }
serde = { version = "1",... | 2 | 3 | 5 |
85c1abb4fdf43c77fe56d6c39c8567ca93b8360c | daxpedda | 2025-06-05T15:24:25 | Implement `MultipartSigner/Verifier` (#982) | diff --git a/Cargo.lock b/Cargo.lock
index 8a9ad0f..b8996cb 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1138,9 +1138,9 @@ dependencies = [
[[package]]
name = "signature"
-version = "3.0.0-rc.0"
+version = "3.0.0-rc.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d7ae074ff622614874... | 23 | 387 | 77 |
1fb2f882212d845b08dc2184f4f61f2ab507dbc6 | Arthur Gautier | 2025-06-03T23:46:50 | ed448: do not pull std (#984) | diff --git a/ed448/Cargo.toml b/ed448/Cargo.toml
index b54e766..2a19c8e 100644
--- a/ed448/Cargo.toml
+++ b/ed448/Cargo.toml
@@ -23,7 +23,7 @@ signature = { version = "3.0.0-rc.0", default-features = false }
# optional dependencies
pkcs8 = { version = "0.11.0-rc.1", optional = true }
serde = { version = "1", optiona... | 1 | 2 | 2 |
ffc1ffe3c3b9633d071fc82d507567cc8297d1ce | Arthur Gautier | 2025-06-03T18:57:22 | ed448: make ComponentBytes an array (#983) | diff --git a/ed448/src/hex.rs b/ed448/src/hex.rs
index fba9777..840ff4f 100644
--- a/ed448/src/hex.rs
+++ b/ed448/src/hex.rs
@@ -4,7 +4,7 @@ use core::{fmt, str};
impl fmt::LowerHex for Signature {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
- for component in [&self.R.0, &self.s.0] {
+ ... | 2 | 19 | 17 |
2798f7999b1b65804ce92f16d633b2e20dcd2271 | Tony Arcieri | 2025-06-01T02:15:34 | dsa: remove `std` feature (#980)
It isn't actually used for anything, and with a hard dependency on
`alloc` and `core::error::Error` we can always capture
`Box<std::error::Error>` in `signature::Error`. | diff --git a/dsa/Cargo.toml b/dsa/Cargo.toml
index 78b9c18..cbbf203 100644
--- a/dsa/Cargo.toml
+++ b/dsa/Cargo.toml
@@ -36,7 +36,6 @@ sha1 = "0.11.0-rc.0"
der = { version = "0.8.0-rc.1", features = ["derive"] }
[features]
-std = []
hazmat = []
[package.metadata.docs.rs]
diff --git a/dsa/src/lib.rs b/dsa/src/li... | 2 | 1 | 3 |
daf1f36e42e50200f8425048e343d2262eec94b1 | Tony Arcieri | 2025-06-01T02:11:13 | dsa: minor `hazmat` cleanups (#979)
- Place attributes after comments
- Ensure `hazmat` features are documented on docs.rs | diff --git a/dsa/Cargo.toml b/dsa/Cargo.toml
index f649701..78b9c18 100644
--- a/dsa/Cargo.toml
+++ b/dsa/Cargo.toml
@@ -39,6 +39,9 @@ der = { version = "0.8.0-rc.1", features = ["derive"] }
std = []
hazmat = []
+[package.metadata.docs.rs]
+all-features = true
+
[[example]]
name = "sign"
required-features = ["ha... | 2 | 5 | 2 |
9feb055fec114fba7851524f06d81917976fa38c | Tony Arcieri | 2025-05-31T16:19:17 | ed25519 v3.0.0-pre.0 (#978) | diff --git a/Cargo.lock b/Cargo.lock
index 776cacf..8a9ad0f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -382,7 +382,7 @@ dependencies = [
[[package]]
name = "ed25519"
-version = "3.0.0-pre"
+version = "3.0.0-pre.0"
dependencies = [
"bincode",
"hex-literal 1.0.0",
diff --git a/ed25519/Cargo.toml b/ed25519/Cargo... | 2 | 2 | 2 |
8715ae96cbcc214cba4c21922ea12b91f0cee19b | Tony Arcieri | 2025-05-31T01:07:17 | dsa v0.7.0-rc.0 (#977) | diff --git a/Cargo.lock b/Cargo.lock
index 55163d2..776cacf 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -345,7 +345,7 @@ dependencies = [
[[package]]
name = "dsa"
-version = "0.7.0-pre.1"
+version = "0.7.0-rc.0"
dependencies = [
"crypto-bigint",
"crypto-primes",
diff --git a/dsa/Cargo.toml b/dsa/Cargo.toml
ind... | 2 | 2 | 2 |
6e3caccf2e0564c80eefc92f3c452d36718ff8ce | Tony Arcieri | 2025-05-31T00:46:39 | Bump `crypto-bigint` to v0.7.0-pre.4 (#976) | diff --git a/Cargo.lock b/Cargo.lock
index 8ad3b0c..55163d2 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -267,9 +267,9 @@ checksum = "7a81dae078cea95a014a339291cec439d2f232ebe854a9d672b796c6afafa9b7"
[[package]]
name = "crypto-bigint"
-version = "0.7.0-pre.3"
+version = "0.7.0-pre.4"
source = "registry+https://gith... | 4 | 13 | 13 |
b98d6c050885fdd6d7c9c577b37203d6879d09a5 | Tony Arcieri | 2025-05-29T16:46:37 | ecdsa v0.17.0-rc.0 (#975) | diff --git a/Cargo.lock b/Cargo.lock
index 45652f1..8ad3b0c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -364,7 +364,7 @@ dependencies = [
[[package]]
name = "ecdsa"
-version = "0.17.0-pre.9"
+version = "0.17.0-rc.0"
dependencies = [
"der",
"digest",
diff --git a/ecdsa/Cargo.toml b/ecdsa/Cargo.toml
index a9f55e... | 2 | 2 | 2 |
af3688602f253220aaff1f97e4edfdc5c1dda52b | Tony Arcieri | 2025-05-29T16:32:22 | rfc6979 v0.5.0-rc.0 (#974) | diff --git a/Cargo.lock b/Cargo.lock
index c9f36c0..45652f1 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -988,7 +988,7 @@ checksum = "adad44e29e4c806119491a7f06f03de4d1af22c3a680dd47f1e6e179439d1f56"
[[package]]
name = "rfc6979"
-version = "0.5.0-pre.4"
+version = "0.5.0-rc.0"
dependencies = [
"hex-literal 1.0.0"... | 4 | 4 | 4 |
26b288943868babb6068b4cab463bd79842f7f2c | Tony Arcieri | 2025-05-29T16:16:43 | Bump `digest` dependency to v0.11.0-rc.0 (#973)
Also bumps:
- `elliptic-curve` v0.14.0-rc.2
- `signature` v3.0.0-rc.0 | diff --git a/Cargo.lock b/Cargo.lock
index af1d458..c9f36c0 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -154,7 +154,7 @@ version = "0.5.0-pre.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5b1425e6ce000f05a73096556cabcfb6a10a3ffe3bb4d75416ca8f00819c0b6a"
dependencies = [
- "crypto-co... | 10 | 58 | 76 |
132a6b1b38d055caa548a095e6342d58d2bc3f3c | Arthur Gautier | 2025-05-27T18:13:58 | chore(deps): bump `digest` git pin (#971) | diff --git a/Cargo.lock b/Cargo.lock
index 4b0575f..af1d458 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -154,7 +154,7 @@ version = "0.5.0-pre.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5b1425e6ce000f05a73096556cabcfb6a10a3ffe3bb4d75416ca8f00819c0b6a"
dependencies = [
- "crypto-co... | 8 | 34 | 24 |
6caf9afc4a8bf6c6b9422952023548287fd846e0 | dishmaker | 2025-05-17T17:21:57 | apply nightly clippy fixes: const `div_ceil` (2025-05-12) (#968) | diff --git a/slh-dsa/src/hashes/sha2.rs b/slh-dsa/src/hashes/sha2.rs
index 0f78f56..d9959cd 100644
--- a/slh-dsa/src/hashes/sha2.rs
+++ b/slh-dsa/src/hashes/sha2.rs
@@ -166,7 +166,7 @@ impl HypertreeParams for Sha2_128s {
impl ForsParams for Sha2_128s {
type K = U<14>;
type A = U<12>;
- type MD = U<{ (12 ... | 3 | 11 | 11 |
c1f1829e5b9bf4fff85a120d0c42b2364e947c47 | Georgine Forner | 2025-05-15T15:31:20 | fix: correct hi bit description in RecoveryId documentation (#970) | diff --git a/ecdsa/src/recovery.rs b/ecdsa/src/recovery.rs
index 05efa1f..d09073a 100644
--- a/ecdsa/src/recovery.rs
+++ b/ecdsa/src/recovery.rs
@@ -47,7 +47,7 @@ use {
/// - low bit (0/1): was the y-coordinate of the affine point resulting from
/// the fixed-base multiplication 𝑘×𝑮 odd? This part of the algorith... | 1 | 1 | 1 |
6f17b321202299d5e39a2d542814f1e0cb24853c | Arthur Gautier | 2025-05-13T22:48:33 | bump crypto-bigint to master, use core naming conventions (#963) | diff --git a/Cargo.lock b/Cargo.lock
index 9cd1d47..4b0575f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -267,9 +267,9 @@ checksum = "7a81dae078cea95a014a339291cec439d2f232ebe854a9d672b796c6afafa9b7"
[[package]]
name = "crypto-bigint"
-version = "0.7.0-pre.2"
+version = "0.7.0-pre.3"
source = "registry+https://gith... | 5 | 10 | 9 |
b66adc00be5c4cf594331c091da8ea71e5f5f32d | Arthur Gautier | 2025-05-06T19:18:53 | bump signature git pin (#961) | diff --git a/Cargo.lock b/Cargo.lock
index 7bb9f22..9cd1d47 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1136,7 +1136,7 @@ dependencies = [
[[package]]
name = "signature"
version = "3.0.0-pre"
-source = "git+https://github.com/RustCrypto/traits.git#ac5443909846354e11570e2968937a62f2019bed"
+source = "git+https://git... | 1 | 1 | 1 |
7febf15d74927018d818d5404258153db76b59df | Arthur Gautier | 2025-05-06T01:56:06 | ecdsa: restore `RandomizedSigner<der::Signature>` (#960) | diff --git a/ecdsa/src/signing.rs b/ecdsa/src/signing.rs
index 287e433..5872dff 100644
--- a/ecdsa/src/signing.rs
+++ b/ecdsa/src/signing.rs
@@ -346,6 +346,24 @@ where
}
}
+#[cfg(feature = "der")]
+impl<C> RandomizedSigner<der::Signature<C>> for SigningKey<C>
+where
+ C: EcdsaCurve + CurveArithmetic + Digest... | 1 | 18 | 0 |
2c8b508c5dd5f7c3ba65130b2f163ee8f955c018 | Ivan Stanković | 2025-05-05T12:50:20 | ed25519: fix docs of ComponentBytes (#957) | diff --git a/ed25519/src/lib.rs b/ed25519/src/lib.rs
index d62e0cb..aeab9bf 100644
--- a/ed25519/src/lib.rs
+++ b/ed25519/src/lib.rs
@@ -298,8 +298,7 @@ use zeroize::Zeroize;
/// Size of a single component of an Ed25519 signature.
const COMPONENT_SIZE: usize = 32;
-/// Size of an `R` or `s` component of an Ed25519 ... | 1 | 1 | 2 |
692353d7c68e9a7c05f8b497260727294ee3ee06 | xjd | 2025-05-04T12:52:37 | refactor: improve no_std support for slh-dsa (#956) | diff --git a/slh-dsa/src/fors.rs b/slh-dsa/src/fors.rs
index 467f700..e01ac0f 100644
--- a/slh-dsa/src/fors.rs
+++ b/slh-dsa/src/fors.rs
@@ -105,8 +105,8 @@ impl<P: ForsParams> ForsSignature<P> {
}
#[cfg(feature = "alloc")]
- pub fn to_vec(&self) -> Vec<u8> {
- let mut v = vec![0u8; Self::SIZE];
+... | 8 | 19 | 16 |
2f10b1b714625f46e45b4cd13e771332b018ef91 | Arthur Gautier | 2025-05-04T02:01:42 | ml-dsa: migrate to signature 3 (#954) | diff --git a/Cargo.lock b/Cargo.lock
index 0aa3304..7bb9f22 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -358,7 +358,7 @@ dependencies = [
"rfc6979",
"sha1",
"sha2",
- "signature 3.0.0-pre",
+ "signature",
"zeroize",
]
@@ -373,7 +373,7 @@ dependencies = [
"rfc6979",
"serdect",
"sha2",
- "signature 3.0.0... | 2 | 8 | 17 |
0dd5dbc3e8e8fa00c8a9331d5da2a8bf292cd6e3 | Arthur Gautier | 2025-05-03T13:38:37 | chore(deps): bump `crypto-bigint` to `0.7.0-pre.2` (#953) | diff --git a/Cargo.lock b/Cargo.lock
index a94b8e0..0aa3304 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -267,8 +267,9 @@ checksum = "7a81dae078cea95a014a339291cec439d2f232ebe854a9d672b796c6afafa9b7"
[[package]]
name = "crypto-bigint"
-version = "0.7.0-pre.1"
-source = "git+https://github.com/RustCrypto/crypto-bigin... | 9 | 36 | 39 |
6cce0281c22e5f9a90f1d38ce2b05e08c6f3db34 | kat fox | 2025-04-29T20:40:07 | dsa: impl ZeroizeOnDrop for SigningKey (#917) | diff --git a/dsa/src/signing_key.rs b/dsa/src/signing_key.rs
index 7661597..b7bf6a3 100644
--- a/dsa/src/signing_key.rs
+++ b/dsa/src/signing_key.rs
@@ -26,7 +26,7 @@ use signature::{
hazmat::{PrehashSigner, RandomizedPrehashSigner},
rand_core::TryCryptoRng,
};
-use zeroize::{Zeroize, Zeroizing};
+use zeroiz... | 1 | 3 | 1 |
a10c3f6756b52434a5e292ba5b3634cc72214003 | Arthur Gautier | 2025-04-29T20:38:25 | signature does not carry the `std` feature anymore (#946) | diff --git a/ecdsa/Cargo.toml b/ecdsa/Cargo.toml
index 5877156..4cde7c0 100644
--- a/ecdsa/Cargo.toml
+++ b/ecdsa/Cargo.toml
@@ -37,7 +37,7 @@ sha2 = { version = "=0.11.0-pre.5", default-features = false }
[features]
default = ["digest"]
alloc = ["elliptic-curve/alloc", "signature/alloc", "spki/alloc"]
-std = ["allo... | 3 | 3 | 3 |
57f98328b1c9033c161638322a0af2e47b1b26db | Arthur Gautier | 2025-04-29T20:37:23 | ecdsa: restore `Signer<der::Signature>` (#947) | diff --git a/ecdsa/src/signing.rs b/ecdsa/src/signing.rs
index f2c602b..f75e605 100644
--- a/ecdsa/src/signing.rs
+++ b/ecdsa/src/signing.rs
@@ -267,6 +267,41 @@ where
}
}
+#[cfg(feature = "der")]
+impl<D, C> DigestSigner<D, der::Signature<C>> for SigningKey<C>
+where
+ C: EcdsaCurve + CurveArithmetic + Dige... | 1 | 35 | 0 |
edb327f4a79480aa8ebb9112d8905540a48b0a68 | daxpedda | 2025-04-29T20:33:58 | ecdsa: impl `Zeroize` for `Signature` (#948) | diff --git a/Cargo.lock b/Cargo.lock
index f31fd76..a94b8e0 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -374,6 +374,7 @@ dependencies = [
"sha2",
"signature 3.0.0-pre",
"spki",
+ "zeroize",
]
[[package]]
diff --git a/ecdsa/Cargo.toml b/ecdsa/Cargo.toml
index 4927141..5877156 100644
--- a/ecdsa/Cargo.toml
+++ ... | 3 | 10 | 0 |
57588e2ae774ab725a17ec0dc286f41bc18888f1 | daxpedda | 2025-04-29T19:51:43 | ed25519: impl `Zeroize` for `ed25519::Signature` (#952) | diff --git a/ed25519/src/lib.rs b/ed25519/src/lib.rs
index 01f3951..d62e0cb 100644
--- a/ed25519/src/lib.rs
+++ b/ed25519/src/lib.rs
@@ -292,6 +292,9 @@ use pkcs8::spki::{
der::{self, asn1::BitString},
};
+#[cfg(feature = "zeroize")]
+use zeroize::Zeroize;
+
/// Size of a single component of an Ed25519 signatu... | 1 | 11 | 0 |
32aea438cd4d08b519c1cfad525e1479d1149ab3 | daxpedda | 2025-04-29T14:06:37 | ecdsa: automatically retry signing with random `k` (#951) | diff --git a/ecdsa/src/hazmat.rs b/ecdsa/src/hazmat.rs
index 245cb9d..2065e19 100644
--- a/ecdsa/src/hazmat.rs
+++ b/ecdsa/src/hazmat.rs
@@ -93,6 +93,11 @@ pub fn bits2field<C: EcdsaCurve>(bits: &[u8]) -> Result<FieldBytes<C>> {
///
/// ECDSA [`Signature`] and a [`RecoveryId`] which can be used to recover the verifyi... | 3 | 32 | 6 |
afe73a90c3848169f23da31098ac10116a3cf1e1 | Arthur Gautier | 2025-04-23T21:37:05 | dsa: capture error (#941) | diff --git a/Cargo.lock b/Cargo.lock
index ee95a7c..f31fd76 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -307,9 +307,9 @@ dependencies = [
[[package]]
name = "der"
-version = "0.8.0-rc.1"
+version = "0.8.0-rc.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "82db698b33305f0134faf590b9... | 3 | 16 | 25 |
3dff9441342df82da2049e4ed9e075cf9c128c4a | Arthur Gautier | 2025-04-23T17:58:02 | chore(deps): bump `const-oid` from `0.10.0-rc3` to `0.10` (#942) | diff --git a/Cargo.lock b/Cargo.lock
index 05ea658..ee95a7c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -185,9 +185,9 @@ checksum = "98cc8fbded0c607b7ba9dd60cd98df59af97e84d24e49c8557331cfc26d301ce"
[[package]]
name = "const-oid"
-version = "0.10.0-rc.3"
+version = "0.10.1"
source = "registry+https://github.com/ru... | 3 | 4 | 4 |
a83c494216b6f3dacba5d4e4376785e2ea142044 | Arthur Gautier | 2025-04-21T22:48:12 | chore(deps): bump `signature` from `2.3.0-pre.6` to `2.3.0-pre.7` (#943) | diff --git a/Cargo.lock b/Cargo.lock
index 8abbef3..f1f3139 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1088,8 +1088,9 @@ dependencies = [
[[package]]
name = "signature"
-version = "2.3.0-pre.6"
-source = "git+https://github.com/RustCrypto/traits.git#b46b3d185459416fdd86a0ac2713f716f1bd183e"
+version = "2.3.0-pre.... | 8 | 9 | 9 |
34cd7792c248e36693d617968d38c14d4ab4618a | Arthur Gautier | 2025-04-18T14:21:48 | bump ff and group to pre-releases (#940) | diff --git a/Cargo.lock b/Cargo.lock
index 12dd028..8abbef3 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -369,7 +369,7 @@ checksum = "11157ac094ffbdde99aa67b23417ebdd801842852b500e395a45a9c0aac03e4a"
[[package]]
name = "elliptic-curve"
version = "0.14.0-rc.1"
-source = "git+https://github.com/RustCrypto/traits.git#27... | 3 | 10 | 16 |
3679d7129aae688ea1429ec58cb74b9828c676bd | Friedel Ziegelmayer | 2025-04-13T04:30:15 | feat(slh-dsa): add zeroize support for SigningKey (#938)
Closes #937 | diff --git a/Cargo.lock b/Cargo.lock
index ba2bb31..12dd028 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1122,6 +1122,7 @@ dependencies = [
"signature",
"typenum",
"zerocopy 0.7.35",
+ "zeroize",
]
[[package]]
diff --git a/slh-dsa/Cargo.toml b/slh-dsa/Cargo.toml
index 306479b..9531781 100644
--- a/slh-dsa/Car... | 3 | 19 | 0 |
e1ededaa3443525958d1ad806a85a82ad8219e9c | Arthur Gautier | 2025-03-18T21:25:48 | lms,ml-dsa: relax `Sized` requirement on the rng (#918) | diff --git a/lms/src/lms/private.rs b/lms/src/lms/private.rs
index 885c65d..ec857dd 100644
--- a/lms/src/lms/private.rs
+++ b/lms/src/lms/private.rs
@@ -7,7 +7,6 @@ use crate::types::{Identifier, Typecode};
use digest::{Digest, Output, OutputSizeUser};
use hybrid_array::{Array, ArraySize};
-use rand::Rng;
use rand... | 4 | 7 | 8 |
3d5016ab2a83c26c3d580e9f0eafa3f707d1df66 | Tony Arcieri | 2025-03-18T21:24:48 | ecdsa: remove default `elliptic-curve/digest` feature (#927)
We have a `digest` feature already, which can be used to enable this as
needed | diff --git a/ecdsa/Cargo.toml b/ecdsa/Cargo.toml
index dce2a15..2a838bd 100644
--- a/ecdsa/Cargo.toml
+++ b/ecdsa/Cargo.toml
@@ -17,7 +17,7 @@ edition = "2024"
rust-version = "1.85"
[dependencies]
-elliptic-curve = { version = "0.14.0-rc.1", default-features = false, features = ["digest", "sec1"] }
+elliptic-curve ... | 1 | 2 | 2 |
449d7483496ce414a7df6cca888c1f877a7f1371 | Arthur Gautier | 2025-03-09T18:08:59 | ecdsa: provide a `SigningKey::try_from_rng` (#915) | diff --git a/Cargo.lock b/Cargo.lock
index 8c350f6..ba2bb31 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -369,7 +369,7 @@ checksum = "11157ac094ffbdde99aa67b23417ebdd801842852b500e395a45a9c0aac03e4a"
[[package]]
name = "elliptic-curve"
version = "0.14.0-rc.1"
-source = "git+https://github.com/RustCrypto/traits.git#28... | 3 | 16 | 4 |
06b9cc91f2abe30fc8ce00e6d5637e6f251f661f | Arthur Gautier | 2025-03-09T17:08:12 | remove git dependency on hashes and hmac (#923) | diff --git a/Cargo.lock b/Cargo.lock
index dc3a351..8c350f6 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -500,8 +500,9 @@ checksum = "bcaaec4551594c969335c98c903c1397853d4198408ea609190f420500f6be71"
[[package]]
name = "hmac"
-version = "0.13.0-pre.4"
-source = "git+https://github.com/RustCrypto/MACs.git#c7cbed0bd3f... | 7 | 18 | 22 |
00872d3ec99ebcca4c57538fbbe76eb3922ca31f | Kat Fox | 2025-03-08T15:39:02 | ml-dsa: catch benches/ml_dsa.rs up with ml-dsa implementation changes (#921) | diff --git a/ml-dsa/benches/ml_dsa.rs b/ml-dsa/benches/ml_dsa.rs
index bc9c24f..2bfac0d 100644
--- a/ml-dsa/benches/ml_dsa.rs
+++ b/ml-dsa/benches/ml_dsa.rs
@@ -10,14 +10,14 @@ pub fn rand<L: ArraySize>(rng: &mut (impl RngCore + CryptoRng)) -> Array<u8, L>
}
fn criterion_benchmark(c: &mut Criterion) {
- let mut ... | 1 | 8 | 8 |
a3c930906b408c91c0c48ebe74c750a65b1012e4 | Jason Gerard DeRose | 2025-03-05T13:46:48 | ml-dsa: exclude tests/ in published crate due to size (#919) | diff --git a/ml-dsa/Cargo.toml b/ml-dsa/Cargo.toml
index bda1cb0..5eb83d4 100644
--- a/ml-dsa/Cargo.toml
+++ b/ml-dsa/Cargo.toml
@@ -13,6 +13,16 @@ repository = "https://github.com/RustCrypto/signatures"
readme = "README.md"
categories = ["cryptography"]
keywords = ["crypto", "signature"]
+# Exclude these large file... | 1 | 10 | 0 |
d3640f1c6fcc68601f1cbffdf9f2793c74dbbc7d | Jason Gerard DeRose | 2025-02-22T07:54:00 | ml-dsa: update pkcs8@0.11.0-rc.2 (#911) | diff --git a/ml-dsa/Cargo.lock b/ml-dsa/Cargo.lock
index 26751c2..bf90308 100644
--- a/ml-dsa/Cargo.lock
+++ b/ml-dsa/Cargo.lock
@@ -484,9 +484,9 @@ dependencies = [
[[package]]
name = "pkcs8"
-version = "0.11.0-rc.1"
+version = "0.11.0-rc.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checks... | 2 | 4 | 4 |
d6698e086d50f716ecc5c8fff6893c3e0c26b3ad | Jason Gerard DeRose | 2025-02-20T20:43:00 | ml-dsa: update signature@2.3.0-pre.6 (#910) | diff --git a/ml-dsa/Cargo.lock b/ml-dsa/Cargo.lock
index 6fbe2b7..26751c2 100644
--- a/ml-dsa/Cargo.lock
+++ b/ml-dsa/Cargo.lock
@@ -782,9 +782,9 @@ dependencies = [
[[package]]
name = "signature"
-version = "2.3.0-pre.5"
+version = "2.3.0-pre.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-ch... | 2 | 3 | 3 |
b532d1ee8fe38fdd1f78f073b872ed4a44443cf9 | Tony Arcieri | 2025-02-12T22:31:15 | ml-dsa v0.1.0-pre.1 (#898) | diff --git a/Cargo.lock b/Cargo.lock
index 6667fa0..910b8f3 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -681,7 +681,7 @@ checksum = "6c8640c5d730cb13ebd907d8d04b52f55ac9a2eec55b440c8892f40d56c76c1d"
[[package]]
name = "ml-dsa"
-version = "0.1.0-pre.0"
+version = "0.1.0-pre.1"
dependencies = [
"const-oid",
"cri... | 2 | 2 | 2 |
b01c3b73dd08d0094e089aa234f78b6089ec1f38 | Richard Barnes | 2025-02-12T21:57:11 | Make ML-DSA signature decoding follow the spec (#895)
Fixes #894 | diff --git a/ml-dsa/src/algebra.rs b/ml-dsa/src/algebra.rs
index b89bd28..85de202 100644
--- a/ml-dsa/src/algebra.rs
+++ b/ml-dsa/src/algebra.rs
@@ -210,3 +210,53 @@ impl<K: ArraySize> AlgebraExt for Vector<K> {
)
}
}
+
+#[cfg(test)]
+mod test {
+ use super::*;
+
+ use crate::{MlDsa65, ParameterSet... | 3 | 93 | 5 |
e7c698a094c2cca3e28bda0fab4684f21fc5363a | Arthur Gautier | 2025-01-26T02:15:34 | ml-dsa: support for encoding PKCS#8 private keys (#892) | diff --git a/ml-dsa/src/lib.rs b/ml-dsa/src/lib.rs
index d5567db..3efe91c 100644
--- a/ml-dsa/src/lib.rs
+++ b/ml-dsa/src/lib.rs
@@ -18,15 +18,15 @@
//!
//! ```
//! use ml_dsa::{MlDsa65, KeyGen};
-//! use signature::{Signer, Verifier};
+//! use signature::{Keypair, Signer, Verifier};
//!
//! let mut rng = rand::th... | 3 | 44 | 11 |
ba7f5e43b3b8b93e8d68098ba9a7a57cb0c83fbb | Tony Arcieri | 2025-01-24T21:16:42 | ml-dsa: remove `std` feature (#893)
It doesn't appear this feature actually does anything except
transitively activate the `sha3/std` feature, which we likely plan on
removing in the next breaking release.
Now that `core::error::Error` is stable, we are generally trying to
remove `std` features across the @RustCrypto... | diff --git a/ml-dsa/Cargo.toml b/ml-dsa/Cargo.toml
index bc76e97..04aad12 100644
--- a/ml-dsa/Cargo.toml
+++ b/ml-dsa/Cargo.toml
@@ -15,8 +15,7 @@ categories = ["cryptography"]
keywords = ["crypto", "signature"]
[features]
-default = ["std", "rand_core"]
-std = ["sha3/std"]
+default = ["rand_core"]
zeroize = ["dep... | 1 | 1 | 2 |
e5a732d8a86a7ff1b84413ed9e1649b93bac4afb | Arthur Gautier | 2025-01-23T21:22:17 | ed25519: implement `SignatureBitStringEncoding` support (#889) | diff --git a/ed25519/src/lib.rs b/ed25519/src/lib.rs
index fd6820e..bd2cfaa 100644
--- a/ed25519/src/lib.rs
+++ b/ed25519/src/lib.rs
@@ -273,13 +273,25 @@ mod serde;
pub use signature::{self, Error, SignatureEncoding};
#[cfg(feature = "pkcs8")]
-pub use crate::pkcs8::{KeypairBytes, PublicKeyBytes};
+pub use crate::... | 1 | 30 | 1 |
8c15d0e7b99c3a481803a82120d90cf050bcefcb | Dan Cline | 2025-01-19T21:13:52 | ecdsa: impl recoverable `RandomizedPrehashSigner` for `SigningKey` (#878) | diff --git a/ecdsa/src/recovery.rs b/ecdsa/src/recovery.rs
index f1a9641..88ba735 100644
--- a/ecdsa/src/recovery.rs
+++ b/ecdsa/src/recovery.rs
@@ -5,8 +5,13 @@ use crate::{Error, Result};
#[cfg(feature = "signing")]
use {
crate::{hazmat::sign_prehashed_rfc6979, SigningKey},
- elliptic_curve::subtle::CtOptio... | 1 | 53 | 2 |
40649077c27bf4d57af9e0622e32628cd669d43b | Mirek Sedzinski | 2025-01-19T21:12:56 | dsa: gate signing under `hazmat` feature (#859)
Resolves #858 | diff --git a/dsa/Cargo.toml b/dsa/Cargo.toml
index ed68048..86e11b6 100644
--- a/dsa/Cargo.toml
+++ b/dsa/Cargo.toml
@@ -33,3 +33,16 @@ sha1 = "=0.11.0-pre.4"
[features]
std = []
+hazmat = []
+
+[[example]]
+name = "sign"
+required-features = ["hazmat"]
+
+[[example]]
+name = "generate"
+required-features = ["hazma... | 13 | 49 | 10 |
e658b9686b2a4cee1f0b3d8ef1fc898921427ae9 | Arthur Gautier | 2025-01-19T21:11:43 | slh-dsa: adds pkcs8 support (#867) | diff --git a/Cargo.lock b/Cargo.lock
index 07ead1d..583d911 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1162,6 +1162,7 @@ version = "0.2.0-pre"
dependencies = [
"aes",
"cipher",
+ "const-oid",
"criterion",
"ctr",
"digest 0.11.0-pre.9",
@@ -1171,6 +1172,7 @@ dependencies = [
"hybrid-array",
"num-bigint",... | 9 | 179 | 1 |
9265f5c2b6c04cd17da6b6769c605d7da83d34f2 | Tony Arcieri | 2024-12-10T15:28:20 | slh-dsa: fix lint (#879)
The build is failing because of a lint failure due to an undocumented
macro which is only used for tests.
This adds a simple comment so the lint succeeds. | diff --git a/slh-dsa/src/util.rs b/slh-dsa/src/util.rs
index 0445a8b..4756c05 100644
--- a/slh-dsa/src/util.rs
+++ b/slh-dsa/src/util.rs
@@ -49,6 +49,7 @@ pub fn split_digest<P: ForsParams>(digest: &Array<u8, P::M>) -> (&Array<u8, P::M
#[cfg(test)]
pub mod macros {
+ /// Generate a test case
#[macro_export]... | 1 | 1 | 0 |
dff009f5a498aa5371b756d966db8ec027d51aab | David Wood | 2024-12-10T00:13:19 | lms: fix size of `otstype` (#875)
`otstype` is converted as a `u32` below, panics if it is `ID_LEN` (16) bytes long.
With this change, the `SigningKey` can be correctly converted to bytes and back. | diff --git a/lms/src/lms/private.rs b/lms/src/lms/private.rs
index 3bf7292..c11e072 100644
--- a/lms/src/lms/private.rs
+++ b/lms/src/lms/private.rs
@@ -176,7 +176,7 @@ impl<'a, Mode: LmsMode> TryFrom<&'a [u8]> for SigningKey<Mode> {
Ordering::Greater => Err(LmsDeserializeError::TooLong),
Orde... | 1 | 42 | 2 |
8f93676ea0fcefe3787b805a9b35afa722b7a5c6 | Jon Wallace | 2024-10-20T14:50:24 | slh-dsa: remove allocations (#860) | diff --git a/slh-dsa/src/hashes.rs b/slh-dsa/src/hashes.rs
index ce5beb7..478f62f 100644
--- a/slh-dsa/src/hashes.rs
+++ b/slh-dsa/src/hashes.rs
@@ -23,7 +23,7 @@ pub(crate) trait HashSuite: Sized + Clone + Debug + PartialEq + Eq {
fn prf_msg(
sk_prf: &SkPrf<Self::N>,
opt_rand: &Array<u8, Self::N... | 8 | 32 | 26 |
f46f4a32acbfa3bd61e84e29369204ad18065abd | Tony Arcieri | 2024-10-18T16:17:06 | ecdsa: simplify `serde` feature (#874)
To get `serde` support for `VerifyingKey`, confusingly the `pem` feature
previously needed to be enabled (even though PEM is not actually used).
This changed the `serde` feature to auto-enable `pkcs8`, similar to
what was done in the `elliptic-curve` crate. | diff --git a/ecdsa/Cargo.toml b/ecdsa/Cargo.toml
index b6fd3bb..25c2849 100644
--- a/ecdsa/Cargo.toml
+++ b/ecdsa/Cargo.toml
@@ -44,7 +44,7 @@ digest = ["dep:digest", "signature/digest"]
hazmat = []
pkcs8 = ["digest", "elliptic-curve/pkcs8", "der"]
pem = ["elliptic-curve/pem", "pkcs8"]
-serde = ["elliptic-curve/serd... | 2 | 6 | 6 |
5109516d212176f4d682f4b687fb4a46bc03ae81 | Tony Arcieri | 2024-10-15T21:01:16 | dsa v0.7.0-pre.1 (#873) | diff --git a/Cargo.lock b/Cargo.lock
index dd7d4d8..1230a3b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -323,7 +323,7 @@ dependencies = [
[[package]]
name = "dsa"
-version = "0.7.0-pre.0"
+version = "0.7.0-pre.1"
dependencies = [
"digest",
"num-bigint-dig",
diff --git a/dsa/Cargo.toml b/dsa/Cargo.toml
index 8b... | 2 | 2 | 2 |
55abb77c887038be622edc8974afa9004380e425 | Tony Arcieri | 2024-10-15T20:46:16 | dsa: loosen `pkcs8` pre-release dependency (#872) | diff --git a/dsa/Cargo.toml b/dsa/Cargo.toml
index 61c12e8..8b3dc57 100644
--- a/dsa/Cargo.toml
+++ b/dsa/Cargo.toml
@@ -19,14 +19,14 @@ rust-version = "1.81"
digest = "=0.11.0-pre.9"
num-bigint = { package = "num-bigint-dig", version = "0.8", default-features = false, features = ["prime", "rand", "zeroize"] }
num-t... | 1 | 2 | 2 |
4aead4b4645030e9bfad9b60cc87e993fe48b736 | Arthur Gautier | 2024-10-15T17:01:58 | workspace: limit duplicate dependencies (#871)
This makes use of a global `patch.crates-io` instead of local `path =`
attributes in the dependencies.
When pulling dependencies through git to try unreleased crates, the
dependency in `path` will get duplicated. Which makes for twice the
definition of types incompa... | diff --git a/Cargo.toml b/Cargo.toml
index d9709ec..9a5ade0 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -13,3 +13,15 @@ members = [
[profile.dev]
opt-level = 2
+
+[patch.crates-io]
+# A global patch crates-io block is used to avoid duplicate dependencies
+# when pulling a member crate through git
+dsa =... | 3 | 14 | 2 |
5c33bd54322a0718d7abb8890e51d2d3b6359e94 | Arthur Gautier | 2024-09-30T19:31:17 | slh-dsa: use pre-release versions (#866) | diff --git a/Cargo.lock b/Cargo.lock
index e758c9f..f99a7bd 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4,9 +4,9 @@ version = 3
[[package]]
name = "aes"
-version = "0.8.4"
+version = "0.9.0-pre.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b169f7a6d4742236a0a00c541b845991d0ac43e... | 3 | 47 | 113 |
e87f60d47c35d767ef60d92ff53fc8895781abb6 | Tony Arcieri | 2024-09-20T19:17:37 | ecdsa v0.17.0-pre.9 (#863) | diff --git a/Cargo.lock b/Cargo.lock
index f662c9b..6253f3e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -370,14 +370,14 @@ dependencies = [
[[package]]
name = "ecdsa"
-version = "0.17.0-pre.8"
+version = "0.17.0-pre.9"
dependencies = [
"der",
"digest 0.11.0-pre.9",
"elliptic-curve",
"hex-literal",
"rfc69... | 2 | 6 | 16 |
6d6629d7d2b8afba949e1080b7acd2deaa734278 | Tony Arcieri | 2024-09-20T19:06:05 | ecdsa: bump `elliptic-curve` to v0.14.0-rc.1 (#862)
Also removes the `=` requirement so bumps like this are unnecessary | diff --git a/Cargo.lock b/Cargo.lock
index 36be2e5..f662c9b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -418,9 +418,9 @@ checksum = "11157ac094ffbdde99aa67b23417ebdd801842852b500e395a45a9c0aac03e4a"
[[package]]
name = "elliptic-curve"
-version = "0.14.0-rc.0"
+version = "0.14.0-rc.1"
source = "registry+https://git... | 2 | 10 | 10 |
07d6fff39193c54924ad9338b08a13f3b3a357b5 | Tony Arcieri | 2024-09-20T03:04:37 | ecdsa v0.17.0-pre.8 (#861) | diff --git a/Cargo.lock b/Cargo.lock
index f674b6f..36be2e5 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -370,7 +370,7 @@ dependencies = [
[[package]]
name = "ecdsa"
-version = "0.17.0-pre.7"
+version = "0.17.0-pre.8"
dependencies = [
"der",
"digest 0.11.0-pre.9",
diff --git a/ecdsa/Cargo.toml b/ecdsa/Cargo.tom... | 2 | 2 | 2 |
839cbdabfe3538b347ac4186eb504658cf46e6c6 | Arthur Gautier | 2024-09-06T17:48:53 | bump pkcs8 dependency after breaking change (#857)
This bump the following dependencies:
- pkcs8 0.11.0-rc.0 -> 0.11.0-rc.1
- elliptic-curve 0.14.0-pre.6 -> 0.14.0-rc.0
This is a followup on breaking changes made on pkcs8
(https://github.com/RustCrypto/formats/pull/1483). | diff --git a/Cargo.lock b/Cargo.lock
index 356b760..f674b6f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -418,8 +418,9 @@ checksum = "11157ac094ffbdde99aa67b23417ebdd801842852b500e395a45a9c0aac03e4a"
[[package]]
name = "elliptic-curve"
-version = "0.14.0-pre.6"
-source = "git+https://github.com/RustCrypto/traits.git... | 6 | 15 | 18 |
25e14015c9445f90f58733b75fde935744d1ba4f | Arthur Gautier | 2024-09-05T23:35:19 | workspace: move back to traits.git/master (#856)
Now https://github.com/RustCrypto/traits/pull/1650 merged the branch
has been removed. | diff --git a/Cargo.lock b/Cargo.lock
index 31a8e49..356b760 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -419,7 +419,7 @@ checksum = "11157ac094ffbdde99aa67b23417ebdd801842852b500e395a45a9c0aac03e4a"
[[package]]
name = "elliptic-curve"
version = "0.14.0-pre.6"
-source = "git+https://github.com/baloo/traits.git?branch... | 2 | 2 | 2 |
cf81fb325c97ed6a748907cd7b9059790553eaff | Arthur Gautier | 2024-09-05T22:00:43 | ecdsa,dsa,ed25519,ed448: pkcs8 API changes (#851)
Signed-off-by: Arthur Gautier <baloo@superbaloo.net> | diff --git a/Cargo.lock b/Cargo.lock
index d99f7f0..31a8e49 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -319,9 +319,9 @@ dependencies = [
[[package]]
name = "der"
-version = "0.8.0-rc.0"
+version = "0.8.0-rc.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "05d9c07d3bd80cf0935ce478d0... | 8 | 62 | 39 |
4da24fb4eb12972c7d5980a71d83e88618549599 | Arthur Gautier | 2024-09-05T21:59:08 | ed448: zeroize key material (#855) | diff --git a/Cargo.lock b/Cargo.lock
index 6eedea8..d99f7f0 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -407,6 +407,7 @@ dependencies = [
"serde",
"serde_bytes",
"signature",
+ "zeroize",
]
[[package]]
diff --git a/ed448/Cargo.toml b/ed448/Cargo.toml
index ac1ee3b..33dab6e 100644
--- a/ed448/Cargo.toml
+++ b/... | 3 | 17 | 2 |
132b04631409db1ca805aba2f62830c8e359b29f | Tony Arcieri | 2024-08-18T21:08:41 | ecdsa: add IEEE P1363 reference (#850) | diff --git a/ecdsa/src/lib.rs b/ecdsa/src/lib.rs
index 5c10e46..6a211de 100644
--- a/ecdsa/src/lib.rs
+++ b/ecdsa/src/lib.rs
@@ -179,7 +179,7 @@ pub type SignatureSize<C> = <FieldBytesSize<C> as Add>::Output;
/// Fixed-size byte array containing an ECDSA signature
pub type SignatureBytes<C> = Array<u8, SignatureSize<... | 3 | 7 | 7 |
fe6176a0ecc48c481d3308e69af284e6c7fe59a4 | Tony Arcieri | 2024-08-18T18:54:52 | ecdsa: unpin `der` and `spki` dependencies (#848)
Removes the leading `=` requirement from these dependencies, since
they're both `rc.0` | diff --git a/ecdsa/Cargo.toml b/ecdsa/Cargo.toml
index 2a2ce11..2cd6661 100644
--- a/ecdsa/Cargo.toml
+++ b/ecdsa/Cargo.toml
@@ -21,12 +21,12 @@ elliptic-curve = { version = "=0.14.0-pre.6", default-features = false, features
signature = { version = "=2.3.0-pre.4", default-features = false, features = ["rand_core"] }
... | 1 | 2 | 2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.