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
be78a5c1362954761d83ee7792e6fc5426f78ed5
Tony Arcieri
2022-01-19T22:30:28
ecdsa v0.14.0-pre.1 (#443)
diff --git a/Cargo.lock b/Cargo.lock index 49d9781..a5529d2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -135,7 +135,7 @@ dependencies = [ [[package]] name = "ecdsa" -version = "0.14.0-pre.0" +version = "0.14.0-pre.1" dependencies = [ "der", "elliptic-curve", @@ -185,13 +185,14 @@ dependencies = [ [[package]...
4
8
10
090a85a5c2e9224a17896fd814059ac8aaee89b0
daxpedda
2022-01-19T16:30:27
Use `from_be_digest_reduced` (#439)
diff --git a/Cargo.lock b/Cargo.lock index 607a007..49d9781 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -186,12 +186,12 @@ dependencies = [ [[package]] name = "elliptic-curve" version = "0.12.0-pre.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91d80a4ec12dfafce02027223bef70efaca0d...
7
22
18
648bc06192fff6d461a40aeb883915ae860ad502
Tony Arcieri
2022-01-18T19:41:21
ecdsa v0.14.0-pre.0 (#438)
diff --git a/Cargo.lock b/Cargo.lock index 51f0230..66d568b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -89,7 +89,7 @@ dependencies = [ [[package]] name = "ecdsa" -version = "0.13.4" +version = "0.14.0-pre.0" dependencies = [ "der", "elliptic-curve", diff --git a/ecdsa/Cargo.toml b/ecdsa/Cargo.toml index c9dca...
3
3
3
c4c3cc7777e6cfbcd9ec847700b84a9f98becfe9
Tony Arcieri
2022-01-18T19:04:03
rfc6979 v0.2.0-pre.0 (#437)
diff --git a/Cargo.lock b/Cargo.lock index e5d9989..51f0230 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -214,7 +214,7 @@ dependencies = [ [[package]] name = "rfc6979" -version = "0.1.0" +version = "0.2.0-pre.0" dependencies = [ "crypto-bigint", "hmac", diff --git a/ecdsa/Cargo.toml b/ecdsa/Cargo.toml index 683...
3
3
3
c525b5c23aee665488806c27d86b50c20d9cc119
Tony Arcieri
2022-01-15T20:37:26
Cargo.lock: bump dependencies (#432)
diff --git a/Cargo.lock b/Cargo.lock index ce76467..4e3002e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -11,11 +11,17 @@ dependencies = [ "generic-array", ] +[[package]] +name = "base16ct" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "349a06037c7bf932dd7e7d1f6536...
1
49
42
26ff8ae69ebdc2f245853981ca33c3911b51ebd1
Tony Arcieri
2022-01-07T23:16:49
ecdsa: unicode variable names in rustdoc (#431)
diff --git a/ecdsa/src/hazmat.rs b/ecdsa/src/hazmat.rs index 706a70c..761abfa 100644 --- a/ecdsa/src/hazmat.rs +++ b/ecdsa/src/hazmat.rs @@ -84,14 +84,14 @@ where // Compute scalar inversion of ๐‘˜ let k_inv = Option::<Scalar<C>>::from(k.invert()).ok_or_else(Error::new)?; - // Compute ๐‘ = ๐‘˜ร—...
1
3
3
5fa2546af8ef05d2312fd35e959039dc0efc4221
Tony Arcieri
2022-01-06T20:02:40
ecdsa+ed25519: add `Signature::to_vec` (#428) I found myself in need of a `to_vec` method and thought it would be convenient to add. It can be written today as `sig.as_ref().to_vec()` but having a dedicated method is more ergonomic.
diff --git a/ecdsa/src/lib.rs b/ecdsa/src/lib.rs index f8724a8..0a0d0a0 100644 --- a/ecdsa/src/lib.rs +++ b/ecdsa/src/lib.rs @@ -90,6 +90,9 @@ use elliptic_curve::{ FieldBytes, FieldSize, ScalarCore, }; +#[cfg(feature = "alloc")] +use alloc::vec::Vec; + #[cfg(feature = "arithmetic")] use { core::str, @@ ...
2
23
1
7dbbbec374b852d5331e022f0f0a1a7a45dc420f
Tony Arcieri
2021-12-16T14:56:45
Cargo.lock: bump dependencies (#426)
diff --git a/Cargo.lock b/Cargo.lock index 9392870..38cc16b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -296,9 +296,9 @@ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646" [[package]] name = "libc" -version = "0.2.108" +version = "0.2.112" source = "registry+https://github.com/rust-lang/...
1
10
10
96e0e6217f93785f864610e2e07b9821864552a5
Tony Arcieri
2021-12-15T15:41:58
ed25519: bump `ring-compat` dev-dependency to v0.4 (#424)
diff --git a/Cargo.lock b/Cargo.lock index 4619b33..9392870 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -74,17 +74,6 @@ dependencies = [ "libc", ] -[[package]] -name = "crypto-bigint" -version = "0.2.11" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f83bd3bb4314701c568e340cd8cf78c9...
2
30
57
f6cd96b023f1b403c04653077b58beea3c397b7c
Tony Arcieri
2021-12-04T19:01:35
ecdsa: use revised `LinearCombination` trait (#419) See RustCrypto/traits#835
diff --git a/Cargo.lock b/Cargo.lock index 53be5c7..d5a341c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -161,7 +161,7 @@ name = "ecdsa" version = "0.13.2" dependencies = [ "der 0.5.1", - "elliptic-curve 0.11.4", + "elliptic-curve 0.11.5", "hex-literal", "rfc6979", "sha2", @@ -221,9 +221,9 @@ dependencies = [ ...
4
13
13
8963704ae413aca54012debe0c24243c579b8b6e
Tony Arcieri
2021-12-04T17:27:37
ecdsa: use `LinearCombination` trait (#417) Use the trait introduced in RustCrypto/traits#833 to implement ECDSA verification.
diff --git a/Cargo.lock b/Cargo.lock index 243da46..54b6b4a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -161,7 +161,7 @@ name = "ecdsa" version = "0.13.1" dependencies = [ "der 0.5.1", - "elliptic-curve 0.11.3", + "elliptic-curve 0.11.4", "hex-literal", "rfc6979", "sha2", @@ -221,9 +221,9 @@ dependencies = [ ...
4
17
13
bfb896f163a61b4f78765812e978f6c4dfc40cf6
Tony Arcieri
2021-12-04T01:07:47
ecdsa: add `serde` documentation (#416)
diff --git a/Cargo.lock b/Cargo.lock index 78920f2..243da46 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -161,7 +161,7 @@ name = "ecdsa" version = "0.13.1" dependencies = [ "der 0.5.1", - "elliptic-curve 0.11.2", + "elliptic-curve 0.11.3", "hex-literal", "rfc6979", "sha2", @@ -221,9 +221,9 @@ dependencies = [ ...
3
29
3
054fd8503dd83d54924a93141c3e719b5929563d
Tony Arcieri
2021-12-03T18:13:34
ecdsa: add `hazmat::rfc6979_generate_k` function (#414) Adds a function for computing RFC6979's `k` generation algorithm specific to the ECDSA use case, i.e. handling type conversions prior to calling the `rfc6979` crate's implementation.
diff --git a/ecdsa/src/hazmat.rs b/ecdsa/src/hazmat.rs index 0383d69..95801bd 100644 --- a/ecdsa/src/hazmat.rs +++ b/ecdsa/src/hazmat.rs @@ -4,8 +4,7 @@ //! //! YOU PROBABLY DON'T WANT TO USE THESE! //! -//! These primitives are easy-to-misuse low-level interfaces intended to be -//! implemented by elliptic curve cr...
3
37
32
8e233a8a883a8fc698219beacbac901613ededb5
Tony Arcieri
2021-12-03T16:49:29
Cargo.lock: bump dependencies (#413)
diff --git a/Cargo.lock b/Cargo.lock index 2a6e7de..5ba9ec7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -13,9 +13,9 @@ dependencies = [ [[package]] name = "base64ct" -version = "1.2.0" +version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "392c772b012d685a640cdad68a5a21f4a...
1
16
25
7e6295ace4cbc48cae458c337d18f71d655d4a00
Tony Arcieri
2021-11-20T14:57:04
ecdsa: bump `elliptic-curve` dependency to v0.11 (#408) Also bumps the `der` crate dependency to v0.5
diff --git a/Cargo.lock b/Cargo.lock index 0897aca..333c242 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -161,7 +161,7 @@ name = "ecdsa" version = "0.13.0-pre" dependencies = [ "der 0.5.1", - "elliptic-curve 0.11.0-pre", + "elliptic-curve 0.11.0", "hex-literal", "hmac", "sha2", @@ -221,8 +221,9 @@ dependencies...
4
9
11
64ce58c98ba90e41c27535aef7194145dcfad16c
Tony Arcieri
2021-11-19T15:16:05
ecdsa: `serde` support (#406) Leverages the `serde` support added upstream in `elliptic-curve`: https://github.com/RustCrypto/traits/pull/818 Adds support for `serde` serialization of `Signature` and `VerifyingKey`
diff --git a/Cargo.lock b/Cargo.lock index 8e67935..0897aca 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -168,15 +168,6 @@ dependencies = [ "signature", ] -[[package]] -name = "ed25519" -version = "1.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4620d40f6d2601794401d6dd95a5cf69...
4
195
16
e306f16a694f77c85cd97f8f7ebd6b7c5edb0e3c
Tony Arcieri
2021-11-18T18:03:12
ed25519: add `rust-version` attribute (#405)
diff --git a/ed25519/Cargo.toml b/ed25519/Cargo.toml index 74be60f..55cc62a 100644 --- a/ed25519/Cargo.toml +++ b/ed25519/Cargo.toml @@ -14,6 +14,7 @@ edition = "2018" readme = "README.md" categories = ["cryptography", "no-std"] keywords = ["crypto", "curve25519", "ecc", "signature", "signing"] +rust-version = "1.56...
1
1
0
452e927738d708322a31f78a6c8c46f63312eb99
Tony Arcieri
2021-11-18T17:16:32
ed25519: impl `Display`/`LowerHex`/`UpperHex`/`FromStr` for `Signature` (#402) Adds support for serializing and deserializing Ed25519 signature from hexadecimal using standard `core::{fmt, str}` traits.
diff --git a/ed25519/src/lib.rs b/ed25519/src/lib.rs index 1f93fdb..ca0e645 100644 --- a/ed25519/src/lib.rs +++ b/ed25519/src/lib.rs @@ -286,22 +286,22 @@ pub use signature::{self, Error}; #[cfg(feature = "pkcs8")] pub use crate::pkcs8::KeypairBytes; -use core::convert::{TryFrom, TryInto}; +use core::{ + convert...
2
137
7
ec0d8e325748fe42ff2348864bee476a50f02285
Tony Arcieri
2021-11-18T16:09:36
ed25519: deprecate `Signature::new` in favor of `::from_bytes` (#401) Adds a `Signature::from_bytes` inherent method which matches the method of the same name on the `Signature` trait, i.e. it returns a `signature::Result`. This method performs a partial range check on the `s` component of the signature to ensur...
diff --git a/ed25519/Cargo.toml b/ed25519/Cargo.toml index 7dbb06b..1cf76c6 100644 --- a/ed25519/Cargo.toml +++ b/ed25519/Cargo.toml @@ -12,7 +12,7 @@ categories = ["cryptography", "no-std"] keywords = ["crypto", "curve25519", "ecc", "signature", "signing"] [dependencies] -signature = { version = ">=1.3.1, ...
3
44
43
9ad4e971eb9069d2fe5b5c55d5a68c36b40816ca
Tony Arcieri
2021-11-18T15:10:31
ed25519: `zeroize` feature + doc improvements (#400) When `pkcs8` + `zeroize` is enabled, uses `zeroize` as part of the `Drop` impl for the `KeypairBytes` type.
diff --git a/Cargo.lock b/Cargo.lock index 091e5a3..829b6f6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -190,6 +190,7 @@ dependencies = [ "serde", "serde_bytes", "signature", + "zeroize", ] [[package]] diff --git a/ed25519/Cargo.toml b/ed25519/Cargo.toml index a75f615..7dbb06b 100644 --- a/ed25519/Cargo.toml ...
4
38
7
97ebdb8dbe94e94825d4ab620142b52a0c7651b3
Tony Arcieri
2021-11-18T01:53:08
ecdsa: fix `try_sign_*` macro boilerplate in `dev` module (#399)
diff --git a/ecdsa/src/dev.rs b/ecdsa/src/dev.rs index 656c2bc..8f46a8a 100644 --- a/ecdsa/src/dev.rs +++ b/ecdsa/src/dev.rs @@ -54,7 +54,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...
1
1
1
27a2d0a45e0624a412cf51e710937cc0cf53fc44
Tony Arcieri
2021-11-18T01:35:37
ecdsa: fix test macros (#398) Updates test macros with the changes from #396 and #397
diff --git a/ecdsa/src/dev.rs b/ecdsa/src/dev.rs index 00f869c..656c2bc 100644 --- a/ecdsa/src/dev.rs +++ b/ecdsa/src/dev.rs @@ -54,7 +54,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...
1
3
3
7d902f2bc829f7b92260ef4b48ce2fc90ebccbf6
Tony Arcieri
2021-11-18T00:53:24
ecdsa: add default generic impl of `VerifyPrimitive::verify_prehashed` (#397) Similar to #396, this adds a generic implementation of ECDSA signature verification by providing a default implementation of the `VerifyPrimitive::verify_prehashed` method. Downstream crates can choose to override this implementation if...
diff --git a/ecdsa/src/hazmat.rs b/ecdsa/src/hazmat.rs index 5375b90..0383d69 100644 --- a/ecdsa/src/hazmat.rs +++ b/ecdsa/src/hazmat.rs @@ -18,8 +18,8 @@ use { elliptic_curve::{ group::Curve as _, ops::{Invert, Reduce}, - AffineXCoordinate, Field, FieldBytes, Group, ProjectiveArithmetic, ...
2
27
12
b35f40c744620a8507926e64c89ecfbb893c0e94
Tony Arcieri
2021-11-18T00:32:24
Add default impl of `SignPrimitive::try_sign_prehashed` (#396) Leverages the newly added `AffineXCoordinate` trait from RustCrypto/traits#817 to provide a default generic implementation of the ECDSA signature algorithm. Downstream crates can choose to override this implementation if they so desire, allowing them...
diff --git a/Cargo.lock b/Cargo.lock index 68ee60b..091e5a3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -221,7 +221,7 @@ dependencies = [ [[package]] name = "elliptic-curve" version = "0.11.0-pre" -source = "git+https://github.com/RustCrypto/traits.git#f484ed6326282dc834451ae5a51cda4e60f275bf" +source = "git+https:/...
3
43
82
213fb744fb9d0f55bf0fd91404cd287e752203e7
Tony Arcieri
2021-11-17T22:44:25
ecdsa: add `MulBaseReduced` trait + generic ECDSA signing (#395) Adds a helper trait for performing the ๐‘˜ร—๐‘ฎ scalar multiplication used by ECDSA, with a subsequent reduction to a scalar field element. The main purpose of having a special trait for this is so curve implementations can avoid exposing their base f...
diff --git a/ecdsa/src/hazmat.rs b/ecdsa/src/hazmat.rs index 1e94d69..d2f638e 100644 --- a/ecdsa/src/hazmat.rs +++ b/ecdsa/src/hazmat.rs @@ -13,9 +13,11 @@ #[cfg(feature = "arithmetic")] use { - crate::{RecoveryId, Result, SignatureSize}, + crate::{Error, RecoveryId, Result, SignatureSize}, core::borrow:...
1
70
3
3d013c35399fd3a345909eee97df27ca519b06ee
Tony Arcieri
2021-11-17T21:49:29
ecdsa: remove `RecoverableSignPrimitive` (#394) Consolidates `RecoverableSignPrimitive` into `SignPrimitive`. These traits were nearly identical. This commit combines them into a single trait that works in all use cases.
diff --git a/ecdsa/src/hazmat.rs b/ecdsa/src/hazmat.rs index 1213081..1e94d69 100644 --- a/ecdsa/src/hazmat.rs +++ b/ecdsa/src/hazmat.rs @@ -30,6 +30,9 @@ use crate::{ Signature, }; +#[cfg(docsrs)] +use elliptic_curve::ops::Reduce; + /// Try to sign the given prehashed message using ECDSA. /// /// This trait...
3
19
43
1b71ee36a6f7a2b99a1670f0b518c80528fed240
Tony Arcieri
2021-11-17T21:31:13
ecdsa: remove `NormalizeLow` trait (#393) The available curve arithmetic is now expressive enough that it's possible to implement `Signature::normalize_s` generically for all curves with a `ScalarArithmetic` backend. Because of that, we no longer need a special "helper trait" for this purpose, and so `NormalizeL...
diff --git a/Cargo.lock b/Cargo.lock index ba02b52..68ee60b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -87,9 +87,9 @@ dependencies = [ [[package]] name = "crypto-bigint" -version = "0.3.0" +version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "476ecdba12db8402a1664482de8c...
2
16
29
1dd6e035022a4cb554f16eb2b30cac5943edc579
Tony Arcieri
2021-11-17T19:31:20
ecdsa: add `RecoveryId` type (#392) Previously `RecoverableSignPrimitive` would return a 1-bit flag to use as the "recid". While this suffices for the only current use case of this crate, which is secp256k1, it doesn't for other curves, where there is a practical possibility that an affine coordinate (i.e. eleme...
diff --git a/ecdsa/src/hazmat.rs b/ecdsa/src/hazmat.rs index 60d018d..1213081 100644 --- a/ecdsa/src/hazmat.rs +++ b/ecdsa/src/hazmat.rs @@ -13,7 +13,7 @@ #[cfg(feature = "arithmetic")] use { - crate::{Result, SignatureSize}, + crate::{RecoveryId, Result, SignatureSize}, core::borrow::Borrow, ellipt...
3
111
2
8f9b5664ad09f7f7333144f5e80882247b517636
Tony Arcieri
2021-11-17T17:06:46
Cargo.lock: bump dependencies (#391)
diff --git a/Cargo.lock b/Cargo.lock index 81a1b8c..ba02b52 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -133,7 +133,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6919815d73839e7ad218de758883aae3a257ba6759ce7a9992501efbb53d705c" dependencies = [ "const-oid", - "pem-rfc7468 0.3.0",...
1
6
6
1cd36321b7d59a570996d01538bc4b0d73eb73d3
Tony Arcieri
2021-11-17T15:05:25
Use released RustCrypto/formats crates (#390) Removes the git-based dependencies
diff --git a/Cargo.lock b/Cargo.lock index fb0351d..81a1b8c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -11,16 +11,11 @@ dependencies = [ "generic-array", ] -[[package]] -name = "base64ct" -version = "1.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e6b4d9b1225d28d360ec6a231d65...
2
30
32
6d4dab7128330f53888e791980837c4dabe6c9c3
Tony Arcieri
2021-11-16T20:49:28
Update `pkcs8` crate (#389) Updates to the latest git version of the `pkcs8` crate, which uses `TryFrom` to handle the final step of decoding keys
diff --git a/Cargo.lock b/Cargo.lock index 9b6d939..fb0351d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -20,7 +20,7 @@ checksum = "e6b4d9b1225d28d360ec6a231d65af1fd99a2a095154c8040689617290569c5c" [[package]] name = "base64ct" version = "1.2.0" -source = "git+https://github.com/RustCrypto/formats.git#3d1aaeed5d22cef...
4
61
33
6c439598c17a3dd29a454b14893513ff9c27a383
Tony Arcieri
2021-11-14T21:42:50
ecdsa: bump `elliptic-curve` + formats crates (#388) Updates `elliptic-curve` crates as well as `der`, `pkcs8`, and `spki` to the latest upstream commits
diff --git a/Cargo.lock b/Cargo.lock index 48c1d44..9b6d939 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -19,8 +19,8 @@ checksum = "e6b4d9b1225d28d360ec6a231d65af1fd99a2a095154c8040689617290569c5c" [[package]] name = "base64ct" -version = "1.2.0-pre" -source = "git+https://github.com/RustCrypto/formats.git#4ec825666...
3
47
32
e0c357392cd628b397b210b09477365b25e41e1e
Tony Arcieri
2021-10-21T23:19:28
ecdsa: remove `TryFrom`/`TryInto` imports (#454) (#386) Now that we've upgraded to Rust 2021 edition, these are now available via the prelude, making explicit imports redundant.
diff --git a/ecdsa/src/der.rs b/ecdsa/src/der.rs index dfb88f7..12a3286 100644 --- a/ecdsa/src/der.rs +++ b/ecdsa/src/der.rs @@ -2,7 +2,6 @@ use crate::{Error, Result}; use core::{ - convert::{TryFrom, TryInto}, fmt, ops::{Add, Range}, }; diff --git a/ecdsa/src/dev.rs b/ecdsa/src/dev.rs index b5eea29....
6
2
10
f28ddca1f2d01a7128d6effb50e0a1bb47db56bf
Tony Arcieri
2021-10-21T22:12:51
Allow `signature` v1.4 as a dependency (#385) Expands the range of allowed `signature` crate version to include the 1.4.x series in addition to 1.3.x.
diff --git a/ecdsa/Cargo.toml b/ecdsa/Cargo.toml index 5dfad62..48d3c16 100644 --- a/ecdsa/Cargo.toml +++ b/ecdsa/Cargo.toml @@ -17,7 +17,7 @@ rust-version = "1.56" [dependencies] elliptic-curve = { version = "=0.11.0-pre", default-features = false, features = ["sec1"] } hmac = { version = "0.11", optional = true, d...
2
2
2
23947daef3ab97587f774765f95227455bc82323
Tony Arcieri
2021-10-18T03:26:58
Bump `pkcs8` crate; update encoding traits (#383) Updates `pkcs8` and related crates to use the new trait names after they were renamed in RustCrypto/formats#121.
diff --git a/Cargo.lock b/Cargo.lock index 089abc6..3168f18 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -20,7 +20,7 @@ checksum = "e6b4d9b1225d28d360ec6a231d65af1fd99a2a095154c8040689617290569c5c" [[package]] name = "base64ct" version = "1.1.1" -source = "git+https://github.com/RustCrypto/formats.git#98d7a2896d67116...
5
28
27
5286a9768217b6ca0911f25991558a0bb97bedcd
Tony Arcieri
2021-10-09T21:20:14
ed25519: add `Signature::BYTE_SIZE` + other cleanups (#380) - Adds inherent constant `Signature::BYTE_SIZE`; deprecates `SIGNATURE_LENGTH` constant. - Address TODOs - Factor tests into `tests/`
diff --git a/ed25519/src/lib.rs b/ed25519/src/lib.rs index d13b575..96cf840 100644 --- a/ed25519/src/lib.rs +++ b/ed25519/src/lib.rs @@ -289,22 +289,27 @@ use core::{ fmt::{self, Debug}, }; -/// Length of an Ed25519 signature -pub const SIGNATURE_LENGTH: usize = 64; +/// Length of an Ed25519 signature in bytes....
2
93
100
cbafd1b474b03b2757f2e8ca1d255b3c5b5ba23e
Tony Arcieri
2021-10-09T20:31:57
Use prerelease format parsers (#379) Pull in the prerelease format parsers so we can properly integration test them for the elliptic curve use case.
diff --git a/Cargo.lock b/Cargo.lock index 55ea599..629eede 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -17,6 +17,11 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "40a96587c05c810ddbb79e2674d519cff1379517e7b91d166dff7a7cc0e9af6e" +[[package]] +name = "base64ct" +ve...
2
38
21
cdaf662a420b919aa59205e9faaf36c925d80100
Tony Arcieri
2021-10-09T18:03:12
ed25519: bump `ring-compat` dev-dependency to v0.3 (#378)
diff --git a/Cargo.lock b/Cargo.lock index c9dccd7..55ea599 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -109,15 +109,6 @@ dependencies = [ "zeroize", ] -[[package]] -name = "der" -version = "0.3.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2eeb9d92785d1facb50567852ce75d08586306...
2
24
32
757e9b289f9977a200c32bed7e9c3d40c4d80089
Tony Arcieri
2021-10-02T18:37:25
ecdsa: update to use new `FromEncodedPoint` trait (#373) See: https://github.com/RustCrypto/traits/pull/782
diff --git a/Cargo.lock b/Cargo.lock index 81439f7..58d03a5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -209,7 +209,7 @@ dependencies = [ [[package]] name = "elliptic-curve" version = "0.11.0-pre" -source = "git+https://github.com/RustCrypto/traits.git#fea0010f3356186804b42e57a8cb3612b96dab9f" +source = "git+https:/...
2
2
2
010da678be92aa557a26154b6a5d5345dcc0dd92
Tony Arcieri
2021-09-23T19:03:21
ecdsa: replace `FromDigest` trait with `Reduce` (#372) Now that we have a trait for expressing modular reductions, it can replace the `FromDigest` trait, with the output of a given digest function passed as an input to a modular reduction.
diff --git a/Cargo.lock b/Cargo.lock index c7c6f1b..81439f7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -209,7 +209,7 @@ dependencies = [ [[package]] name = "elliptic-curve" version = "0.11.0-pre" -source = "git+https://github.com/RustCrypto/traits.git#5251de66e4f9f74c6659b111cacfb78a70b85e4a" +source = "git+https:/...
6
40
86
c730a0fe33c0ab65974e76f70991466e8d862ed2
Tony Arcieri
2021-09-22T21:09:04
ecdsa: use the `sec1` crate release (#371) Bumps the `elliptic-curve` git hash and removes the patch dependencies
diff --git a/Cargo.lock b/Cargo.lock index 396efc6..c7c6f1b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -62,7 +62,8 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] name = "const-oid" version = "0.6.1" -source = "git+https://github.com/rustcrypto/formats#85322893dc6038d910...
2
7
6
0eca1f40d9e1142e0ddf40d7bc72504695c0a7b6
Tony Arcieri
2021-09-19T19:37:39
ecdsa: fix Wycheproof test macros (#370)
diff --git a/ecdsa/Cargo.toml b/ecdsa/Cargo.toml index b937bf5..5552df3 100644 --- a/ecdsa/Cargo.toml +++ b/ecdsa/Cargo.toml @@ -14,7 +14,7 @@ categories = ["cryptography", "no-std"] keywords = ["crypto", "ecc", "nist", "secp256k1", "signature"] [dependencies] -elliptic-curve = { version = "=0.11.0-pre", default-...
2
13
9
3f0b1ca50038df357b5903c378c7fb4d00d11894
Tony Arcieri
2021-09-19T19:03:44
ecdsa: use `sha1` crate's `EncodedPoint` (#369) Incorporates upstream changes from: https://github.com/RustCrypto/traits/pull/771
diff --git a/Cargo.lock b/Cargo.lock index 9a7260b..396efc6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -62,7 +62,7 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] name = "const-oid" version = "0.6.1" -source = "git+https://github.com/rustcrypto/formats#cc06abfcff56356cee...
3
20
43
378f3af42d484bf5b15eb38b1f8603ac33a8ae02
Tony Arcieri
2021-09-18T02:06:02
elliptic-curve: bump version; add `sec1` crate patch (#368) Updates `elliptic-curve` to a new version which uses the (unreleased) `sec1 crate. See RustCrypto/traits#765
diff --git a/Cargo.lock b/Cargo.lock index 8969c35..9a7260b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -62,8 +62,7 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] name = "const-oid" version = "0.6.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -chec...
2
17
5
c96e878fbc9fcc29a94b8af325be29394d05a37a
Tony Arcieri
2021-09-15T14:47:04
ecdsa: use `ScalarCore::is_zero` to validate R/S scalars (#366) Eliminates a manually written check with a higher-level method for ensuring R/S are nonzero.
diff --git a/ecdsa/src/lib.rs b/ecdsa/src/lib.rs index cc659f8..b469be3 100644 --- a/ecdsa/src/lib.rs +++ b/ecdsa/src/lib.rs @@ -272,15 +272,10 @@ where return Err(Error::new()); } - for scalar in bytes.chunks_exact(C::UInt::BYTE_SIZE) { - if scalar.iter().all(|&byte| byte == 0...
1
3
8
935aa17357ce7415b9114123281bef316e297d74
Tony Arcieri
2021-09-15T14:40:53
Cargo.lock: bump dependencies (#365)
diff --git a/Cargo.lock b/Cargo.lock index a0a53a1..8969c35 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4,18 +4,18 @@ version = 3 [[package]] name = "aead" -version = "0.4.1" +version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "922b33332f54fc0ad13fa3e514601e8d30fb54e1f3...
1
71
62
a450207a73ae4d4580a2357e7baaadcfed74bb52
Tony Arcieri
2021-09-08T18:24:52
ecdsa: impl RustCrypto/traits#741 (#361)
diff --git a/Cargo.lock b/Cargo.lock index c1828e5..9e9f328 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -209,7 +209,7 @@ dependencies = [ [[package]] name = "elliptic-curve" version = "0.11.0-pre" -source = "git+https://github.com/RustCrypto/traits.git#c2d2c05b9aee24d822f25ed15629e7d05b9ab170" +source = "git+https:/...
2
3
3
b17197b299442b50f675fd8bd4b9e9fb068e8ce1
Tony Arcieri
2021-09-08T17:44:52
ecdsa: bump `crypto-bigint` and `elliptic-curve` (#360)
diff --git a/Cargo.lock b/Cargo.lock index e0b0ae6..c1828e5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -76,8 +76,9 @@ dependencies = [ [[package]] name = "crypto-bigint" -version = "0.2.5" -source = "git+https://github.com/RustCrypto/utils.git#8fa1b4fb22789fb5afd51bc1fad08ebf95789965" +version = "0.2.6" +source = ...
4
6
6
e795f91d11cf373018a7066628c4f19f9eb94b0a
Tony Arcieri
2021-09-08T02:47:56
ecdsa: use mandatory `DefaultIsZeroes` bounds (#358) Replaces explicit `Zeroize` bounds with the ones introduced in RustCrypto/traits#738.
diff --git a/Cargo.lock b/Cargo.lock index fb1a9a1..a6c8333 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -208,7 +208,7 @@ dependencies = [ [[package]] name = "elliptic-curve" version = "0.11.0-pre" -source = "git+https://github.com/RustCrypto/traits.git#405c176ce5e9d4007f6f87ae7fc89348ffdc930b" +source = "git+https:/...
2
19
19
2d8b5982c0dab25d610787cad55ceeb8bdfe7b0d
Tony Arcieri
2021-09-08T02:03:28
ecdsa: use `PrimeCurve` trait (#357) Switches from `weierstrass::Curve` to the `PrimeCurve` trait added in RustCrypto/traits#737.
diff --git a/Cargo.lock b/Cargo.lock index 7efb61f..fb1a9a1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -208,7 +208,7 @@ dependencies = [ [[package]] name = "elliptic-curve" version = "0.11.0-pre" -source = "git+https://github.com/RustCrypto/traits.git#c7c63d39dbd9c9d5fc0dfd32e3ac0d58535dc500" +source = "git+https:/...
7
65
69
969e9e7350cd609d534061e6a386ede87002c873
Tony Arcieri
2021-09-03T01:26:57
ecdsa: make `Signature::normalize_s` non-mutating (#355) Changes the low-S normalization APIs to return `Option<Self>` rather than mutating `Signature` in-place. This allows for more functional patterns when working with these APIs.
diff --git a/ecdsa/src/lib.rs b/ecdsa/src/lib.rs index eb936ea..e11dd3a 100644 --- a/ecdsa/src/lib.rs +++ b/ecdsa/src/lib.rs @@ -205,17 +205,15 @@ where /// [BIP 0062: Dealing with Malleability][1]. /// /// [1]: https://github.com/bitcoin/bips/blob/master/bip-0062.mediawiki - pub fn normalize_s(&mut s...
1
10
11
ec279220173f4a43d870a2f08a593662463eaaaf
Tony Arcieri
2021-09-02T22:08:31
ecdsa: fix `CtOption`-related regression in component accessors (#354) This was previously triggering a panic because `CtOption` eagerly evaluates both branches, causing a panic to be triggered in the success case because it branched even in the success case.
diff --git a/ecdsa/src/lib.rs b/ecdsa/src/lib.rs index 8c4d745..eb936ea 100644 --- a/ecdsa/src/lib.rs +++ b/ecdsa/src/lib.rs @@ -186,14 +186,14 @@ where { /// Get the `r` component of this signature pub fn r(&self) -> NonZeroScalar<C> { - NonZeroScalar::from_repr(self.split_bytes().0) - .un...
1
4
4
2f3c494682df96ba38ba7f9e5ff3433e6b5f4145
Tony Arcieri
2021-09-02T21:37:25
ecdsa: fix test macros (#353) Updates the test macros to be compatible with the changes from #352.
diff --git a/Cargo.lock b/Cargo.lock index 9553225..7092e1b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -149,7 +149,7 @@ dependencies = [ [[package]] name = "ecdsa" -version = "0.12.4" +version = "0.13.0-pre" dependencies = [ "der 0.4.1", "elliptic-curve 0.11.0-pre", diff --git a/ecdsa/Cargo.toml b/ecdsa/Cargo...
5
25
23
a9c630c37d8dfd4b876f5355886e372f11b022d7
Tony Arcieri
2021-09-02T20:40:13
ecdsa: bump `elliptic-curve` to v0.11.0-pre (#352) Sourced via git. This includes transitive updates to `ff` and `group` v0.11.
diff --git a/Cargo.lock b/Cargo.lock index a3a8ed6..9553225 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -76,9 +76,9 @@ dependencies = [ [[package]] name = "crypto-bigint" -version = "0.2.4" +version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cc209804a22c34a98fe26a32d997...
5
49
39
9995711b595871aa1c92c0acdc36e00c9eb0530e
Tony Arcieri
2021-08-12T16:50:42
ecdsa: impl Clone, Debug, *Eq for SigningKey (#345) Adds previously missing trait impls for `SigningKey<C>`. The `Eq`/`PartialEq` impls use `ConstantTimeEq` internally to compare signing keys in constant-time.
diff --git a/ecdsa/src/sign.rs b/ecdsa/src/sign.rs index 2420558..072bcf5 100644 --- a/ecdsa/src/sign.rs +++ b/ecdsa/src/sign.rs @@ -6,16 +6,23 @@ use crate::{ hazmat::{DigestPrimitive, FromDigest, SignPrimitive}, rfc6979, Error, Result, Signature, SignatureSize, }; -use core::convert::TryFrom; +use core::{ ...
2
58
8
8c55045576f78653313c63baa953dc685c1c1c85
Chris Connelly
2021-07-21T18:53:03
doc(ed25519): Add crate documentation for features (#339)
diff --git a/ed25519/src/lib.rs b/ed25519/src/lib.rs index 74b3ead..3ceb803 100644 --- a/ed25519/src/lib.rs +++ b/ed25519/src/lib.rs @@ -236,7 +236,6 @@ //! - [`ring-compat`] - compatibility wrapper for [*ring*] //! - [`signatory-sodiumoxide`] - compatibility wrapper for [`sodiumoxide`] //! - [`yubihsm`] - host-side...
1
21
1
2de5f027194546c01921ccd46519de03a4a058bd
Chris Connelly
2021-07-21T18:04:31
feat(ed255519): Introduce `serde_bytes` optional dependency (#337) This allows consumers to opt-in to `serde_bytes` support by setting the `serde_bytes` feature. This makes it convenient to optimise (de)serialization for formats with efficient byte array encodings, e.g. #[derive(serde::Deserialize, serde::Ser...
diff --git a/Cargo.lock b/Cargo.lock index 7795d4c..bb0e195 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -168,6 +168,7 @@ dependencies = [ "rand_core 0.5.1", "ring-compat", "serde", + "serde_bytes", "signature", ] @@ -478,6 +479,15 @@ version = "1.0.126" source = "registry+https://github.com/rust-lang/crates...
3
96
1
465e7277455b0dfc8f4fdcd02b0d05e0d8ed7aa6
David Drysdale
2021-07-18T17:38:46
ecdsa: flip error msgs in new_wycheproof_test (#333)
diff --git a/ecdsa/src/dev.rs b/ecdsa/src/dev.rs index d33d3db..32b7deb 100644 --- a/ecdsa/src/dev.rs +++ b/ecdsa/src/dev.rs @@ -217,9 +217,9 @@ macro_rules! new_wycheproof_test { match verifying_key.verify(msg, &sig) { Ok(_) if pass => None, - Ok(_) => Some("s...
1
2
2
55913b4b6a6a3f4b66427bd03c4504dd6e4aa20e
Tony Arcieri
2021-07-17T16:01:31
ecdsa: use signature::Result alias (#331) Simplifies the method signatures
diff --git a/ecdsa/Cargo.toml b/ecdsa/Cargo.toml index 5abe1cc..43cf487 100644 --- a/ecdsa/Cargo.toml +++ b/ecdsa/Cargo.toml @@ -16,7 +16,7 @@ keywords = ["crypto", "ecc", "nist", "secp256k1", "signature"] [dependencies] elliptic-curve = { version = "0.10.4", default-features = false } hmac = { version = "0.11", o...
6
33
45
6307b63f6fa10a43ef9cef5888cd2d6ff7cddf66
Tony Arcieri
2021-07-17T15:48:56
ecdsa: impl `TryFrom<&[u8]>` for `SigningKey<C>` (#330)
diff --git a/ecdsa/src/sign.rs b/ecdsa/src/sign.rs index 99d6113..b9544de 100644 --- a/ecdsa/src/sign.rs +++ b/ecdsa/src/sign.rs @@ -6,6 +6,7 @@ use crate::{ hazmat::{DigestPrimitive, FromDigest, SignPrimitive}, rfc6979, Error, Signature, SignatureSize, }; +use core::convert::TryFrom; use elliptic_curve::{ ...
1
14
0
cdaae7cc7df744c5020b275535fd6d5a4bab6743
Tony Arcieri
2021-07-16T22:37:30
ecdsa: impl `TryFrom<&[u8]>` for `Verifying<C>` (#329)
diff --git a/ecdsa/src/verify.rs b/ecdsa/src/verify.rs index 1633602..e9a0068 100644 --- a/ecdsa/src/verify.rs +++ b/ecdsa/src/verify.rs @@ -4,7 +4,7 @@ use crate::{ hazmat::{DigestPrimitive, FromDigest, VerifyPrimitive}, Error, Signature, SignatureSize, }; -use core::{cmp::Ordering, fmt::Debug, ops::Add}; +...
1
15
1
8099a9b184ac52271b5f9f0fff811d25e06efd09
Tony Arcieri
2021-06-22T06:25:58
ecdsa: bump `elliptic-curve` to v0.10.3 (#323)
diff --git a/Cargo.lock b/Cargo.lock index 58d4218..29dbcb2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -67,21 +67,22 @@ checksum = "44c32f031ea41b4291d695026c023b95d59db2d8a2c7640800ed56bc8f510f22" [[package]] name = "cpufeatures" -version = "0.1.4" +version = "0.1.5" source = "registry+https://github.com/rust-la...
1
21
20
52948a254990706418ee19969c0f204cf2e7f86b
Bogdan Opanchuk
2021-06-18T13:54:38
Add zeroization on drop for SigningKey (#321)
diff --git a/ecdsa/src/sign.rs b/ecdsa/src/sign.rs index 14c7655..99d6113 100644 --- a/ecdsa/src/sign.rs +++ b/ecdsa/src/sign.rs @@ -86,6 +86,17 @@ where } } +impl<C> Drop for SigningKey<C> +where + C: Curve + ProjectiveArithmetic, + Scalar<C>: FromDigest<C> + Invert<Output = Scalar<C>> + SignPrimitive<C>...
1
11
0
10bff57331f020808d34ac05fdbfd3118b85aaf9
Tony Arcieri
2021-06-09T21:58:32
ecdsa: add explicit `Copy` bounds on `VerifyingKey` (#318) Analogous change to https://github.com/RustCrypto/traits/pull/667
diff --git a/Cargo.lock b/Cargo.lock index c335382..4a92a49 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -148,7 +148,7 @@ name = "ecdsa" version = "0.12.0" dependencies = [ "der 0.4.0", - "elliptic-curve 0.10.0", + "elliptic-curve 0.10.1", "hex-literal", "hmac", "sha2", @@ -203,9 +203,9 @@ dependencies = [ ...
3
8
6
1e950806ea53b8d80f202114b27099b393b6be1a
Tony Arcieri
2021-06-08T03:22:54
ecdsa: bump `elliptic-curve` crate dependency to v0.10 (#315) Also bumps: `der` => v0.4
diff --git a/Cargo.lock b/Cargo.lock index eb4b8d0..66775d1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -12,7 +12,8 @@ dependencies = [ [[package]] name = "base64ct" version = "1.0.0" -source = "git+https://github.com/rustcrypto/utils.git#dd17922cba2798f9a002850acf455cf2d6215483" +source = "registry+https://github.c...
3
27
26
a0b6eaa3b56bc37e45ee338efba36d95e8cb0038
Tony Arcieri
2021-06-08T00:46:20
ecdsa: fix `dev` module macros (#314) They weren't updated to incorporate the changes from #313
diff --git a/ecdsa/src/dev.rs b/ecdsa/src/dev.rs index 0f63d14..d33d3db 100644 --- a/ecdsa/src/dev.rs +++ b/ecdsa/src/dev.rs @@ -172,14 +172,14 @@ macro_rules! new_wycheproof_test { #[test] fn $name() { use blobby::Blob5Iterator; - use elliptic_curve::{bigint::NumBytes, generic...
1
2
2
f04abf3515921cbb3e037e2a0f8985b94e299450
Tony Arcieri
2021-06-08T00:36:39
ecdsa: bump `crypto-bigint` to v0.2.0-pre (#313)
diff --git a/Cargo.lock b/Cargo.lock index c0e24a6..eb4b8d0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -12,7 +12,7 @@ dependencies = [ [[package]] name = "base64ct" version = "1.0.0" -source = "git+https://github.com/rustcrypto/utils.git#3fc828a86a31b2b5016dd64e4f3b38a858f9d070" +source = "git+https://github.com/ru...
4
21
19
66c3fe28c521979a352e6a894c7c4e9b9bcea341
Tony Arcieri
2021-06-07T21:06:35
ecdsa: remove unnecessary bounds on AffinePoint/ProjectivePoint (#312) These bounds are now captured by the `*Arithmetic` traits
diff --git a/Cargo.lock b/Cargo.lock index a0e180d..c0e24a6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -12,7 +12,7 @@ dependencies = [ [[package]] name = "base64ct" version = "1.0.0" -source = "git+https://github.com/rustcrypto/utils.git#c1f7fd345e112b2f363a5b8a3ab3d321df4fed7c" +source = "git+https://github.com/ru...
3
23
46
12479837ac7e2bc538f151d15649c3e12902c7d5
Tony Arcieri
2021-06-07T17:39:03
ecdsa: clean up `der::Signature` -> `Signature` conversion (#311)
diff --git a/ecdsa/src/der.rs b/ecdsa/src/der.rs index a39ef84..9511e05 100644 --- a/ecdsa/src/der.rs +++ b/ecdsa/src/der.rs @@ -175,6 +175,24 @@ where } } +impl<C> TryFrom<Signature<C>> for super::Signature<C> +where + C: Curve, + MaxSize<C>: ArrayLength<u8>, + <FieldSize<C> as Add>::Output: Add<MaxOv...
2
18
26
8992091b543ce1fb40a95e6af127b007e723731c
Tony Arcieri
2021-06-07T17:25:26
ecdsa: remove unnecessary trait bounds on `der::Signature` (#310)
diff --git a/ecdsa/src/der.rs b/ecdsa/src/der.rs index 3f64cee..a39ef84 100644 --- a/ecdsa/src/der.rs +++ b/ecdsa/src/der.rs @@ -10,7 +10,7 @@ use der::{asn1::UIntBytes, Decodable}; use elliptic_curve::{ bigint::NumBytes, consts::U9, - generic_array::{typenum::NonZero, ArrayLength, GenericArray}, + gen...
1
1
8
44f49efbbdfa5e709296b9892cf03b73da55a61c
Tony Arcieri
2021-06-07T16:20:45
ecdsa: reject overlength ASN.1 DER encoded signature (#309)
diff --git a/ecdsa/src/der.rs b/ecdsa/src/der.rs index 2352ddf..3f64cee 100644 --- a/ecdsa/src/der.rs +++ b/ecdsa/src/der.rs @@ -8,6 +8,7 @@ use core::{ }; use der::{asn1::UIntBytes, Decodable}; use elliptic_curve::{ + bigint::NumBytes, consts::U9, generic_array::{typenum::NonZero, ArrayLength, GenericA...
1
5
0
3e3469d10d388f1906a3b9d62b870d3274223c54
Tony Arcieri
2021-06-07T15:59:49
ecdsa: fix typo (#308) `bignum` -> `bigint`
diff --git a/ecdsa/src/dev.rs b/ecdsa/src/dev.rs index 406a9ca..04a852d 100644 --- a/ecdsa/src/dev.rs +++ b/ecdsa/src/dev.rs @@ -171,7 +171,7 @@ macro_rules! new_wycheproof_test { #[test] fn $name() { use blobby::Blob5Iterator; - use elliptic_curve::{bignum::NumBytes, generic_a...
1
1
1
cac7f97caeb23c728419f73c492c6eeca2070a71
Tony Arcieri
2021-06-07T15:37:22
ecdsa: fix Wycheproof test generator macro (#307)
diff --git a/ecdsa/src/dev.rs b/ecdsa/src/dev.rs index 016270f..406a9ca 100644 --- a/ecdsa/src/dev.rs +++ b/ecdsa/src/dev.rs @@ -171,14 +171,14 @@ macro_rules! new_wycheproof_test { #[test] fn $name() { use blobby::Blob5Iterator; - use elliptic_curve::generic_array::typenum::Un...
1
2
2
c2203f0b1c515ff08e056d3feb5a7b8a145e1ddd
Tony Arcieri
2021-06-07T14:06:14
ecdsa: SigningKey init cleanup (#306)
diff --git a/ecdsa/src/sign.rs b/ecdsa/src/sign.rs index f1f0170..b2fe1d7 100644 --- a/ecdsa/src/sign.rs +++ b/ecdsa/src/sign.rs @@ -65,11 +65,11 @@ where /// Initialize signing key from a raw scalar serialized as a byte slice. pub fn from_bytes(bytes: &[u8]) -> Result<Self, Error> { - let sk = Secre...
1
4
4
4dd50b67d8b4557fab19c5796dabe62b24438393
Tony Arcieri
2021-06-06T17:26:17
ecdsa: fix `ff` imports in test gen macros (#305) The `ff` crate is now re-exported as `elliptic_curve::group::ff`.
diff --git a/ecdsa/src/dev.rs b/ecdsa/src/dev.rs index 27aaf56..016270f 100644 --- a/ecdsa/src/dev.rs +++ b/ecdsa/src/dev.rs @@ -64,7 +64,7 @@ macro_rules! new_signing_test { use core::convert::TryInto; use $crate::{ elliptic_curve::{ - ff::PrimeField, generic_array::Generi...
1
3
3
c7f2f4f798930d831e6a4418ae9274f29005a4d4
Tony Arcieri
2021-06-06T16:04:01
ecdsa: bump version to v0.12.0-pre (#304) Reflect that the code on master contains breaking changes
diff --git a/Cargo.lock b/Cargo.lock index a2bef7b..a0e180d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -131,23 +131,23 @@ dependencies = [ [[package]] name = "ecdsa" version = "0.11.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "34d33b390ab82f2e1481e331dbd0530895640179d2128ef9a79c...
3
17
17
3004490c961f8ab9467e0de74932d30c3d3c3a67
Tony Arcieri
2021-06-06T15:53:14
ecdsa: remove PrimeField bounds; leverage ScalarArithmetic (#303) The newly introduced ScalarArithmetic trait captures these bounds automatically: https://github.com/RustCrypto/traits/pull/654
diff --git a/Cargo.lock b/Cargo.lock index 2082d32..a2bef7b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -200,7 +200,7 @@ dependencies = [ [[package]] name = "elliptic-curve" version = "0.10.0-pre" -source = "git+https://github.com/rustcrypto/traits.git#618645970a3c6d98d016edc129bba32c843883ef" +source = "git+https:/...
6
18
88
8c6331c8fe2c816fa7d38ae62a17fde01555da17
Tony Arcieri
2021-05-19T00:41:28
ecdsa: use PartialOrd/Ord impls from `elliptic-curve` v0.9.12 (#299)
diff --git a/Cargo.lock b/Cargo.lock index fb2acd2..12eb444 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -186,9 +186,9 @@ dependencies = [ [[package]] name = "elliptic-curve" -version = "0.9.11" +version = "0.9.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ee681bf25de1aad7cd02ccc...
3
5
8
98077f0e863575e1666cdc5b8987f1e707034eae
Tony Arcieri
2021-05-19T00:05:26
ecdsa: add Ord and PartialOrd impls on VerifyingKey (#298)
diff --git a/Cargo.lock b/Cargo.lock index a3c30c5..fb2acd2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,7 +1,5 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 - [[package]] name = "aead" version = "0.4.0" diff --git a/ecdsa/src/verify.rs b/ecdsa/src/ver...
2
32
3
db0778d87736d192dbc83e9f767e67625f706c57
Tony Arcieri
2021-04-30T17:16:55
ed25519: updates for `ring-compat` v0.2.1 (#291) `VerifyKey` was renamed to `VerifyingKey`
diff --git a/Cargo.lock b/Cargo.lock index 51cd96f..925174c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -433,9 +433,9 @@ dependencies = [ [[package]] name = "ring-compat" -version = "0.2.0" +version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85c10e5a7d9bc5de3d81dc1600f5...
2
4
4
d246bcfa3127a7e277f17654dbc36b33e81ee945
Tony Arcieri
2021-04-29T19:13:18
ecdsa: bump `hmac` crate dependency to v0.11 (#287)
diff --git a/Cargo.lock b/Cargo.lock index 6086a42..d26bd25 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -64,9 +64,9 @@ checksum = "8aebca1129a03dc6dc2b127edd729435bbc4a37e1d5f4d7513165089ceb02634" [[package]] name = "crypto-mac" -version = "0.10.0" +version = "0.11.0" source = "registry+https://github.com/rust-lan...
3
7
7
64841f3f309ad0173626a412f015f1de7a45ebce
Tony Arcieri
2021-04-21T22:32:27
ecdsa v0.11.0-pre.6 (#285)
diff --git a/Cargo.lock b/Cargo.lock index a478141..68208c2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -106,7 +106,7 @@ dependencies = [ [[package]] name = "ecdsa" -version = "0.11.0-pre.5" +version = "0.11.0-pre.6" dependencies = [ "der", "elliptic-curve", diff --git a/ecdsa/Cargo.toml b/ecdsa/Cargo.toml ind...
3
3
3
66de13088a30b9488618b03bea05d20a3fa0bca7
Tony Arcieri
2021-04-21T22:14:49
ecdsa: bump `elliptic-curve` to v0.9.10; use `ScalarBytes` (#284) Bumps the `elliptic-curve` crate dependency to v0.9.10, and uses the newly added `ScalarBytes` type to `impl TryFrom<&[u8]> for Signature<C>`
diff --git a/Cargo.lock b/Cargo.lock index a1251c1..a478141 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -152,9 +152,9 @@ dependencies = [ [[package]] name = "elliptic-curve" -version = "0.9.9" +version = "0.9.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "409dd3e6ac38c26a53efe0e4...
3
8
5
b11cfa335e00af53658b0edf72cf8d1842b90bd4
Tony Arcieri
2021-04-21T19:01:39
ecdsa v0.11.0-pre.5 (#282)
diff --git a/Cargo.lock b/Cargo.lock index d452bad..a1251c1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -106,7 +106,7 @@ dependencies = [ [[package]] name = "ecdsa" -version = "0.11.0-pre.4" +version = "0.11.0-pre.5" dependencies = [ "der", "elliptic-curve", diff --git a/ecdsa/Cargo.toml b/ecdsa/Cargo.toml ind...
3
3
3
7f3aedd6ca1911b0fd720cea73e9d84f81e2e220
Tony Arcieri
2021-04-21T18:30:29
ecdsa: replace CheckSignatureBytes with Order (#281) Uses a generic implementation for checking that the scalars in a signature are in range which doesn't require a curve arithmetic backend.
diff --git a/Cargo.lock b/Cargo.lock index 5ce4dd8..d452bad 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -152,9 +152,9 @@ dependencies = [ [[package]] name = "elliptic-curve" -version = "0.9.8" +version = "0.9.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c1a9176ec191bd6a85fdb3018...
5
42
74
89d4dee65d8c0db5c55a061d98aaea0c75f0a4f0
Tony Arcieri
2021-04-21T16:21:30
ecdsa: bound curve implementations on Order trait (#280) The longer-term goal of this change is to eliminate the `CheckSignatureBytes` trait by having a generic implementation which uses the `Order::ORDER` constant. For now, just ensure that the curve's order is defined.
diff --git a/Cargo.lock b/Cargo.lock index 5f39fd6..5ce4dd8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -152,12 +152,12 @@ dependencies = [ [[package]] name = "elliptic-curve" -version = "0.9.6" +version = "0.9.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "78fff5a5d53c2e45c2772aa...
7
56
53
a5418a56e790df99507732b1c1e7822f910701ce
Tony Arcieri
2021-04-02T18:47:16
ecdsa: use `verifying_key` name consistently (#273) Previously this key type was named `VerifyKey` and was changed to `VerifyingKey` for more consistency with `SigningKey`. However, some usages of `verify_key` were not updated. This commit updates those names to be consistent with the type name.
diff --git a/ecdsa/src/dev.rs b/ecdsa/src/dev.rs index 0419562..239630f 100644 --- a/ecdsa/src/dev.rs +++ b/ecdsa/src/dev.rs @@ -235,7 +235,7 @@ macro_rules! new_wycheproof_test { let y = element_from_padded_slice::<$curve>(wy); let q_encoded: EncodedPoint<$curve> = ...
4
24
24
d7183454a8865c8053782cd0b8118b37c7781d7c
Tony Arcieri
2021-04-02T14:08:24
ecdsa v0.11.0-pre.4 (#272)
diff --git a/Cargo.lock b/Cargo.lock index a8d39aa..cac338e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -107,7 +107,7 @@ dependencies = [ [[package]] name = "ecdsa" -version = "0.11.0-pre.3" +version = "0.11.0-pre.4" dependencies = [ "der", "elliptic-curve", diff --git a/ecdsa/Cargo.toml b/ecdsa/Cargo.toml ind...
3
3
3
91db40fcc658aa742c880c7f6d43a5f78fcaabd7
Tony Arcieri
2021-04-02T13:58:24
ecdsa: fix dev module imports (#271)
diff --git a/ecdsa/src/dev.rs b/ecdsa/src/dev.rs index 68631ac..0419562 100644 --- a/ecdsa/src/dev.rs +++ b/ecdsa/src/dev.rs @@ -92,8 +92,9 @@ macro_rules! new_signing_test { ($curve:path, $vectors:expr) => { use core::convert::TryInto; use $crate::{ - elliptic_curve::{ff::PrimeField, ...
1
6
6
0f06d23cea10f06896a698dcc3293417370ac0e9
Tony Arcieri
2021-04-02T13:41:45
ecdsa v0.11.0-pre.3 (#270)
diff --git a/Cargo.lock b/Cargo.lock index 45bb9a2..a8d39aa 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -107,7 +107,7 @@ dependencies = [ [[package]] name = "ecdsa" -version = "0.11.0-pre.2" +version = "0.11.0-pre.3" dependencies = [ "der", "elliptic-curve", diff --git a/ecdsa/Cargo.toml b/ecdsa/Cargo.toml ind...
3
3
3
d9381f04fd78c74cd3b777224a63211997bd625e
Tony Arcieri
2021-03-26T14:25:22
ecdsa: flatten and simplify public API (#268) Removes superfluous modules from the public API, flattening it down and also removing superfluous re-exports.
diff --git a/ecdsa/src/der.rs b/ecdsa/src/der.rs index 1999c24..37d5993 100644 --- a/ecdsa/src/der.rs +++ b/ecdsa/src/der.rs @@ -1,16 +1,17 @@ //! Support for ECDSA signatures encoded as ASN.1 DER. -use crate::{ - generic_array::{typenum::NonZero, ArrayLength, GenericArray}, - Error, -}; +use crate::Error; us...
4
35
44
6bbe34711eaba991bb2618e303a7ba691b067004
Tony Arcieri
2021-03-26T14:08:49
ecdsa: bump `der` dependency to v0.3 (#267)
diff --git a/Cargo.lock b/Cargo.lock index e2107dc..79924de 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -86,15 +86,6 @@ dependencies = [ "zeroize", ] -[[package]] -name = "der" -version = "0.2.10" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ce93ba4502a73722aa4b955d97f4b1bd26f4f8d...
4
21
27
f0e3871eacac3649133d4e56baddc65a64000d33
Tony Arcieri
2021-03-22T15:19:14
Cargo.lock: bump dependencies (#264)
diff --git a/Cargo.lock b/Cargo.lock index 5ca3073..e2107dc 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,5 +1,7 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. +version = 3 + [[package]] name = "base64ct" version = "1.0.0" @@ -18,9 +20,9 @@ dependencies = [ [[pack...
1
32
22
80f06977889a0cf917e600139a7b276691b11bbc
Tony Arcieri
2021-03-17T19:41:03
ecdsa v0.11.0-pre.2 (#263)
diff --git a/Cargo.lock b/Cargo.lock index ddc8586..2b15d91 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -105,7 +105,7 @@ dependencies = [ [[package]] name = "ecdsa" -version = "0.11.0-pre.1" +version = "0.11.0-pre.2" dependencies = [ "der", "elliptic-curve", diff --git a/ecdsa/Cargo.toml b/ecdsa/Cargo.toml ind...
3
3
3
9df4f307641d6652321a694d8347cdf546ed6d2c
David Drysdale
2021-03-01T14:30:19
ecdsa: add new_wycheproof_test macro for dev (#260)
diff --git a/ecdsa/src/dev.rs b/ecdsa/src/dev.rs index 4de0402..68631ac 100644 --- a/ecdsa/src/dev.rs +++ b/ecdsa/src/dev.rs @@ -188,3 +188,91 @@ macro_rules! new_verification_test { // TODO(tarcieri): test invalid Q, invalid r, invalid m }; } + +/// Define a Wycheproof verification test. +#[macro_export...
1
88
0
385a3b38fdc94af1f41a27cfa921baecbbdc2bbe
Tony Arcieri
2021-02-28T17:01:49
ecdsa: remove useless debug assert (#258) This assertion duplicates an error handling check immediately below it. It's likely a remnant of the retrofitting of the `der` crate for signature parsing.
diff --git a/ecdsa/src/der.rs b/ecdsa/src/der.rs index 3c6e74d..4e7c964 100644 --- a/ecdsa/src/der.rs +++ b/ecdsa/src/der.rs @@ -177,7 +177,6 @@ where let r_range = find_scalar_range(input, r.as_bytes())?; let s_range = find_scalar_range(input, s.as_bytes())?; - debug_assert_eq!(s_range.end, ...
1
0
1
09f6421c3b658bb59b391718dcc0853cee62708f
Tony Arcieri
2021-02-22T22:27:38
Cargo.lock: bump dependencies (#254)
diff --git a/Cargo.lock b/Cargo.lock index 070e560..2b0dc8c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -86,9 +86,9 @@ dependencies = [ [[package]] name = "der" -version = "0.2.7" +version = "0.2.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eeaef572ca60433089d994bca0bef5d728f37d...
1
4
4
4d67c7175166214f7226d67eb89677bdfcbb2965
Tony Arcieri
2021-02-20T16:56:52
Cargo.lock: bump dependencies (#253)
diff --git a/Cargo.lock b/Cargo.lock index 10c2792..070e560 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -51,9 +51,9 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] name = "const-oid" -version = "0.4.1" +version = "0.4.2" source = "registry+https://github.com/rust-lang/c...
1
17
6
fbdc3e647e1031f92a4cd774af4ee4949fe5cff4
Tony Arcieri
2021-02-19T04:52:48
Cargo.lock: bump dependencies (#251)
diff --git a/Cargo.lock b/Cargo.lock index fafae26..10c2792 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -86,9 +86,9 @@ dependencies = [ [[package]] name = "der" -version = "0.2.4" +version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b70f809fb1678da4d5ea334095cbe8d6c64fea...
1
18
18
ed5ba6aeede39f1c0572cc1baaf7c6025d9a7306
rvolgers
2021-02-15T15:44:28
Clarify purpose of FromDigest trait (#244) Co-authored-by: Ronald Volgers <rvolgers@users.noreply.github.com>
diff --git a/ecdsa/src/hazmat.rs b/ecdsa/src/hazmat.rs index e93b4dd..aa275f9 100644 --- a/ecdsa/src/hazmat.rs +++ b/ecdsa/src/hazmat.rs @@ -145,8 +145,12 @@ pub trait DigestPrimitive: Curve { /// Instantiate this type from the output of a digest. /// -/// This can be used for implementing hash-to-scalar (e.g. as i...
1
6
2