Commit Graph

1049 Commits

Author SHA1 Message Date
Tony Arcieri fe23a8cf66 rfc6979 v0.5.0-rc.2 (#1089) rfc6979/v0.5.0-rc.2 2025-10-22 12:28:54 -06:00
Tony Arcieri 5a2c2e24c5 Cargo.lock: update dependencies (#1088)
Updates the following dependencies:

    $ cargo update
    Updating crates.io index
     Locking 57 packages to latest compatible versions
    Updating anstyle v1.0.11 -> v1.0.13
    Updating autocfg v1.4.0 -> v1.5.0
    Updating bitflags v2.9.1 -> v2.10.0
    Updating bumpalo v3.18.1 -> v3.19.0
    Updating cfg-if v1.0.0 -> v1.0.4
    Updating clap v4.5.39 -> v4.5.50
    Updating clap_builder v4.5.39 -> v4.5.50
    Updating clap_lex v0.7.4 -> v0.7.6
    Updating crunchy v0.2.3 -> v0.2.4
    Updating crypto-primes v0.7.0-pre.2 -> v0.7.0-pre.3
    Updating errno v0.3.12 -> v0.3.14
    Updating getrandom v0.3.3 -> v0.3.4
    Updating half v2.6.0 -> v2.7.1
    Updating inout v0.2.0-rc.6 -> v0.2.1
    Updating js-sys v0.3.77 -> v0.3.81
    Updating libc v0.2.172 -> v0.2.177
    Updating linux-raw-sys v0.9.4 -> v0.11.0
    Updating log v0.4.27 -> v0.4.28
    Updating memchr v2.7.4 -> v2.7.6
    Updating proc-macro2 v1.0.95 -> v1.0.101
    Updating proptest v1.6.0 -> v1.8.0
    Updating quote v1.0.40 -> v1.0.41
    Updating r-efi v5.2.0 -> v5.3.0
    Updating rand v0.9.1 -> v0.9.2
    Removing rand_chacha v0.3.1
    Updating rand_xorshift v0.3.0 -> v0.4.0
    Updating rayon v1.10.0 -> v1.11.0
    Updating rayon-core v1.12.1 -> v1.13.0
    Updating regex v1.11.1 -> v1.12.2
    Updating regex-automata v0.4.9 -> v0.4.13
    Updating regex-syntax v0.8.5 -> v0.8.8
    Updating rustix v1.0.7 -> v1.1.2
    Updating rustversion v1.0.21 -> v1.0.22
    Updating rusty-fork v0.3.0 -> v0.3.1
    Updating serde v1.0.219 -> v1.0.228
    Updating serde_bytes v0.11.17 -> v0.11.19
      Adding serde_core v1.0.228
    Updating serde_derive v1.0.219 -> v1.0.228
    Updating serde_json v1.0.140 -> v1.0.145
    Updating syn v2.0.101 -> v2.0.107
    Updating tempfile v3.20.0 -> v3.23.0
    Updating typenum v1.18.0 -> v1.19.0
    Updating unicode-ident v1.0.18 -> v1.0.20
    Removing wasi v0.11.0+wasi-snapshot-preview1
    Removing wasi v0.14.2+wasi-0.2.4
      Adding wasi v0.11.1+wasi-snapshot-preview1
      Adding wasip2 v1.0.1+wasi-0.2.4
    Updating wasm-bindgen v0.2.100 -> v0.2.104
    Updating wasm-bindgen-backend v0.2.100 -> v0.2.104
    Updating wasm-bindgen-macro v0.2.100 -> v0.2.104
    Updating wasm-bindgen-macro-support v0.2.100 -> v0.2.104
    Updating wasm-bindgen-shared v0.2.100 -> v0.2.104
    Updating web-sys v0.3.77 -> v0.3.81
    Updating winapi-util v0.1.9 -> v0.1.11
      Adding windows-link v0.2.1
    Updating windows-sys v0.59.0 -> v0.61.2
    Removing windows-targets v0.52.6
    Removing windows_aarch64_gnullvm v0.52.6
    Removing windows_aarch64_msvc v0.52.6
    Removing windows_i686_gnu v0.52.6
    Removing windows_i686_gnullvm v0.52.6
    Removing windows_i686_msvc v0.52.6
    Removing windows_x86_64_gnu v0.52.6
    Removing windows_x86_64_gnullvm v0.52.6
    Removing windows_x86_64_msvc v0.52.6
      Adding wit-bindgen v0.46.0
    Removing wit-bindgen-rt v0.39.0
    Updating zerocopy v0.8.25 -> v0.8.27
    Updating zerocopy-derive v0.8.25 -> v0.8.27
    Updating zeroize v1.8.1 -> v1.8.2
2025-10-22 11:28:48 -06:00
Tony Arcieri 3624d471cd ecdsa v0.17.0-rc.8 (#1087) ecdsa/v0.17.0-rc.8 2025-10-22 09:48:10 -06:00
Tony Arcieri 6fe8fa15e8 ecdsa: bump elliptic-curve to v0.14.0-rc.16 (#1086) 2025-10-20 15:47:19 -06:00
Tony Arcieri fd12ac06c1 Switch from doc_auto_cfg to doc_cfg (#1085)
See RustCrypto/traits#2028
2025-10-20 14:50:31 -06:00
Arthur Gautier b58f47a4b2 ml-dsa: run tests on no_std targets (#1080) 2025-10-20 08:16:30 -06:00
Tony Arcieri b383808ccf CI: bump typos to v1.38.1 (#1084) 2025-10-19 09:08:34 -06:00
Tom French 21e60bad04 chore: apply unreachable_pub lint (#1062) 2025-10-16 12:22:45 -06:00
Arthur Gautier 305bad5a00 ecdsa: re-export blobby (#1082)
Re-exporting blobby directly from ecdsa makes version upgrades a tiny
bit more resilient to API changes made in blobby.

They otherwise have to be carefully managed between ecdsa and its
dependencies.

If the binary format changes between the blobby upgrade, the blob files
will still need to be updated to match.
2025-10-15 17:35:28 -06:00
Hennadii Chernyshchyk 6cf535b0c7 ml-dsa: disable default features for sha3 (#1078) 2025-09-19 08:59:47 -06:00
daxpedda 8aa41de7b8 ml-dsa: DigestSigner cleanup (#1073) 2025-09-18 09:26:54 -06:00
daxpedda 0e4a329998 Update to digest::EagerHash (#1077)
ecdsa: merges `arithmetic` into `algorithm` crate feature
2025-09-18 09:25:25 -06:00
daxpedda 580758e3e7 rfc6979: replace Digest requirement with EagerHash (#1076) 2025-09-15 16:34:49 -06:00
dependabot[bot] b64842478f build(deps): bump crate-ci/typos from 1.35.1 to 1.36.2 (#1061) 2025-09-13 10:09:35 -06:00
Tony Arcieri c4ae371c05 New .rc prereleases (#1072)
- `dsa` v0.7.0-rc.6
- `ecdsa` v0.17.0-rc.7
- `ed25519` v3.0.0-rc.1
- `ed448` v0.5.0-rc.1
- `lms-signature` v0.1.0-rc.0
- `ml-dsa` v0.1.0-rc.0
- `slh-dsa` v0.2.0-rc.0
dsa/v0.7.0-rc.6 ml-dsa/v0.1.0-rc.0 lms-signature/v0.1.0-rc.0 ed25519/v3.0.0-rc.1 ed448/v0.5.0-rc.1 slh-dsa/v0.2.0-rc.0 ecdsa/v0.17.0-rc.7
2025-09-13 09:02:13 -06:00
Tony Arcieri c8a19d1663 slh-dsa: bump zerocopy to v0.8 (#1071)
The `AsBytes` trait is gone, and now found on the `IntoBytes` trait.

It needs a new `Immutable` marker trait which says:

> Types which are free from interior mutability.

...so it seems safe to add to the types that previously used `AsBytes`
which are simple data structs.
2025-09-13 08:40:11 -06:00
Tony Arcieri 78b0133757 Bump dependencies in Cargo.toml(s) (#1070)
Bumps the following:
- `aes` v0.9.0-rc.1
- `cipher` v0.5.0-rc.1
- `criterion` v0.7
- `ctr` v0.10.0-rc.1
- `hex-literal` v1
- `sha3` v0.11.0-rc.3
2025-09-13 08:27:52 -06:00
Tony Arcieri 7ec5b90af9 Bump signature to v3.0.0-rc.4 (#1069) 2025-09-12 20:31:46 -06:00
daxpedda 923fe6f856 Update to signature::DigestSigner/Verifier changes (#1064)
Companion PR to RustCrypto/traits#2004
2025-09-12 20:13:18 -06:00
Tony Arcieri 2cd53cf4fb ecdsa: bump elliptic-curve to v0.14.0-rc.14 (#1068) 2025-09-12 20:11:44 -06:00
Tony Arcieri 8599e52851 Bump crypto-bigint to v0.7.0-rc.5 (#1067)
* dsa: bump `crypto-bigint` to v0.7.0-rc.5
* ecdsa: rename `ScalarPrimitive` to `ScalarValue`

Companion PR to RustCrypto/traits#2008
2025-09-12 18:46:51 -06:00
Liam Gray ecc8d2768a ml-dsa: rename KeyGen::key_gen_internal to from_seed (#1054)
Despite NIST's somewhat scary "internal" naming, seeds are now the
preferred format for ML-DSA keys.

Closes #1045
2025-09-12 08:54:21 -06:00
Steve Fan b439a650d5 ed448: impl SignatureEncoding for Signature (#1063) 2025-09-12 08:46:59 -06:00
Arthur Gautier f6df3e250c dsa: add from_components_unchecked APIs (#1059)
Adds support for any size of keys, either larger or older/weak keys.

The API is only available under the `hazmat` feature-flag, and the
consumer is responsible for checking the security of what they're using
it for.

Fixes #1058

* dsa: compare key sizes aligned to limb

This allows to compare key sizes after a back and forth through
serialization which could lose the exact key size.
2025-09-08 19:37:00 -06:00
Tony Arcieri 51dd7d8a71 ed448 v0.5.0-rc.0 (#1057) ed448/0.5.0-rc.0 2025-09-03 16:21:16 -06:00
Tony Arcieri 7ed5b7c5aa lms: minor syntax fix (#1056) 2025-09-03 15:54:53 -06:00
Tony Arcieri 536d926d35 README.md(s): https links 2025-09-03 15:39:16 -06:00
Tony Arcieri 0fb27a7966 ed*: boilerplate fixups (#1055)
- README.md: add "signatures" to headline
- Tune up docs.rs configs
2025-09-03 15:35:07 -06:00
Tony Arcieri 2164b728af ed25519 v3.0.0-rc.0 (#1053) ed25519/v3.0.0-rc.0 2025-09-02 22:41:58 -06:00
Tony Arcieri 6375b4dbba Cut prereleases with hybrid-array v0.4 support (#1052)
Releases the following:
- `dsa` v0.7.0-rc.5
- `ecdsa` v0.17.0-rc.6
- `rfc6979` v0.5.0-rc.1
dsa/v0.7.0-rc.5 ecdsa/v0.17.0-rc.6 rfc6979/v0.5.0-rc.1
2025-09-02 22:18:53 -06:00
Tony Arcieri 0812b94a8c ecdsa: bump elliptic-curve to v0.14.0-rc.13 (#1051) 2025-09-02 22:02:10 -06:00
Arthur Gautier cc2cac3a2f bump crypto-bigint to v0.7.0-rc.4 (#1050) 2025-09-02 21:01:30 -06:00
Tony Arcieri 5f39c23a1f ecdsa: bump serdect dependency to v0.4 (#1048) 2025-09-01 20:41:48 -06:00
Tony Arcieri 137ec7935c Bump hybrid-array to v0.4 (#1047) 2025-09-01 20:24:14 -06:00
dependabot[bot] 03bd8261cf build(deps): bump actions/download-artifact from 4 to 5 (#1036) 2025-09-01 17:27:56 -06:00
dependabot[bot] d4b06ddca4 build(deps): bump actions/checkout from 4 to 5 (#1038) 2025-09-01 17:27:31 -06:00
Zach Halvorsen 393d4e0c4f ml-dsa: Add support for external mu (#1023) 2025-09-01 16:09:46 -06:00
Tony Arcieri 41edbafeca ecdsa: bump elliptic-curve to v0.14.0-rc.12 (#1034) 2025-08-05 21:30:21 -06:00
Charles Edward Gagnon 64547a82e4 Only run CI on latest commit of PR branches (#1033) 2025-08-05 18:44:18 -06:00
Tony Arcieri 8604f8c7ef dsa v0.7.0-rc.4 (#1032) dsa/v0.7.0-rc.4 2025-08-05 18:40:30 -06:00
Arthur Gautier 938a09b269 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>
2025-08-05 11:04:40 -06:00
Tony Arcieri 41c53ced65 ecdsa: use CtOption::into_option (#1031)
Infers types and makes these conversions less ugly
2025-08-04 21:51:03 -06:00
Tony Arcieri 18be0266f9 ecdsa: use new Reduce trait (#1030)
Uses the `Reduce` trait added in RustCrypto/traits#1949
2025-08-04 21:44:24 -06:00
dependabot[bot] 282873b764 build(deps): bump crate-ci/typos from 1.34.0 to 1.35.1 (#1027) 2025-08-04 14:10:47 -06:00
Nicola Tuveri 289c868ba7 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 source of logic and improving
interoperability.

Signed-off-by: Francesco Rollo <eferollo@gmail.com>
2025-07-28 06:48:34 -06:00
Tony Arcieri e6d52c2ae0 Bump crypto-bigint to v0.7.0-pre.7 (#1022) 2025-07-19 11:12:41 -06:00
Tony Arcieri b34288522c ecdsa v0.17.0-rc.5 (#1019) ecdsa/v0.17.0-rc.5 2025-07-16 09:40:43 -06:00
Tony Arcieri 89cc97982e Bump pkcs8 to v0.11.0-rc.6 (#1017) 2025-07-16 08:34:32 -06:00
Tony Arcieri 7359233da9 Bump signature to v3.0.0-rc.2 (#1016) 2025-07-16 08:21:11 -06:00
Tony Arcieri 1ff759e67a dsa v0.7.0-rc.3 (#1015) dsa/v0.7.0-rc.3 2025-07-10 17:02:16 -06:00