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 |
|---|---|---|---|---|---|---|---|
301248fc293da417b32abe5844e2faa7405592a5 | Tony Arcieri | 2024-08-16T15:58:52 | slh-dsa: enable `derive` feature of `zerocopy` (#847)
...rather than directly depending on `zerocopy-derive`.
This fixes problems that arise if the `derive` feature is enabled by
other dependencies in the same tree. See #846. | diff --git a/Cargo.lock b/Cargo.lock
index 2a7c8ac..09a9ea1 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1180,7 +1180,6 @@ dependencies = [
"signature",
"typenum",
"zerocopy",
- "zerocopy-derive",
]
[[package]]
diff --git a/slh-dsa/Cargo.toml b/slh-dsa/Cargo.toml
index 7711043..cd2105c 100644
--- a/slh-dsa/Ca... | 3 | 1 | 4 |
8cdbcb77eb1a0445ca2f4617462adaacea5657ef | erdnaxe | 2024-08-16T14:26:42 | slh-dsa: fix no_std (#845) | diff --git a/slh-dsa/Cargo.toml b/slh-dsa/Cargo.toml
index e4d651a..7711043 100644
--- a/slh-dsa/Cargo.toml
+++ b/slh-dsa/Cargo.toml
@@ -17,13 +17,13 @@ keywords = ["crypto", "signature"]
[dependencies]
hybrid-array = { version = "0.2.0-rc.8", features = ["extra-sizes"] }
typenum = { version = "1.17.0", features = [... | 1 | 2 | 2 |
dccd5aaaad927d41f2d4f0aee9837e2cd9fbb587 | Tony Arcieri | 2024-07-28T16:17:38 | ed25519 v2.3.0-pre.0 (#842) | diff --git a/Cargo.lock b/Cargo.lock
index a57ed9e..2a7c8ac 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -385,7 +385,7 @@ dependencies = [
[[package]]
name = "ed25519"
-version = "2.3.0-pre"
+version = "2.3.0-pre.0"
dependencies = [
"bincode",
"hex-literal",
diff --git a/ed25519/Cargo.toml b/ed25519/Cargo.toml
... | 2 | 3 | 3 |
6d60ba04f95ccbbceddc8b241eb36c650fbe25ae | Tony Arcieri | 2024-07-28T01:44:48 | dsa v0.7.0-pre.0 (#841) | diff --git a/Cargo.lock b/Cargo.lock
index 0c4e9f3..a57ed9e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -353,7 +353,7 @@ dependencies = [
[[package]]
name = "dsa"
-version = "0.7.0-pre"
+version = "0.7.0-pre.0"
dependencies = [
"digest 0.11.0-pre.9",
"num-bigint-dig",
@@ -370,7 +370,7 @@ dependencies = [
[[... | 2 | 3 | 3 |
1cf55b3bf404c0bbb37b26a95b6fee375b765e91 | Tony Arcieri | 2024-07-27T03:16:17 | ecdsa v0.17.0-pre.7 (#840) | diff --git a/ecdsa/Cargo.toml b/ecdsa/Cargo.toml
index 3d2c1f9..2a2ce11 100644
--- a/ecdsa/Cargo.toml
+++ b/ecdsa/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "ecdsa"
-version = "0.17.0-pre.6"
+version = "0.17.0-pre.7"
description = """
Pure Rust implementation of the Elliptic Curve Digital Signature Algorithm
(ECD... | 1 | 1 | 1 |
4d35f35bcbb08070880b82ff3eb0b53040c631e7 | Tony Arcieri | 2024-07-27T03:12:25 | ecdsa: fix deprecation warnings (#839) | diff --git a/ecdsa/src/dev.rs b/ecdsa/src/dev.rs
index 1a69620..04bd44f 100644
--- a/ecdsa/src/dev.rs
+++ b/ecdsa/src/dev.rs
@@ -98,8 +98,8 @@ macro_rules! new_verification_test {
fn ecdsa_verify_success() {
for vector in $vectors {
let q_encoded = EncodedPoint::<$curve>::from_aff... | 1 | 4 | 4 |
5c37c80a174c0916d627e4d008192af53f363171 | Tony Arcieri | 2024-07-27T01:20:30 | ecdsa v0.17.0-pre.6 (#838) | diff --git a/Cargo.lock b/Cargo.lock
index 69fba7a..0c4e9f3 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -370,7 +370,7 @@ dependencies = [
[[package]]
name = "ecdsa"
-version = "0.17.0-pre.5"
+version = "0.17.0-pre.6"
dependencies = [
"der",
"digest 0.11.0-pre.9",
diff --git a/ecdsa/Cargo.toml b/ecdsa/Cargo.tom... | 2 | 2 | 2 |
0647240ea8f9ed724f51f47c7a6b39b840f33ab2 | Tony Arcieri | 2024-07-27T01:06:33 | rfc6979 v0.5.0-pre.4 (#837) | diff --git a/Cargo.lock b/Cargo.lock
index d483d3c..69fba7a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -979,7 +979,7 @@ checksum = "adad44e29e4c806119491a7f06f03de4d1af22c3a680dd47f1e6e179439d1f56"
[[package]]
name = "rfc6979"
-version = "0.5.0-pre.3"
+version = "0.5.0-pre.4"
dependencies = [
"hex-literal",
"... | 4 | 4 | 4 |
0247d63bde9616bc1035cb03009e95817161f492 | Tony Arcieri | 2024-07-27T00:56:22 | Use new prerelease/release candidate dependencies (#836)
Bumps the following:
- `der` v0.8.0-rc.0
- `digest` v0.11.0-pre.9
- `elliptic-curve` v0.14.0-pre.6
- `pkcs8` v0.11.0-rc.0
- `sha2` v0.11.0-pre.4
- `signature` v2.3.0-pre.4
- `spki` v0.8.0-rc.0 | diff --git a/Cargo.lock b/Cargo.lock
index 7ffb9c6..d483d3c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -99,11 +99,11 @@ dependencies = [
[[package]]
name = "block-buffer"
-version = "0.11.0-pre.5"
+version = "0.11.0-rc.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3ded6841420108... | 10 | 75 | 94 |
9566f5eb711916d2cb2313898e5cfad18f5a816a | Tony Arcieri | 2024-07-27T00:45:43 | Bump `hybrid-array` to v0.2.0-pre.9 (#835)
Fixes deprecation warnings | diff --git a/Cargo.lock b/Cargo.lock
index 478c274..7ffb9c6 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -559,9 +559,9 @@ dependencies = [
[[package]]
name = "hybrid-array"
-version = "0.2.0-rc.8"
+version = "0.2.0-rc.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "53668f5da5a41d9ea... | 8 | 16 | 5 |
44f6c0bdad9d12341d47ec7e60b6031c8d068f4e | Tony Arcieri | 2024-07-26T13:04:06 | ed448: fix build (#834)
The crate doesn't currently have a `zeroize` feature but has code gated
under it.
This removes the code in question to fix the build until such a time as
a proper `zeroize` feature can be added. | diff --git a/ed448/src/pkcs8.rs b/ed448/src/pkcs8.rs
index 0c23412..2740881 100644
--- a/ed448/src/pkcs8.rs
+++ b/ed448/src/pkcs8.rs
@@ -107,6 +107,7 @@ impl KeypairBytes {
impl EncodePrivateKey for KeypairBytes {
fn to_pkcs8_der(&self) -> Result<SecretDocument> {
// Serialize private key as nested OCTET... | 1 | 2 | 6 |
73a8922480706242b6d3732095ba1cb379c14fb3 | xjd | 2024-07-25T13:20:02 | ecdsa: optimize `trial_recovery_from_prehash` using `recover_from_prehash_noverify` (#832)
verifying the public key on each attempt is unnecessary. Just verify
once. | diff --git a/ecdsa/src/recovery.rs b/ecdsa/src/recovery.rs
index 8b6e559..f1a9641 100644
--- a/ecdsa/src/recovery.rs
+++ b/ecdsa/src/recovery.rs
@@ -135,10 +135,18 @@ impl RecoveryId {
FieldBytesSize<C>: sec1::ModulusSize,
SignatureSize<C>: ArraySize,
{
+ // Ensure signature verifies with ... | 1 | 9 | 1 |
7bcbfdefa378ec8b80fe333d4430bd4dee9e32fa | xjd | 2024-07-23T16:14:26 | ecdsa: add `VerifyingKey::recover_from_prehash_noverify` (#831)
If the recovered public key isn't correct, an error occurs when comparing it to
the correct public key or public key hash. Therefore, we can skip this expensive
verification. | diff --git a/Cargo.lock b/Cargo.lock
index d7ec9b4..478c274 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -676,6 +676,13 @@ version = "2.7.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6c8640c5d730cb13ebd907d8d04b52f55ac9a2eec55b440c8892f40d56c76c1d"
+[[package]]
+name = "ml-dsa"
+ve... | 2 | 28 | 11 |
9f337917a806359b6ae96629534b7d9f9c1311ef | Luca Bruno | 2024-06-10T13:48:08 | cargo: point `repository` metadata to clonable URLs (#829)
This tweaks the `repository` fields in Cargo metadata in order to use the correct (i.e. git clonable) URL.
The existing GitHub webUI URLs for each package have been retained and moved to `homepage` fields. | diff --git a/dsa/Cargo.toml b/dsa/Cargo.toml
index f6d6cb1..bc394ab 100644
--- a/dsa/Cargo.toml
+++ b/dsa/Cargo.toml
@@ -9,7 +9,8 @@ signatures as well as support for added entropy
edition = "2021"
license = "Apache-2.0 OR MIT"
readme = "README.md"
-repository = "https://github.com/RustCrypto/signatures/tree/master/... | 6 | 11 | 6 |
c273dc207955e3c543ee7017d22ddaef17332b08 | Tony Arcieri | 2024-05-31T17:43:42 | slh-dsa: remove extra 'the' from Cargo.toml description | diff --git a/slh-dsa/Cargo.toml b/slh-dsa/Cargo.toml
index 5467e76..c45edb7 100644
--- a/slh-dsa/Cargo.toml
+++ b/slh-dsa/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "slh-dsa"
description = """
-Pure Rust implementation of the SLH-DSA (aka SPHINCS+) as described in the
+Pure Rust implementation of SLH-DSA (aka SPHIN... | 1 | 1 | 1 |
0a347c1e490de3eece0d8d9e40f2969e778521f3 | Tony Arcieri | 2024-05-31T17:31:18 | slh-dsa: expand Cargo.toml attributes (#827) | diff --git a/lms/Cargo.toml b/lms/Cargo.toml
index d859fa7..774843e 100644
--- a/lms/Cargo.toml
+++ b/lms/Cargo.toml
@@ -4,7 +4,8 @@ description = "Pure Rust implementation of Leighton-Micali Hash-Based Signatures
version = "0.0.1"
edition = "2021"
license = "Apache-2.0 OR MIT"
-repository = "https://github.com/Rust... | 2 | 7 | 1 |
21a9dfb4a96d982bda663e0376267717409dbc54 | Shao-Fu Chen | 2024-05-18T00:17:04 | Remove unnecessary DigestPrimitive bound on PrehashVerifier (#823) | diff --git a/ecdsa/src/verifying.rs b/ecdsa/src/verifying.rs
index 539d221..a314768 100644
--- a/ecdsa/src/verifying.rs
+++ b/ecdsa/src/verifying.rs
@@ -219,7 +219,7 @@ where
#[cfg(feature = "der")]
impl<C> PrehashVerifier<der::Signature<C>> for VerifyingKey<C>
where
- C: EcdsaCurve + CurveArithmetic + DigestPrim... | 1 | 1 | 1 |
6544071722573c3bb786f91abd355f152976ee29 | Arthur Gautier | 2024-05-17T16:39:06 | ecdsa: fixup `unnecessary qualification` warnings (#824) | diff --git a/ecdsa/src/der.rs b/ecdsa/src/der.rs
index fea9764..22d6edb 100644
--- a/ecdsa/src/der.rs
+++ b/ecdsa/src/der.rs
@@ -124,7 +124,7 @@ where
writer
.finish()?
.try_into()
- .map_err(|_| der::Tag::Sequence.value_error())
+ .map_err(|_| Tag::Sequence.valu... | 2 | 8 | 6 |
11ea63809073d9bf2ecdb4242bc030bec7ab532f | Thomas Coratger | 2024-03-15T13:16:24 | A few optimizations on RFC6979 generate_k_mut (#810) | diff --git a/Cargo.lock b/Cargo.lock
index 2c1e8ca..ef97221 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -29,13 +29,22 @@ dependencies = [
"serde",
]
+[[package]]
+name = "block-buffer"
+version = "0.10.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3078c7629b62d3f0439517fa394996a... | 2 | 107 | 20 |
c2f3ee6497d8ab8069c149c5c922a342eedd3334 | Arthur Gautier | 2024-03-04T14:03:21 | Bump `pkcs8` to `0.11.0-pre.0` (#807) | diff --git a/Cargo.lock b/Cargo.lock
index 2780b79..2c1e8ca 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -50,12 +50,6 @@ version = "1.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
-[[package]]
-name = "const-oid"
-v... | 3 | 21 | 67 |
31838b9dcdc910045eae6912930e5b2aef4caa52 | turbocool3r | 2024-03-03T18:26:29 | dsa+ecdsa: support `der` custom error types (#809)
Goes with this `formats` PR: RustCrypto/formats#1055 | diff --git a/Cargo.lock b/Cargo.lock
index 3a406e0..2780b79 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -109,8 +109,7 @@ dependencies = [
[[package]]
name = "der"
version = "0.8.0-pre.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b489fd2221710c1dd46637d66b984161fb66134f81437a84898... | 5 | 28 | 9 |
803743129d6995e7a5cb9303eedbe42bd0efe290 | Tony Arcieri | 2024-02-02T02:32:13 | ecdsa v0.17.0-pre.5 (#806) | diff --git a/Cargo.lock b/Cargo.lock
index 97f0ed9..ef38a42 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -148,7 +148,7 @@ dependencies = [
[[package]]
name = "ecdsa"
-version = "0.17.0-pre.4"
+version = "0.17.0-pre.5"
dependencies = [
"der 0.8.0-pre.0",
"digest",
diff --git a/ecdsa/Cargo.toml b/ecdsa/Cargo.toml... | 2 | 2 | 2 |
5c2ee9196069c885c200c7c0b2cdfcbf0174049f | Tony Arcieri | 2024-02-02T02:00:07 | ecdsa: bump `elliptic-curve` to v0.14.0-pre.5 (#805)
Notably this includes the newly refactored `LinearCombination` trait | diff --git a/Cargo.lock b/Cargo.lock
index 8de3bd7..97f0ed9 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -189,9 +189,9 @@ dependencies = [
[[package]]
name = "elliptic-curve"
-version = "0.14.0-pre.4"
+version = "0.14.0-pre.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "273b02352f5... | 4 | 6 | 6 |
996130459a6553443654064cf9be73f8ec50a86d | Tony Arcieri | 2024-02-02T01:25:44 | ecdsa: refactor `VerifyingKey::recover_from_prehash` (#804)
Replaces some manual branching and use of `unwrap()` with a more
combinator-like style.
This could benefit from it being easier to convert `CtOption` into
`Option`. See dalek-cryptography/subtle#119 | diff --git a/ecdsa/src/recovery.rs b/ecdsa/src/recovery.rs
index 639045a..d45b5b9 100644
--- a/ecdsa/src/recovery.rs
+++ b/ecdsa/src/recovery.rs
@@ -275,23 +275,23 @@ where
let (r, s) = signature.split_scalars();
let z = <Scalar<C> as Reduce<C::Uint>>::reduce_bytes(&bits2field::<C>(prehash)?);
- ... | 1 | 15 | 15 |
3e229ed991adcb05a88209b109b860b71f684dea | Tony Arcieri | 2024-02-02T00:01:06 | rfc6979 v0.5.0-pre.3 (#803) | diff --git a/Cargo.lock b/Cargo.lock
index 85af99c..8de3bd7 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -428,7 +428,7 @@ dependencies = [
[[package]]
name = "rfc6979"
-version = "0.5.0-pre.2"
+version = "0.5.0-pre.3"
dependencies = [
"hex-literal",
"hmac",
diff --git a/dsa/Cargo.toml b/dsa/Cargo.toml
index 41f... | 4 | 4 | 4 |
a2c44242beb585035374cb5de9f6bb95d6f48442 | Tony Arcieri | 2024-02-01T23:55:55 | Bump `digest`, `elliptic-curve`, and `signature` (#802)
Bumps the following dependencies:
- `digest` v0.11.0-pre.8
- `elliptic-curve` v0.14.0-pre.4
- `signature` v2.3.0-pre.3 | diff --git a/Cargo.lock b/Cargo.lock
index f9ca5ef..85af99c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -31,9 +31,9 @@ dependencies = [
[[package]]
name = "block-buffer"
-version = "0.11.0-pre.4"
+version = "0.11.0-pre.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0edadbde8e0243b... | 7 | 34 | 36 |
2b4e0cc8c77c00ff080b1b0e467368f5b287c1fe | Tony Arcieri | 2024-01-29T02:18:48 | Bump `hybrid-array` to v0.2.0-rc.3 (#800) | diff --git a/Cargo.lock b/Cargo.lock
index 5af6b71..f9ca5ef 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -258,9 +258,9 @@ dependencies = [
[[package]]
name = "hybrid-array"
-version = "0.2.0-rc.1"
+version = "0.2.0-rc.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7b700a69c9d992339... | 2 | 8 | 6 |
b90db64bcb5b73cf2207d2a3c7e80e7012ef876e | Friedel Ziegelmayer | 2024-01-27T19:03:58 | feat(dsa): implement `SigningKey::sign_prehashed_rfc6979 (#798)
Allows to use other digest algorithms. | diff --git a/dsa/src/signing_key.rs b/dsa/src/signing_key.rs
index d471aae..698f057 100644
--- a/dsa/src/signing_key.rs
+++ b/dsa/src/signing_key.rs
@@ -67,6 +67,18 @@ impl SigningKey {
&self.x
}
+ /// Try to sign the given message digest deterministically with a prehashed digest.
+ /// The parame... | 1 | 13 | 0 |
43e4fd03f632caac41ba193bc573c550d0f0ef97 | Tony Arcieri | 2024-01-19T19:23:27 | ecdsa v0.17.0-pre.4 (#796) | diff --git a/Cargo.lock b/Cargo.lock
index 53d302b..5af6b71 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -148,7 +148,7 @@ dependencies = [
[[package]]
name = "ecdsa"
-version = "0.17.0-pre.3"
+version = "0.17.0-pre.4"
dependencies = [
"der 0.8.0-pre.0",
"digest",
diff --git a/ecdsa/Cargo.toml b/ecdsa/Cargo.toml... | 2 | 2 | 2 |
fa7eb4bc2f27e3a69f78f611b058c7955101f589 | Tony Arcieri | 2024-01-18T20:03:35 | rfc6979: restore `generate_k_mut` (#795)
Restores a version of `generate_k` which operates over byte slices as
opposed to fixed-size `Array`s.
Useful for implementing `dsa`. | diff --git a/rfc6979/src/lib.rs b/rfc6979/src/lib.rs
index e6f62d0..7fb87cb 100644
--- a/rfc6979/src/lib.rs
+++ b/rfc6979/src/lib.rs
@@ -56,7 +56,7 @@ use hmac::{
///
/// - `x`: secret key
/// - `q`: field modulus
-/// - `h`: hash/digest of input message: must be reduced modulo `n` in advance
+/// - `h`: hash/digest... | 1 | 33 | 8 |
ff9a2058bd4547dc088d67916526c994a2ac4ada | Tony Arcieri | 2024-01-18T02:07:59 | ecdsa: use `NonZeroScalar` arguments to `sign_prehashed` (#794)
Provides type-level enforcement that these parameters are non-zero | diff --git a/ecdsa/src/dev.rs b/ecdsa/src/dev.rs
index 1317d8b..1a69620 100644
--- a/ecdsa/src/dev.rs
+++ b/ecdsa/src/dev.rs
@@ -43,14 +43,14 @@ macro_rules! new_signing_test {
array::{typenum::Unsigned, Array},
bigint::Encoding,
group::ff::PrimeField,
- ... | 3 | 13 | 18 |
3ed9867409ddb392ddc6787168ca32150a897161 | Tony Arcieri | 2024-01-18T01:18:59 | ecdsa: remove `SignPrimitive` and `VerifyPrimitive` traits (#793)
The backstory of these traits was once upon a time we didn't yet have
the trait structure in place to express algorithms like ECDSA signing
and verification generically, so each crate (at the time just `k256` and
`p256`) had a nearly duplicated imple... | diff --git a/ecdsa/src/dev.rs b/ecdsa/src/dev.rs
index 00feec2..1317d8b 100644
--- a/ecdsa/src/dev.rs
+++ b/ecdsa/src/dev.rs
@@ -43,14 +43,14 @@ macro_rules! new_signing_test {
array::{typenum::Unsigned, Array},
bigint::Encoding,
group::ff::PrimeField,
- ... | 5 | 154 | 222 |
c5206d43db1c2aee725f338cd0a7a26278263495 | Tony Arcieri | 2024-01-17T23:14:01 | ecdsa: use `EcdsaCurve` in bounds (#792)
Replaces previous `PrimeCurve` bounds with the new `EcdsaCurve` trait
(which has a supertrait bound on `PrimeCurve`). | diff --git a/ecdsa/src/der.rs b/ecdsa/src/der.rs
index 963da4e..085accc 100644
--- a/ecdsa/src/der.rs
+++ b/ecdsa/src/der.rs
@@ -3,7 +3,7 @@
//!
//! [RFC5912 Section 6]: https://www.rfc-editor.org/rfc/rfc5912#section-6
-use crate::{Error, Result};
+use crate::{EcdsaCurve, Error, Result};
use core::{
fmt::{sel... | 9 | 140 | 146 |
56b8b7acdf6d76291f8cbff56241fb15063befd3 | Tony Arcieri | 2024-01-17T21:20:52 | ecdsa: move `EcdsaCurve` trait to toplevel (#791)
Moves the trait added in #787 out of the `hazmat` module and into the
toplevel, so it's available regardless of whether or not the `hazmat`
feature has been enabled. | diff --git a/ecdsa/src/hazmat.rs b/ecdsa/src/hazmat.rs
index d314941..013dde9 100644
--- a/ecdsa/src/hazmat.rs
+++ b/ecdsa/src/hazmat.rs
@@ -43,14 +43,6 @@ use elliptic_curve::{FieldBytesEncoding, ScalarPrimitive};
#[cfg(any(feature = "arithmetic", feature = "digest"))]
use crate::{elliptic_curve::array::ArraySize, S... | 2 | 8 | 8 |
3992dc30e034f52b4a7d9cd5ab3e2f0ca22aedf3 | Tony Arcieri | 2024-01-17T20:09:03 | ecdsa: don't feature-gate `EcdsaCurve` (#790)
There's no reason for it to be gated on `arithmetic`. It can be provided
in all use cases. | diff --git a/ecdsa/src/hazmat.rs b/ecdsa/src/hazmat.rs
index a944374..d314941 100644
--- a/ecdsa/src/hazmat.rs
+++ b/ecdsa/src/hazmat.rs
@@ -44,7 +44,6 @@ use elliptic_curve::{FieldBytesEncoding, ScalarPrimitive};
use crate::{elliptic_curve::array::ArraySize, Signature};
/// Marker trait for elliptic curves intende... | 1 | 0 | 1 |
7bc69e132d53844e526c96e6d4fc571327ba5031 | Tony Arcieri | 2024-01-17T19:37:32 | ecdsa v0.17.0-pre.3 (#789) | diff --git a/Cargo.lock b/Cargo.lock
index 01185ca..53d302b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -148,7 +148,7 @@ dependencies = [
[[package]]
name = "ecdsa"
-version = "0.17.0-pre.2"
+version = "0.17.0-pre.3"
dependencies = [
"der 0.8.0-pre.0",
"digest",
diff --git a/ecdsa/Cargo.toml b/ecdsa/Cargo.toml... | 2 | 2 | 2 |
1c8963a5a2f80f0b74917344bf9d84149a12532f | Tony Arcieri | 2024-01-17T19:23:29 | rfc6979 v0.5.0-pre.2 (#788) | diff --git a/Cargo.lock b/Cargo.lock
index b327414..01185ca 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -428,7 +428,7 @@ dependencies = [
[[package]]
name = "rfc6979"
-version = "0.5.0-pre.1"
+version = "0.5.0-pre.2"
dependencies = [
"hex-literal",
"hmac",
diff --git a/dsa/Cargo.toml b/dsa/Cargo.toml
index c5d... | 4 | 4 | 4 |
9eda95a62362f4927699d60278f321afdb605b8d | Tony Arcieri | 2024-01-17T19:16:17 | ecdsa: add `EcdsaCurve` marker trait (#787)
This trait is the intended successor to the `SignPrimitive` and
`VerifyPrimitive` traits.
Currently the only reason for a non-default impl of those traits is to
handle low-S normalization. The `EcdsaCurve` trait now not only marks
the curve as being safe for use with E... | diff --git a/ecdsa/src/hazmat.rs b/ecdsa/src/hazmat.rs
index 013dde9..a944374 100644
--- a/ecdsa/src/hazmat.rs
+++ b/ecdsa/src/hazmat.rs
@@ -43,6 +43,15 @@ use elliptic_curve::{FieldBytesEncoding, ScalarPrimitive};
#[cfg(any(feature = "arithmetic", feature = "digest"))]
use crate::{elliptic_curve::array::ArraySize, S... | 1 | 9 | 0 |
81adf2e2fccc2654b17054a4e55509533a971960 | Tony Arcieri | 2024-01-17T17:17:26 | ecdsa: add DER support to `SignatureWithOid` (#786)
Adds the following methods:
- `from_der_with_digest`
- `from_der_with_oid`
- `to_der`
These handle deserializing/serializing ASN.1 DER-encoded signatures. | diff --git a/ecdsa/src/lib.rs b/ecdsa/src/lib.rs
index a098fa6..2a35182 100644
--- a/ecdsa/src/lib.rs
+++ b/ecdsa/src/lib.rs
@@ -595,6 +595,27 @@ where
Self::new_with_digest::<D>(Signature::<C>::from_slice(slice)?)
}
+ /// Parse a signature from ASN.1 DER and associate the given digest's OID with it.... | 1 | 60 | 1 |
970aacfaea00a18e84b78f9e616954c02d0cacb2 | Tony Arcieri | 2024-01-17T15:09:20 | ecdsa: gate `pkcs8::Encode*Key` impls under `alloc`+`pkcs8` (#783)
...rather than `pem`, as these can be used to encode DER without having
full `pem` support enabled.
Closes #721 | diff --git a/ecdsa/src/signing.rs b/ecdsa/src/signing.rs
index 5a55162..6d5d7f6 100644
--- a/ecdsa/src/signing.rs
+++ b/ecdsa/src/signing.rs
@@ -25,10 +25,7 @@ use signature::{
use {crate::der, core::ops::Add, elliptic_curve::FieldBytesSize};
#[cfg(feature = "pem")]
-use {
- core::str::FromStr,
- elliptic_cur... | 2 | 10 | 10 |
55e4450a65eb47c74620ef11698618035faca985 | Tony Arcieri | 2024-01-17T04:30:51 | rfc6979: add P-521 + SHA-512 test vectors (#775)
These now work after #781 | diff --git a/rfc6979/src/lib.rs b/rfc6979/src/lib.rs
index 4e71812..e6f62d0 100644
--- a/rfc6979/src/lib.rs
+++ b/rfc6979/src/lib.rs
@@ -161,9 +161,12 @@ where
#[cfg(test)]
mod tests {
- use crate::{consts::U21, generate_k};
+ use crate::{
+ consts::{U21, U66},
+ generate_k, Array,
+ };
... | 2 | 31 | 16 |
f6426cfb136b20d8f35d14781f68cb66bf4335ca | Tony Arcieri | 2024-01-17T04:25:52 | rfc6979: add K-163 test vector; fix nonaligned use (#781)
RFC6979 Appendix A.1. provides a "Detailed Example" which exercises
several edge cases in the protocol:
- `bits2int` for an input which is not byte-aligned
- Rejecting inputs which exceed the modulus
This commit adds what was missing from the previous i... | diff --git a/rfc6979/src/ct.rs b/rfc6979/src/ct.rs
new file mode 100644
index 0000000..e7c3d39
--- /dev/null
+++ b/rfc6979/src/ct.rs
@@ -0,0 +1,102 @@
+//! Constant-time helpers.
+// TODO(tarcieri): replace this with `crypto-bigint`?
+
+use subtle::{Choice, ConditionallySelectable, ConstantTimeEq};
+
+/// Count the num... | 3 | 148 | 113 |
32edd0d6309e63b6d1a9afcf062dc2c3f5f73b46 | Tony Arcieri | 2024-01-17T01:33:49 | ecdsa: make `Signature::normalize_s` infallible (#780)
Unconditionally returns a normalized signature, regardless of whether
the signature was normalized to begin with.
Closes #736 | diff --git a/ecdsa/src/lib.rs b/ecdsa/src/lib.rs
index ec9a635..46e159f 100644
--- a/ecdsa/src/lib.rs
+++ b/ecdsa/src/lib.rs
@@ -96,7 +96,9 @@ use alloc::vec::Vec;
#[cfg(feature = "arithmetic")]
use {
core::str,
- elliptic_curve::{scalar::IsHigh, CurveArithmetic, NonZeroScalar},
+ elliptic_curve::{
+ ... | 1 | 8 | 11 |
83359e104d590c68d8eb741d000804edf43fccc4 | Tony Arcieri | 2024-01-17T00:57:05 | ecdsa: reduce `z` mod `q` when performing RFC6979 (#777)
The RFC specifies this, however we were not performing it.
Going forward, it would be nice to be able to refactor these APIs to
operate over a `Scalar` which we know is always reduced. | diff --git a/ecdsa/src/hazmat.rs b/ecdsa/src/hazmat.rs
index db14fac..013dde9 100644
--- a/ecdsa/src/hazmat.rs
+++ b/ecdsa/src/hazmat.rs
@@ -86,7 +86,7 @@ where
/// described in [RFC6979] for computing ECDSA ephemeral scalar `k`.
///
/// Accepts the following parameters:
- /// - `z`: message digest to... | 1 | 10 | 2 |
8e12e1c7cd3dfcc8e90e840140ecee826da54e06 | Tony Arcieri | 2024-01-16T21:06:50 | ecdsa: remove `OutputSize` bounds on `DigestPrimitive` (#774)
Notably for curves like P-521, the digest used to compute the signature
is smaller than a serialized field element (SHA-512 w\ 64-byte output vs
66-byte serialized field elements).
To support such curves, we need to remove this bound.
The already im... | diff --git a/ecdsa/src/hazmat.rs b/ecdsa/src/hazmat.rs
index e4f4d88..db14fac 100644
--- a/ecdsa/src/hazmat.rs
+++ b/ecdsa/src/hazmat.rs
@@ -138,9 +138,9 @@ where
#[cfg(feature = "digest")]
fn verify_digest<D>(&self, msg_digest: D, sig: &Signature<C>) -> Result<()>
where
- D: FixedOutput<OutputSiz... | 3 | 12 | 15 |
2472e1cb7f98e21f377b731b87756290871ff034 | Tony Arcieri | 2024-01-16T16:57:05 | rfc6979: add `generate_k_mut`; remove digest bounds (#773)
Adds an API which writes `k` into an output buffer rather than
allocating and returning it, which also accepts slices as inputs. This
makes it possible to use `rfc6979` to implement the `dsa` crate.
Also removes output size bounds on the underlying digest... | diff --git a/Cargo.lock b/Cargo.lock
index 3a8852c..0f8f003 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -148,7 +148,7 @@ dependencies = [
[[package]]
name = "ecdsa"
-version = "0.17.0-pre.1"
+version = "0.17.0-pre.2"
dependencies = [
"der 0.8.0-pre.0",
"digest",
diff --git a/ecdsa/src/hazmat.rs b/ecdsa/src/haz... | 4 | 73 | 58 |
b41c2165602b83d588d1795a6936b94bb3d234d0 | Bernd Krietenstein | 2024-01-12T12:55:44 | Fixed rfc reference in comment. (#772) | diff --git a/ecdsa/src/der.rs b/ecdsa/src/der.rs
index ba8184b..963da4e 100644
--- a/ecdsa/src/der.rs
+++ b/ecdsa/src/der.rs
@@ -1,7 +1,7 @@
//! Support for ASN.1 DER-encoded ECDSA signatures as specified in
-//! [RFC5912 Appendix A].
+//! [RFC5912 Section 6].
//!
-//! [RFC5912 Appendix A]: https://www.rfc-editor.org... | 1 | 4 | 4 |
9be9453f821dc195adcf6c0e5a39183c3d834665 | Tony Arcieri | 2024-01-11T00:47:59 | ecdsa: bump `elliptic-curve` to v0.14.0-pre.2 (#771)
Also cuts a v0.17.0-pre.2 release of `ecdsa`. | diff --git a/Cargo.lock b/Cargo.lock
index 644c087..3a8852c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -73,9 +73,9 @@ dependencies = [
[[package]]
name = "crypto-bigint"
-version = "0.6.0-pre.9"
+version = "0.6.0-pre.10"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1ccdf8183c2226b... | 2 | 8 | 8 |
2cb7693956865c8c07b93b26055a16e58eb863ba | Tony Arcieri | 2024-01-10T21:11:13 | ecdsa: fix `new_wycheproof_test!` macro (#770)
Updates `from_exact_iter` => `from_iter` | diff --git a/ecdsa/src/dev.rs b/ecdsa/src/dev.rs
index 9f5ac8a..948c5ea 100644
--- a/ecdsa/src/dev.rs
+++ b/ecdsa/src/dev.rs
@@ -169,7 +169,7 @@ macro_rules! new_wycheproof_test {
let iter = core::iter::repeat(0)
.take(point_len - data.len())
.chain... | 1 | 1 | 1 |
1e5e29cc506e2fa04af6603031d3a9fd84d32400 | Tony Arcieri | 2024-01-10T20:34:47 | Bump `elliptic-curve` and `signature` dependencies (#769)
As well as bumping `hybrid-array` to v0.2.0-rc.0 and `digest` to
v0.11.0-pre.4.
Also cuts `ecdsa` v0.17.0-pre.1 and `rfc6979` v0.5.0-pre.1 | diff --git a/Cargo.lock b/Cargo.lock
index 46f664b..644c087 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -31,9 +31,9 @@ dependencies = [
[[package]]
name = "block-buffer"
-version = "0.11.0-pre.3"
+version = "0.11.0-pre.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "72bc448e41b3077... | 7 | 45 | 45 |
d935382d8d33958c59ac7cc24ec196294e37b86f | Tony Arcieri | 2024-01-10T15:16:08 | ecdsa: fix `dev` macros (#768)
The method changed from `GenericArray::from_slice` to
`Array::ref_from_slice`.
This has been renamed back upstream in `hybrid-array` to simplify
people's upgrades, but for now we need to rename it until we can upgrade
`hybrid-array` again.
Longer term the method will be deprecat... | diff --git a/ecdsa/src/dev.rs b/ecdsa/src/dev.rs
index 9f5ac8a..16b9544 100644
--- a/ecdsa/src/dev.rs
+++ b/ecdsa/src/dev.rs
@@ -89,8 +89,8 @@ macro_rules! new_verification_test {
fn ecdsa_verify_success() {
for vector in $vectors {
let q_encoded = EncodedPoint::<$curve>::from_aff... | 1 | 4 | 4 |
6881696f22607857e92ee6933df63f548a88f82e | Tony Arcieri | 2024-01-09T20:39:05 | ecdsa v0.17.0-pre.0 (#767) | diff --git a/Cargo.lock b/Cargo.lock
index 231729e..46f664b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -148,7 +148,7 @@ dependencies = [
[[package]]
name = "ecdsa"
-version = "0.17.0-pre"
+version = "0.17.0-pre.0"
dependencies = [
"der 0.8.0-pre.0",
"digest",
diff --git a/ecdsa/Cargo.toml b/ecdsa/Cargo.toml
i... | 2 | 2 | 2 |
d7b08e0711e48d46b8c8e1899308e56d2d22d749 | Tony Arcieri | 2024-01-09T20:22:27 | rfc6979 v0.5.0-pre.0 (#766) | diff --git a/Cargo.lock b/Cargo.lock
index 5ece077..231729e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -428,7 +428,7 @@ dependencies = [
[[package]]
name = "rfc6979"
-version = "0.5.0-pre"
+version = "0.5.0-pre.0"
dependencies = [
"hex-literal",
"hmac",
diff --git a/dsa/Cargo.toml b/dsa/Cargo.toml
index 30505... | 4 | 4 | 4 |
571d31fec750f7ccfa9773bb62ab31c00246437a | Alexander Kjäll | 2023-11-21T17:18:22 | ed25519: use `u64` instead of `usize` in test (#761) | diff --git a/ed25519/tests/serde.rs b/ed25519/tests/serde.rs
index 93f0ebc..cc836a7 100644
--- a/ed25519/tests/serde.rs
+++ b/ed25519/tests/serde.rs
@@ -38,7 +38,7 @@ fn test_serialize_bytes() {
let mut serializer = bincode::Serializer::new(&mut encoded_signature, options);
serde_bytes::serialize(&signature, ... | 1 | 2 | 2 |
2f3be458847d175fa6031f7d100da35cbf49ed2d | Tony Arcieri | 2023-11-16T16:25:04 | Cargo.lock: bump `signature` to v2.2.0 (#759) | diff --git a/Cargo.lock b/Cargo.lock
index c26f859..d27575e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -166,28 +166,28 @@ dependencies = [
[[package]]
name = "ecdsa"
-version = "0.16.8"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a4b1e0c257a9e9f25f90ff76d7a68360ed497ee519c8e428d1... | 1 | 16 | 16 |
250f6525fc2109454c00232e4f8d9a241e9e64b5 | Tony Arcieri | 2023-11-16T14:59:11 | dsa+ecdsa: support `signature` up to v2.2 (#756)
The v2.2.0 release bumped MSRV to 1.60, however that's still compatible
with the MSRV of `dsa` and `ecdsa`, which are both MSRV 1.65. | diff --git a/dsa/Cargo.toml b/dsa/Cargo.toml
index 6167cb1..b69696c 100644
--- a/dsa/Cargo.toml
+++ b/dsa/Cargo.toml
@@ -21,7 +21,7 @@ num-traits = { version = "0.2", default-features = false }
pkcs8 = { version = "0.10", default-features = false, features = ["alloc"] }
rfc6979 = { version = "0.4", path = "../rfc6979... | 2 | 2 | 2 |
3895f21a082807f9cb2b212281be1ce5fd46c9fe | Tony Arcieri | 2023-11-16T14:42:58 | Cargo.lock: bump dependencies (#755)
Updates the following dependencies:
$ cargo update
Updating crates.io index
Updating byteorder v1.4.3 -> v1.5.0
Updating cc v1.0.79 -> v1.0.83
Updating const-oid v0.9.2 -> v0.9.5
Updating cpufeatures v0.2.6 -> v0.2.11
Updating crypto-bigint v0.5... | diff --git a/Cargo.lock b/Cargo.lock
index acad472..e0f09e7 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -40,15 +40,18 @@ dependencies = [
[[package]]
name = "byteorder"
-version = "1.4.3"
+version = "1.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "14c189c53d098945499cdfa7ecc635... | 1 | 96 | 79 |
e8d4d23a43864540d158e413562638bc4a4a9081 | Tony Arcieri | 2023-10-15T18:47:01 | ed25519: hexify `Debug` impl on `Signature` (#747)
Formats the `R` and `s` signature components as hexidecimal to make the
representation more compact, as requested in #723:
ed25519::Signature {
R: 0x3f3e3d3c3b3a393837363534333231302f2e2d2c2b2a29282726252423222120,
s: 0x1f1e1d1c1b1a191817161514131211100f... | diff --git a/ecdsa/src/lib.rs b/ecdsa/src/lib.rs
index 7825a96..a449829 100644
--- a/ecdsa/src/lib.rs
+++ b/ecdsa/src/lib.rs
@@ -57,6 +57,7 @@
#[cfg(feature = "alloc")]
extern crate alloc;
+mod normalized;
mod recovery;
#[cfg(feature = "der")]
@@ -70,7 +71,7 @@ mod signing;
#[cfg(feature = "verifying")]
mod v... | 5 | 33 | 5 |
8f37b6039f94f2cafb180a143792f30d4e19f4d3 | Guillaume Charmetant | 2023-10-10T14:26:17 | Enable pkcs8/std feature when std is enabled (#746)
When we enable the `std` feature and the `pkcs8` dependency is enabled (by the `pem` feature), enable the `std` feature of `pkcs8`.
This makes it easier to work with the re-exported `pkcs8::Error` type because without the `std` feature it does not impl the `std::... | diff --git a/ed25519/Cargo.toml b/ed25519/Cargo.toml
index 51f1234..b971726 100644
--- a/ed25519/Cargo.toml
+++ b/ed25519/Cargo.toml
@@ -37,7 +37,7 @@ default = ["std"]
alloc = ["pkcs8?/alloc"]
pem = ["alloc", "pkcs8/pem"]
serde_bytes = ["serde", "dep:serde_bytes"]
-std = ["signature/std"]
+std = ["pkcs8?/std", "sig... | 1 | 1 | 1 |
31e69fabc2d93255d0da5a67e1fddfed594fafd2 | Tony Arcieri | 2023-08-13T19:27:02 | ed25519: bump `ed25519-dalek` to v2 (#738)
This is used as a `dev-dependency` for doctesting rustdoc documentation
showing how to use the trait-based API. | diff --git a/Cargo.lock b/Cargo.lock
index acd3940..d40581a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -101,9 +101,9 @@ dependencies = [
[[package]]
name = "curve25519-dalek"
-version = "4.0.0-rc.3"
+version = "4.0.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "436ace70fc06e06f7f... | 3 | 7 | 7 |
d7557a62bc1bb43944d89778fcbb7d4c8b3c9118 | Tony Arcieri | 2023-07-17T22:55:05 | ecdsa: extract `hazmat::{sign_prehashed, verify_prehashed}`. (#731)
Extracts generic, reusable functions from the `SignPrimitive` and
`VerifyPrimitive` traits.
The main motivation for this is to make it possible for the `*Primitive`
trait impls to be composed in terms of a generic implementation, in
order to add... | diff --git a/ecdsa/src/hazmat.rs b/ecdsa/src/hazmat.rs
index e5758e9..0f7ddbf 100644
--- a/ecdsa/src/hazmat.rs
+++ b/ecdsa/src/hazmat.rs
@@ -18,7 +18,7 @@ use elliptic_curve::{generic_array::typenum::Unsigned, FieldBytes, PrimeCurve};
use {
crate::{RecoveryId, SignatureSize},
elliptic_curve::{
- ff::P... | 1 | 94 | 49 |
2c3d90ed6f4f0052e76d66f6f61a4a0ec838bfc2 | Tony Arcieri | 2023-07-10T18:46:56 | ecdsa: refactor `Signature` constructors and improve docs (#730)
Implements `from_bytes` in terms of `from_scalars`, rather than the
other way around.
This places the logic for checking that `r` and `s` are nonzero inside
of the `from_scalars` method.
Additionally improves the documentation to note the various... | diff --git a/ecdsa/src/hazmat.rs b/ecdsa/src/hazmat.rs
index 6e59f2e..e5758e9 100644
--- a/ecdsa/src/hazmat.rs
+++ b/ecdsa/src/hazmat.rs
@@ -100,10 +100,7 @@ where
// Compute 𝒔 as a signature over 𝒓 and 𝒛.
let s = k_inv * (z + (r * self));
- if s.is_zero().into() {
- return Err(... | 2 | 31 | 17 |
7bf1313e8529bade56e62ca06d7df3f06ee48c52 | Arthur Gautier | 2023-05-04T22:29:24 | ecdsa: Adds support for the `SignatureBitStringEncoding` trait (#716) | diff --git a/Cargo.lock b/Cargo.lock
index 447325d..04d5eaf 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -177,6 +177,7 @@ dependencies = [
"serdect",
"sha2",
"signature",
+ "spki",
]
[[package]]
@@ -650,9 +651,9 @@ checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d"
[[package]]
na... | 3 | 18 | 3 |
800eda2a0739907b1693a1d158ba95e9f7c8180b | Tony Arcieri | 2023-04-14T17:30:03 | ecdsa: make `fmt` impls more consistent (#713) | diff --git a/ecdsa/src/lib.rs b/ecdsa/src/lib.rs
index 6304363..96f1a16 100644
--- a/ecdsa/src/lib.rs
+++ b/ecdsa/src/lib.rs
@@ -83,10 +83,7 @@ pub use crate::signing::SigningKey;
#[cfg(feature = "verifying")]
pub use crate::verifying::VerifyingKey;
-use core::{
- fmt::{self, Debug},
- ops::Add,
-};
+use core... | 1 | 17 | 20 |
31ebc99a15bc8827253846426812ff34d5a44f83 | Tony Arcieri | 2023-04-14T16:57:19 | ecdsa: `serde` doc fixup (#712)
The width of a serialized `Signature` is generic and based on the size
of the underlying curve's modulus, not a fixed 64-bytes. | diff --git a/ecdsa/src/lib.rs b/ecdsa/src/lib.rs
index 4842d50..6304363 100644
--- a/ecdsa/src/lib.rs
+++ b/ecdsa/src/lib.rs
@@ -192,8 +192,8 @@ pub type SignatureBytes<C> = GenericArray<u8, SignatureSize<C>>;
/// serializing and deserializing ECDSA signatures using the `Serialize` and
/// `Deserialize` traits.
///
... | 1 | 2 | 2 |
9433d578faf30dbe1a5c9d1296f75a2191219383 | Tony Arcieri | 2023-04-13T20:21:53 | ecdsa: change `der::Signature` citation to RFC5912 (#711) | diff --git a/ecdsa/src/der.rs b/ecdsa/src/der.rs
index 667bb56..5395dff 100644
--- a/ecdsa/src/der.rs
+++ b/ecdsa/src/der.rs
@@ -1,7 +1,7 @@
//! Support for ASN.1 DER-encoded ECDSA signatures as specified in
-//! [RFC5480 Appendix A].
+//! [RFC5912 Appendix A].
//!
-//! [RFC5480 Appendix A]: https://www.rfc-editor.or... | 1 | 4 | 4 |
b776db27b0fcccc40ecab12dfb0b225a6e1480d2 | Tony Arcieri | 2023-04-13T20:09:26 | ecdsa: add RFC5480 citation for `der::Signature` (#710)
Adds a reference to the ASN.1 schema and where it's defined | diff --git a/ecdsa/src/der.rs b/ecdsa/src/der.rs
index cb77423..667bb56 100644
--- a/ecdsa/src/der.rs
+++ b/ecdsa/src/der.rs
@@ -1,4 +1,7 @@
-//! Support for ECDSA signatures encoded as ASN.1 DER.
+//! Support for ASN.1 DER-encoded ECDSA signatures as specified in
+//! [RFC5480 Appendix A].
+//!
+//! [RFC5480 Appendix ... | 1 | 13 | 3 |
c3e35b13f2ebf9a279509777febeeec5b0e2f16a | Tony Arcieri | 2023-04-10T00:13:59 | ecdsa: fix test macros handling of serialized field size (#707)
Uses `C::FieldBytesSize` instead of `C::Uint::BYTES`, which is needed
for curves like P-224 where the serialized field element may be smaller
than the bigint used to represent them. | diff --git a/ecdsa/src/dev.rs b/ecdsa/src/dev.rs
index a5af403..8c1b7c8 100644
--- a/ecdsa/src/dev.rs
+++ b/ecdsa/src/dev.rs
@@ -33,14 +33,16 @@ macro_rules! new_signing_test {
($curve:path, $vectors:expr) => {
use $crate::{
elliptic_curve::{
- bigint::Encoding, generic_array::... | 1 | 11 | 3 |
d18b8a90f35d58067b10979a6ed431b3ee2e97aa | Tony Arcieri | 2023-04-09T02:27:34 | ecdsa: use C::FieldBytesSize over C::Uint::BYTES (#705)
This is needed to make curves like P-224 and P-521 work, since the size
of the `C::Uint` may not match the size of an integer serialization of a
field element (since `C::Uint::MAX` may be much larger than the field
modulus) | diff --git a/ecdsa/src/der.rs b/ecdsa/src/der.rs
index 321365e..cb77423 100644
--- a/ecdsa/src/der.rs
+++ b/ecdsa/src/der.rs
@@ -7,9 +7,8 @@ use core::{
};
use der::{asn1::UintRef, Decode, Encode, FixedTag, Length, Reader, Tag, Writer};
use elliptic_curve::{
- bigint::Integer,
consts::U9,
- generic_array:... | 4 | 16 | 16 |
621a847b8a9c973151b94ec6ec7f1f23eb31fa91 | Tony Arcieri | 2023-04-05T18:19:39 | ecdsa: fix `RecoveryId` computation in `SignPrimitive` (#702)
The implementation was adapted from `k256`, which produces signatures
with low-S normalization.
However, the provided implementation does not low-S normalize
signatures, so it should not be considered in the `RecoveryId`
computation. | diff --git a/ecdsa/src/hazmat.rs b/ecdsa/src/hazmat.rs
index 7aaa8ac..ef0bbcd 100644
--- a/ecdsa/src/hazmat.rs
+++ b/ecdsa/src/hazmat.rs
@@ -95,7 +95,7 @@ where
// Lift x-coordinate of 𝑹 (element of base field) into a serialized big
// integer, then reduce it into an element of the scalar field
... | 1 | 2 | 7 |
d25b07c18e9f5fbe91c4eb396f6a9e713831a0cb | Tony Arcieri | 2023-04-05T02:39:20 | ecdsa: forward `AssociatedAlgorithmIdentifier` impls (#698)
...from the `elliptic-curve` crate, as released in v0.13.3 | diff --git a/Cargo.lock b/Cargo.lock
index f1b0890..7b79737 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -221,9 +221,9 @@ dependencies = [
[[package]]
name = "elliptic-curve"
-version = "0.13.2"
+version = "0.13.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6ea5a92946e8614bb585254... | 4 | 33 | 6 |
116528faf25de03e9a637c42bbc28cd8a857908b | Tony Arcieri | 2023-04-05T02:14:52 | dsa+ecdsa: loosen `signature` bound to `2.0, <2.2` (#697)
`signature` v2.1.0 is out and only adds features. It does not change the
`digest` or `rand_core` dependencies (there are SemVer exceptions for
these crates, hence the non-SemVer requirement)
Because those deps are unchanged in v2.1.0, we can relax the requ... | diff --git a/dsa/Cargo.toml b/dsa/Cargo.toml
index 485d576..31d02ee 100644
--- a/dsa/Cargo.toml
+++ b/dsa/Cargo.toml
@@ -21,8 +21,8 @@ num-traits = { version = "0.2", default-features = false }
pkcs8 = { version = "0.10", default-features = false, features = ["alloc"] }
rfc6979 = { version = "0.4", path = "../rfc6979... | 2 | 3 | 3 |
9de47b676ea2e4105e9c22027126a1e257162f1f | Dmitry Baryshkov | 2023-04-05T00:08:25 | ecdsa: follow the DynAssociatedAlgorithmIdentifier changes (#695)
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> | diff --git a/Cargo.lock b/Cargo.lock
index bf5a4b6..f1b0890 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -20,11 +20,6 @@ version = "1.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8c3c1a368f70d6cf7302d78f8f7093da241fb8e8807c05cc9e51a125895a6d5b"
-[[package]]
-name = "base64ct"
-ve... | 3 | 16 | 29 |
224470045065e362451bb5900e662fa5c209a96a | Tony Arcieri | 2023-04-03T16:05:06 | ed25519: bump `ed25519-dalek` to v2.0.0-rc.2 (#693)
It's a `dev-dependency` used to doctest the usage examples in the
rustdoc | diff --git a/Cargo.lock b/Cargo.lock
index 85ad455..dd30af4 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2,28 +2,12 @@
# It is not intended for manual editing.
version = 3
-[[package]]
-name = "aead"
-version = "0.5.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5c192eb8f11fc081b0... | 3 | 230 | 454 |
bb601997d8f3361b226b6b7236f3f561c5d27a9f | Tony Arcieri | 2023-04-03T01:59:53 | ecdsa: add `SignatureWithOid` verification support (#690)
Gated under a newly added `sha2` feature.
This implementation dispatches based on RFC5758 OIDs, selecting the
appropriate hash function to use at runtime based on the OID. | diff --git a/ecdsa/Cargo.toml b/ecdsa/Cargo.toml
index d6b5065..fd06370 100644
--- a/ecdsa/Cargo.toml
+++ b/ecdsa/Cargo.toml
@@ -24,6 +24,7 @@ der = { version = "0.7", optional = true }
digest = { version = "0.10.6", optional = true, default-features = false, features = ["oid"] }
rfc6979 = { version = "0.4", optional... | 2 | 27 | 0 |
e05b64f4d86e4d0d9ec85a21dc1dac331d5917e9 | Tony Arcieri | 2023-04-03T01:22:20 | ecdsa: add `SignatureWithOid` (#689)
Adds a signature type which is paramaterized by an RFC5758-defined OID
identifying the variant of ECDSA used to produce the signature. | diff --git a/ecdsa/src/lib.rs b/ecdsa/src/lib.rs
index d721048..b4a0245 100644
--- a/ecdsa/src/lib.rs
+++ b/ecdsa/src/lib.rs
@@ -103,19 +103,22 @@ use {
};
#[cfg(feature = "digest")]
-use digest::const_oid::ObjectIdentifier;
-
-#[cfg(feature = "serde")]
-use serdect::serde::{de, ser, Deserialize, Serialize};
-
-#[c... | 2 | 240 | 23 |
5ebcfef950ee01b28ecce463aca2e54297490553 | Tony Arcieri | 2023-04-03T00:31:20 | ecdsa: impl `SignatureAlgorithmIdentifier` (#688)
Propagates the `AssociatedAlgorithmIdentifier` from `Signature<C>` to
`SigningKey<C>` and `VerifyingKey<C>`. | diff --git a/Cargo.lock b/Cargo.lock
index 38d3d7b..48cbab0 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -39,7 +39,7 @@ checksum = "b645a089122eccb6111b4f81cbc1a49f5900ac4666bb93ac027feaecf15607bf"
[[package]]
name = "base64ct"
version = "1.6.0"
-source = "git+https://github.com/RustCrypto/formats.git#fd069a6ff7a9f5a... | 3 | 44 | 8 |
56dd91a963e63c9e92df9ecb5e705a67384fb7d6 | Tony Arcieri | 2023-04-02T22:13:16 | ecdsa: add RFC5758 OID support (#686)
Adds support for obtaining the RFC5758 OIDs associated with the digest
algorithm used with the `Signer` and `Verifier` traits, i.e. the digest
defined via `DigestPrimitive::Digest` for a given curve.
The ECDSA OID is available via an `AssociatedOid` impl on `Signature`.
Th... | diff --git a/Cargo.lock b/Cargo.lock
index 15c9e2e..38d3d7b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -36,6 +36,11 @@ version = "1.5.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b645a089122eccb6111b4f81cbc1a49f5900ac4666bb93ac027feaecf15607bf"
+[[package]]
+name = "base64ct"
+ve... | 5 | 125 | 14 |
6121f15d5996d5caa594460fd6eb79943a075c0d | Tony Arcieri | 2023-03-28T16:58:49 | ecdsa: add `Signature::{from_bytes, from_slice}` (#684)
Adds inherent methods for parsing a signature from `SignatureBytes<C>`
and a byte slice respectively.
The existing `TryFrom<&[u8]>` impl now calls `Signature::from_slice`.
These methods match similar inherent methods on other types. | diff --git a/ecdsa/src/lib.rs b/ecdsa/src/lib.rs
index 39a0453..0916291 100644
--- a/ecdsa/src/lib.rs
+++ b/ecdsa/src/lib.rs
@@ -89,7 +89,7 @@ use core::{
};
use elliptic_curve::{
bigint::Integer,
- generic_array::{sequence::Concat, ArrayLength, GenericArray},
+ generic_array::{sequence::Concat, typenum::U... | 1 | 26 | 16 |
e572a4223606468178566f95cb6d5ebf71de0b82 | Jonas Lindstrøm | 2023-03-18T20:11:22 | ecdsa: handle the reduced R.x case in public key recovery (#680) | diff --git a/ecdsa/src/hazmat.rs b/ecdsa/src/hazmat.rs
index c739615..92b19ae 100644
--- a/ecdsa/src/hazmat.rs
+++ b/ecdsa/src/hazmat.rs
@@ -95,6 +95,7 @@ where
// Lift x-coordinate of 𝑹 (element of base field) into a serialized big
// integer, then reduce it into an element of the scalar field
... | 2 | 16 | 5 |
fbede9c3e2cbf8c537571743c58aeb3c22ef2edb | Jeff Andersen | 2023-03-11T00:40:11 | Rename additional_data to personalization_string (#679)
Section 10.1.2.3 of SP 800-90A describes the instantiation function and shows that this argument should be called `personalization_string`. `additional_data` is something provided during bit generation, so should be provided to the `fill_bytes` function of this l... | diff --git a/rfc6979/src/lib.rs b/rfc6979/src/lib.rs
index 817dda1..98db7b2 100644
--- a/rfc6979/src/lib.rs
+++ b/rfc6979/src/lib.rs
@@ -107,7 +107,7 @@ where
D: Digest + BlockSizeUser + FixedOutputReset,
{
/// Initialize `HMAC_DRBG`
- pub fn new(entropy_input: &[u8], nonce: &[u8], additional_data: &[u8])... | 1 | 2 | 2 |
7467f2cc4aa588b426c9aa1d4913071041fb1881 | Tony Arcieri | 2023-03-08T18:19:05 | ecdsa: add `VerifyingKey::to_sec1_bytes` + more conversions (#675)
Adds an inherent method, gated on `alloc`, for serializing a
`VerifyingKey` as a boxed byte slice containing the key's SEC1 encoding.
Also adds `From` conversions for converting to
`sec1::{CompressedPoint, EncodedPoint}`. | diff --git a/Cargo.lock b/Cargo.lock
index e9d87e6..cddeb18 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -161,9 +161,9 @@ dependencies = [
[[package]]
name = "der"
-version = "0.7.1"
+version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bc906908ea6458456e5eaa160a9c08543ec3... | 3 | 69 | 19 |
687fb978916cb6eeba71a4bf3f1aa0f6cd6a6e92 | Tony Arcieri | 2023-03-02T01:47:56 | ecdsa: documentation improvements (#668) | diff --git a/Cargo.lock b/Cargo.lock
index 74651d8..29a9922 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -220,7 +220,7 @@ dependencies = [
[[package]]
name = "ecdsa"
-version = "0.16.0-rc.0"
+version = "0.16.0"
dependencies = [
"der 0.7.0",
"elliptic-curve 0.13.0",
diff --git a/ecdsa/Cargo.toml b/ecdsa/Cargo.to... | 4 | 26 | 2 |
be9621e14693016db048d808eef717f5562a498e | Tony Arcieri | 2023-03-01T16:26:25 | ecdsa: add `Decode` and `Encode` impls for `der::Signature` (#666) | diff --git a/ecdsa/src/der.rs b/ecdsa/src/der.rs
index 5d63bd8..321365e 100644
--- a/ecdsa/src/der.rs
+++ b/ecdsa/src/der.rs
@@ -5,7 +5,7 @@ use core::{
fmt::{self, Debug},
ops::{Add, Range},
};
-use der::{asn1::UintRef, Decode, Encode, Reader};
+use der::{asn1::UintRef, Decode, Encode, FixedTag, Length, Rea... | 2 | 88 | 37 |
b295c44a4a515e515228811760267c11bac7283e | Tony Arcieri | 2023-03-01T00:33:41 | ecdsa: bump `elliptic-curve` dependency to v0.13.0 (#663) | diff --git a/Cargo.lock b/Cargo.lock
index c540124..34f3122 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -224,7 +224,7 @@ name = "ecdsa"
version = "0.16.0-rc.0"
dependencies = [
"der 0.7.0",
- "elliptic-curve 0.13.0-rc.0",
+ "elliptic-curve 0.13.0",
"hex-literal",
"rfc6979",
"serdect",
@@ -301,11 +301,11 @@ de... | 2 | 6 | 6 |
8c33134a43616d92b50f4dcd85a05020dd3a6555 | Tony Arcieri | 2023-02-28T21:32:13 | ecdsa v0.16.0-rc.0 (#661) | diff --git a/Cargo.lock b/Cargo.lock
index 4df12b5..c540124 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -221,7 +221,7 @@ dependencies = [
[[package]]
name = "ecdsa"
-version = "0.16.0-pre.1"
+version = "0.16.0-rc.0"
dependencies = [
"der 0.7.0",
"elliptic-curve 0.13.0-rc.0",
diff --git a/ecdsa/Cargo.toml b/ecd... | 2 | 2 | 2 |
1fdfc1be30aa45167ed733f244d648662670a4f9 | Tony Arcieri | 2023-02-03T18:10:02 | ecdsa v0.16.0-pre.1 (#655) | diff --git a/Cargo.lock b/Cargo.lock
index 629c2d2..45b54b0 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -204,7 +204,7 @@ dependencies = [
[[package]]
name = "ecdsa"
-version = "0.16.0-pre.0"
+version = "0.16.0-pre.1"
dependencies = [
"der",
"elliptic-curve 0.13.0-pre.5",
diff --git a/ecdsa/Cargo.toml b/ecdsa/C... | 2 | 2 | 2 |
dd4c4c02ff90e5bd6e1c7cb970b476799b07e942 | Tony Arcieri | 2023-02-03T17:52:02 | ecdsa: bump `elliptic-curve` dependency to v0.13.0-pre.5 (#654) | diff --git a/Cargo.lock b/Cargo.lock
index bb88c79..629c2d2 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -207,7 +207,7 @@ name = "ecdsa"
version = "0.16.0-pre.0"
dependencies = [
"der",
- "elliptic-curve 0.13.0-pre.4",
+ "elliptic-curve 0.13.0-pre.5",
"hex-literal",
"rfc6979",
"serdect",
@@ -284,8 +284,9 @@ de... | 3 | 6 | 8 |
82776dc4cc21d665788a1ab04bcfaabf30fb86db | Tony Arcieri | 2023-02-03T15:56:10 | ecdsa: add `Invert` bound (#653)
Previously this was handled by a blanket impl for `ff::Field` | diff --git a/Cargo.lock b/Cargo.lock
index d3a449f..bb88c79 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -285,8 +285,7 @@ dependencies = [
[[package]]
name = "elliptic-curve"
version = "0.13.0-pre.4"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e522fa74a88db6c494a11741a6cca2d8d74a6ff... | 3 | 5 | 3 |
6028260f296a2ccac020c66d6256ec36cdb7d1b1 | Tony Arcieri | 2023-02-03T14:25:18 | ecdsa: use `Scalar::invert_vartime` for verification (#651)
Variable-time inversions can be faster than constant-time inversions and
are fine in the context of verification. | diff --git a/Cargo.lock b/Cargo.lock
index 432106c..d3a449f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -207,7 +207,7 @@ name = "ecdsa"
version = "0.16.0-pre.0"
dependencies = [
"der",
- "elliptic-curve 0.13.0-pre.3",
+ "elliptic-curve 0.13.0-pre.4",
"hex-literal",
"rfc6979",
"serdect",
@@ -284,8 +284,9 @@ de... | 4 | 7 | 9 |
4e2b0b2cfcfaef61a1e8851080cf640313a6e516 | Tony Arcieri | 2023-02-01T16:57:42 | ecdsa: use `AffineCoordinates` trait (#650)
Switches to the newly consolidated `AffineCoordinates` trait.
See RustCrypto/traits#1237 | diff --git a/Cargo.lock b/Cargo.lock
index a9b1667..432106c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -285,8 +285,7 @@ dependencies = [
[[package]]
name = "elliptic-curve"
version = "0.13.0-pre.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a583fbbbfde04e0ef9c8b84c3bf8e504155a164... | 3 | 7 | 5 |
10e5369cbf79da1ea527b7e3ccb1eff2f4290b22 | Tony Arcieri | 2023-02-01T14:21:17 | ecdsa v0.16.0-pre.0 (#648) | diff --git a/Cargo.lock b/Cargo.lock
index 6fc90c5..a9b1667 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -204,7 +204,7 @@ dependencies = [
[[package]]
name = "ecdsa"
-version = "0.16.0-pre"
+version = "0.16.0-pre.0"
dependencies = [
"der",
"elliptic-curve 0.13.0-pre.3",
diff --git a/ecdsa/Cargo.toml b/ecdsa/Car... | 2 | 2 | 2 |
0cccd6f1290d62b7e0f7b5b3c243f2369e7ab4f1 | Tony Arcieri | 2023-02-01T03:56:46 | rfc6979 v0.4.0-pre.0 (#649) | diff --git a/Cargo.lock b/Cargo.lock
index 1878535..6fc90c5 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -638,7 +638,7 @@ dependencies = [
[[package]]
name = "rfc6979"
-version = "0.4.0-pre"
+version = "0.4.0-pre.0"
dependencies = [
"hex-literal",
"hmac",
diff --git a/dsa/Cargo.toml b/dsa/Cargo.toml
index ba49d... | 4 | 4 | 4 |
b20161fe046154c62a287a48e66d7d05da50174d | Tony Arcieri | 2023-02-01T03:30:34 | ecdsa: use `FieldBytesEncoding` to serialize `C::ORDER` (#647)
Bumps `elliptic-curve` to v0.13.0-pre.3, and uses the new
`FieldBytesEncoding` API.
This is needed to pass the curve's order to the RFC6979 implementation. | diff --git a/Cargo.lock b/Cargo.lock
index 8093acd..1878535 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -207,7 +207,7 @@ name = "ecdsa"
version = "0.16.0-pre"
dependencies = [
"der",
- "elliptic-curve 0.13.0-pre.2",
+ "elliptic-curve 0.13.0-pre.3",
"hex-literal",
"rfc6979",
"serdect",
@@ -284,9 +284,9 @@ depe... | 3 | 7 | 7 |
4af28dd9fa18411b7c8ac09f83ddcfedabe94e29 | Tony Arcieri | 2023-01-31T21:29:36 | Revert "ecdsa: use `FromUintUnchecked` for serializing order (#644)" (#646)
This reverts commit 298129cbce828ade61241954eae25d6b7fafe9c6.
Abusing `from_uint_unchecked` for this broke `p384`, which appears to be
serializing the order as zero. Curiously, this didn't impact `p256`. | diff --git a/ecdsa/src/hazmat.rs b/ecdsa/src/hazmat.rs
index c462ad7..3525a7b 100644
--- a/ecdsa/src/hazmat.rs
+++ b/ecdsa/src/hazmat.rs
@@ -37,12 +37,12 @@ use {
},
};
-#[cfg(feature = "rfc6979")]
-use elliptic_curve::scalar::FromUintUnchecked;
-
#[cfg(any(feature = "arithmetic", feature = "digest"))]
use cr... | 1 | 5 | 5 |
f7b37fa972f196902c4fc34bc255d7acc1f7cfc7 | Tony Arcieri | 2023-01-31T18:19:40 | ecdsa: bump `elliptic-curve` dependency to v0.13.0-pre.2 (#645) | diff --git a/Cargo.lock b/Cargo.lock
index eac1914..8093acd 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -110,9 +110,9 @@ dependencies = [
[[package]]
name = "crypto-bigint"
-version = "0.5.0-pre.2"
+version = "0.5.0-pre.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c77f9ab26f2f9e... | 3 | 10 | 12 |
298129cbce828ade61241954eae25d6b7fafe9c6 | Tony Arcieri | 2023-01-31T15:05:34 | ecdsa: use `FromUintUnchecked` for serializing order (#644)
This eliminates a usage of `C::encode_field_bytes`. | diff --git a/ecdsa/src/hazmat.rs b/ecdsa/src/hazmat.rs
index 3525a7b..c462ad7 100644
--- a/ecdsa/src/hazmat.rs
+++ b/ecdsa/src/hazmat.rs
@@ -37,12 +37,12 @@ use {
},
};
+#[cfg(feature = "rfc6979")]
+use elliptic_curve::scalar::FromUintUnchecked;
+
#[cfg(any(feature = "arithmetic", feature = "digest"))]
use cr... | 1 | 5 | 5 |
1dc9dd45e1cd5bced2e655bc47ed0acf4b60a693 | Tony Arcieri | 2023-01-31T04:21:19 | ecdsa: use `Reduce::reduce_bytes` (#643)
Uses the newly (re)introduced method for reducing an input with
serialized bytes to perform modular reductions on `FieldBytes`.
See: https://github.com/RustCrypto/traits/pull/1229 | diff --git a/Cargo.lock b/Cargo.lock
index 8ca4418..eac1914 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -285,8 +285,7 @@ dependencies = [
[[package]]
name = "elliptic-curve"
version = "0.13.0-pre.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bbb7effce4b08a32c6550a49a6dd7b4cd5534c6... | 6 | 56 | 69 |
8d61fce08b2067c867d137c0b03dbe252e80a8f4 | Tony Arcieri | 2023-01-30T17:56:20 | ecdsa: use `&FieldBytes<C>` consistently; fix tests (#642)
Always borrow the input field bytes.
Fix test macros in the `dev` module. | diff --git a/ecdsa/src/dev.rs b/ecdsa/src/dev.rs
index 9b513e6..dc22eab 100644
--- a/ecdsa/src/dev.rs
+++ b/ecdsa/src/dev.rs
@@ -53,7 +53,7 @@ macro_rules! new_signing_test {
let d = decode_scalar(vector.d).expect("invalid vector.d");
let k = decode_scalar(vector.k).expect("invalid vec... | 5 | 18 | 14 |
17663bd4f5615ede7727c195085736f3e2a8520e | Tony Arcieri | 2023-01-29T02:48:06 | ecdsa: bump `elliptic-curve` to v0.13.0-pre.1 (#640)
Bumps the `elliptic-curve` crate to the latest prerelease on crates.io.
Notably this includes changes to how `FieldBytes` is encoded made with
the goal of supporting elliptic curves with unusual moduli such as P-224
and P-521:
https://github.com/RustCrypto/t... | diff --git a/Cargo.lock b/Cargo.lock
index 0e1fa8b..8ca4418 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -110,9 +110,9 @@ dependencies = [
[[package]]
name = "crypto-bigint"
-version = "0.5.0-pre.1"
+version = "0.5.0-pre.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "753eaa5e38b15c... | 9 | 105 | 94 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.