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 |
|---|---|---|---|---|---|---|---|
954cc484b85c64c29cf1c7e0885c01dd6d266dbe | Alex | 2021-02-13T15:51:57 | Fix compile error in ed25519 example. (#246) | diff --git a/ed25519/src/lib.rs b/ed25519/src/lib.rs
index b57e70c..3b161e4 100644
--- a/ed25519/src/lib.rs
+++ b/ed25519/src/lib.rs
@@ -56,7 +56,7 @@
//! }
//!
//! pub struct HelloVerifier<V> {
-//! pub verifier: V
+//! pub verify_key: V
//! }
//!
//! impl<V> HelloVerifier<V>
@@ -68,7 +68,7 @@
//! ... | 1 | 2 | 2 |
71c94ee0f061c4d84ac03d05f1b802f8adb5e759 | rvolgers | 2021-02-12T16:00:06 | Change HmacDrbg to support variable output size (#243)
This is simply a matter of iterating the hashing of self.v until
sufficient output bytes have been produced.
This is necessary for the upcoming DSA implementation.
Co-authored-by: Ronald Volgers <rvolgers@users.noreply.github.com> | diff --git a/ecdsa/src/rfc6979.rs b/ecdsa/src/rfc6979.rs
index dd6b9a6..be586d1 100644
--- a/ecdsa/src/rfc6979.rs
+++ b/ecdsa/src/rfc6979.rs
@@ -34,7 +34,9 @@ where
x.zeroize();
loop {
- if let Some(k) = NonZeroScalar::from_repr(hmac_drbg.next()) {
+ let mut tmp = FieldBytes::<C>::default();
+... | 1 | 11 | 8 |
e24ccec8003e5472648ff4f2efcde805f753b53c | Tony Arcieri | 2021-02-11T16:10:31 | ecdsa v0.11.0-pre.1 (#242) | diff --git a/Cargo.lock b/Cargo.lock
index fb91ab1..d2e2094 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -105,7 +105,7 @@ dependencies = [
[[package]]
name = "ecdsa"
-version = "0.11.0-pre"
+version = "0.11.0-pre.1"
dependencies = [
"der",
"elliptic-curve",
diff --git a/ecdsa/Cargo.toml b/ecdsa/Cargo.toml
index... | 3 | 3 | 3 |
3f118b57d0347e7b804fa083e145f015097e5615 | Tony Arcieri | 2021-02-11T15:14:53 | ecdsa: bump `elliptic-curve` crate to v0.9.2 (#241) | diff --git a/Cargo.lock b/Cargo.lock
index d810109..fb91ab1 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -151,9 +151,9 @@ dependencies = [
[[package]]
name = "elliptic-curve"
-version = "0.9.1"
+version = "0.9.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f570dd3a071d4965d83b349aa... | 2 | 6 | 6 |
34e51c43383d5485d17d9a639ce7a4fa5bd8baee | Tony Arcieri | 2021-02-11T14:02:55 | Cargo.lock: bump dependencies (#240) | diff --git a/Cargo.lock b/Cargo.lock
index d345628..d810109 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2,9 +2,9 @@
# It is not intended for manual editing.
[[package]]
name = "base64ct"
-version = "0.1.0"
+version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c502cbac2e4f... | 1 | 8 | 8 |
eaaf5b8699720d9cdc7c5733f35842f8245f11bf | Tony Arcieri | 2021-02-10T19:44:07 | ecdsa: bump `elliptic-curve` dependency to v0.9 (#239) | diff --git a/Cargo.lock b/Cargo.lock
index e4b2c1e..d345628 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -151,8 +151,9 @@ dependencies = [
[[package]]
name = "elliptic-curve"
-version = "0.9.0-pre"
-source = "git+https://github.com/RustCrypto/traits.git#c577e14f887a0f984c6f403617aa02e893536704"
+version = "0.9.0"
+s... | 3 | 5 | 7 |
19558849ad46bd054f2f68faa55f5c28f262f9ff | Tony Arcieri | 2021-02-10T18:16:33 | ecdsa: add `FromDigest` trait (#238)
Adds the `FromDigest` trait, originally from the `elliptic-curve` crate:
https://github.com/RustCrypto/traits/pull/532
Since this trait implements ECDSA-specific concerns, it was removed from
the `elliptic-curve` crate in the above PR to make room for things like
hash-to-cu... | diff --git a/Cargo.lock b/Cargo.lock
index 7f0c664..e4b2c1e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -152,9 +152,8 @@ dependencies = [
[[package]]
name = "elliptic-curve"
version = "0.9.0-pre"
-source = "git+https://github.com/RustCrypto/traits.git#0da78eabf8edeca29ca6ee433274b05ec9356ad6"
+source = "git+https://... | 7 | 84 | 12 |
791eb45da242d4e55226cce14331145edea967b9 | Tony Arcieri | 2021-01-26T21:02:06 | Bump `pkcs8` crate to v0.4 (#234) | diff --git a/Cargo.lock b/Cargo.lock
index 88b83f9..703764e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2,8 +2,9 @@
# It is not intended for manual editing.
[[package]]
name = "base64ct"
-version = "0.0.0"
-source = "git+https://github.com/RustCrypto/utils.git#0fe3e15b868778c92959f3fa03b62b47b6842f60"
+version = "0... | 2 | 16 | 21 |
bbc68d977ddd4a37869ef24ea936c56eda4e8fb8 | Tony Arcieri | 2021-01-22T20:54:48 | Bump `der` and `pkcs8` dependencies (#231) | diff --git a/Cargo.lock b/Cargo.lock
index 94664b9..b23785f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1,5 +1,10 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
+[[package]]
+name = "base64ct"
+version = "0.0.0"
+source = "git+https://github.com/RustCrypto/utils.git#0fe... | 3 | 24 | 21 |
410c6762e1cdfb1d69b726dc68b635e47d4a71c4 | Tony Arcieri | 2021-01-22T02:45:15 | Cargo.lock: bump deps to flat-namespaced `elliptic-curve` crate (#230)
See: https://github.com/RustCrypto/traits/pull/487 | diff --git a/Cargo.lock b/Cargo.lock
index 65f9f32..94664b9 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -46,7 +46,7 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
[[package]]
name = "const-oid"
version = "0.4.1"
-source = "git+https://github.com/RustCrypto/utils.git#39ef46c61f4658e9... | 5 | 9 | 20 |
cc887c7ba68a260f86f8196a862ceb0ae7fbda78 | Tony Arcieri | 2021-01-21T23:58:39 | Cargo.lock: bump deps (#229)
This is mostly to ensure that recent changes to the `elliptic-curve`
crate didn't break anything in the `ecdsa` crate. | diff --git a/Cargo.lock b/Cargo.lock
index b47405a..65f9f32 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -33,15 +33,9 @@ dependencies = [
[[package]]
name = "byteorder"
-version = "1.3.4"
+version = "1.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "08c48aae112d48ed9f069b33538ea9e... | 2 | 28 | 32 |
41a3646229cc4cbf4af3082e4f8f77e5c19d340c | Tony Arcieri | 2021-01-13T14:43:00 | ecdsa: remove FieldBytes bounds (#227)
These are no longer needed as of `ff` v0.9:
https://github.com/zkcrypto/ff/pull/43 | diff --git a/ecdsa/src/hazmat.rs b/ecdsa/src/hazmat.rs
index 34e78e5..88f30c7 100644
--- a/ecdsa/src/hazmat.rs
+++ b/ecdsa/src/hazmat.rs
@@ -40,7 +40,6 @@ use elliptic_curve::{generic_array::ArrayLength, weierstrass::Curve};
pub trait SignPrimitive<C>
where
C: Curve + ProjectiveArithmetic,
- FieldBytes<C>: Fr... | 5 | 22 | 52 |
46e4f3729c61a433b9d509b8af81943c9a7c5b75 | Tony Arcieri | 2021-01-12T22:17:44 | ecdsa: use `der` crate for decoding/encoding signatures (#226)
Renames `ecdsa::asn1::Signature` to `ecdsa::der::Signature`, with the
`ecdsa::der` module now gated under the `der` crate feature.
Uses the newly introduced `BigUInt` type in the `der` crate to handle
parsing the signatures. This consolidates all ASN.... | diff --git a/Cargo.lock b/Cargo.lock
index 53a348f..72c3f8b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -52,7 +52,7 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
[[package]]
name = "const-oid"
version = "0.4.1"
-source = "git+https://github.com/RustCrypto/utils.git#21fe44f750178e02... | 5 | 324 | 441 |
dfd4413482a0eb824b192e7cf1964ff3d53c5a2a | Tony Arcieri | 2021-01-12T16:57:27 | ecdsa: bump `elliptic-curve` to v0.9.0-pre (#225)
Sourced via git using a `patch.crates-io` directive.
Also bumps `signature` to 1.3.x | diff --git a/Cargo.lock b/Cargo.lock
index 80dd868..53a348f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1,14 +1,5 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
-[[package]]
-name = "aead"
-version = "0.3.2"
-source = "registry+https://github.com/rust-lang/crates.io-ind... | 5 | 56 | 277 |
fbb16f7b2f9d20f402e6243964237801046da100 | Tony Arcieri | 2020-12-22T16:01:15 | ecdsa: use the `dev` module from the `elliptic-curve` crate (#218)
The `ExampleCurve` previously defined in this crate for testing has been
extracted into the `elliptic-curve` crate. | diff --git a/Cargo.lock b/Cargo.lock
index ceaaacc..4070fd0 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -104,6 +104,15 @@ dependencies = [
"zeroize",
]
+[[package]]
+name = "der"
+version = "0.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "51f59c66c30bb7445c8320a5f9233e437e3572... | 7 | 35 | 586 |
03dea3b8607d96d0c103c6224cd7f3b95eb821e1 | Tony Arcieri | 2020-12-17T04:35:35 | ecdsa: bump `elliptic-curve` dependency to v0.8 (#215) | diff --git a/Cargo.lock b/Cargo.lock
index 8afec49..8cb247a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -125,9 +125,9 @@ dependencies = [
[[package]]
name = "ecdsa"
-version = "0.10.0-pre"
+version = "0.10.0"
dependencies = [
- "elliptic-curve 0.8.0-pre",
+ "elliptic-curve 0.8.0",
"hex-literal",
"hmac",
"sha... | 2 | 6 | 6 |
dfcbaeca4090f3e933ab3a3ce7e481fdb6a1aef5 | Tony Arcieri | 2020-12-17T03:16:11 | ecdsa v0.10.0-pre (#214) | diff --git a/Cargo.lock b/Cargo.lock
index 2659c59..8afec49 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -125,7 +125,7 @@ dependencies = [
[[package]]
name = "ecdsa"
-version = "0.9.0"
+version = "0.10.0-pre"
dependencies = [
"elliptic-curve 0.8.0-pre",
"hex-literal",
diff --git a/ecdsa/Cargo.toml b/ecdsa/Cargo... | 3 | 3 | 3 |
ffcf74ff0317749ab68641220f1a52f10724736a | Tony Arcieri | 2020-12-17T03:06:30 | ecdsa: bump `elliptic-curve` dependency to v0.8.0-pre (#213) | diff --git a/Cargo.lock b/Cargo.lock
index 112d707..2659c59 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -71,9 +71,9 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
[[package]]
name = "const-oid"
-version = "0.3.3"
+version = "0.4.0"
source = "registry+https://github.com/rust-lang/c... | 4 | 19 | 11 |
6692f6f726ce31099d7dfe26580fd12d64b7cd84 | Tony Arcieri | 2020-12-06T18:03:58 | ecdsa: add MSRV policy to rustdoc (#208) | diff --git a/ecdsa/src/lib.rs b/ecdsa/src/lib.rs
index ff1a08e..c4d48e3 100644
--- a/ecdsa/src/lib.rs
+++ b/ecdsa/src/lib.rs
@@ -1,5 +1,5 @@
//! Elliptic Curve Digital Signature Algorithm (ECDSA) as specified in
-//! [FIPS 186-4][1] (Digital Signature Standard)
+//! [FIPS 186-4] (Digital Signature Standard)
//!
//! ... | 1 | 6 | 3 |
63aeb25a383a4ec8f78980ce8a21db561d8ae360 | Tony Arcieri | 2020-12-06T16:12:32 | ecdsa: minor doc improvements (#207) | diff --git a/ecdsa/src/dev.rs b/ecdsa/src/dev.rs
index 4b17db5..8265947 100644
--- a/ecdsa/src/dev.rs
+++ b/ecdsa/src/dev.rs
@@ -1,4 +1,4 @@
-//! Development-related functionality
+//! Development-related functionality.
pub mod curve;
@@ -29,7 +29,7 @@ pub struct TestVector {
pub s: &'static [u8],
}
-/// D... | 2 | 6 | 5 |
8663641c2c0572ae4dd6f6ef4e9db8589c0984ba | Tony Arcieri | 2020-12-06T14:47:28 | ecdsa: rename `SigningKey::new()` to `::from_bytes` (#205)
More consistent with the rest of the method names in the
`elliptic-curve` crate and `VerifyingKey` | diff --git a/ecdsa/src/sign.rs b/ecdsa/src/sign.rs
index ccded96..1e8c139 100644
--- a/ecdsa/src/sign.rs
+++ b/ecdsa/src/sign.rs
@@ -71,8 +71,7 @@ where
}
/// Initialize signing key from a raw scalar serialized as a byte slice.
- // TODO(tarcieri): PKCS#8 support
- pub fn new(bytes: &[u8]) -> Result<S... | 1 | 1 | 2 |
f07d30b2382f37e096036e2e78586c07eb7c8825 | Tony Arcieri | 2020-12-06T14:36:51 | ecdsa: bump `elliptic-curve` crate to v0.7; MSRV 1.46+ (#204) | diff --git a/Cargo.lock b/Cargo.lock
index a45ece4..6389bca 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -127,7 +127,7 @@ dependencies = [
name = "ecdsa"
version = "0.9.0-pre"
dependencies = [
- "elliptic-curve 0.7.0-pre",
+ "elliptic-curve 0.7.0",
"hex-literal",
"hmac",
"sha2",
@@ -182,8 +182,9 @@ dependencies... | 3 | 5 | 7 |
be52d7c20457d47832a66cb74ec72e946969e6fa | Tony Arcieri | 2020-12-03T03:10:11 | Revert "ecdsa: explicit Copy impl for VerifyKey (#201)" (#202)
This reverts commit 91cb79eddef19bede669f5ad79a1a7deb967706e.
Fixed the root cause upstream in the `elliptic-curve` crate:
https://github.com/RustCrypto/traits/pull/379 | diff --git a/Cargo.lock b/Cargo.lock
index 4a66193..f21e4b9 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -177,7 +177,7 @@ dependencies = [
[[package]]
name = "elliptic-curve"
version = "0.7.0-pre"
-source = "git+https://github.com/RustCrypto/traits#ea5106e0cd0f47a5ee11af0d7313f1f1dc0a5a9f"
+source = "git+https://gith... | 2 | 2 | 12 |
91cb79eddef19bede669f5ad79a1a7deb967706e | Tony Arcieri | 2020-12-03T02:53:51 | ecdsa: explicit Copy impl for VerifyKey (#201)
The derived impl does not have the correct bounds | diff --git a/ecdsa/src/verify.rs b/ecdsa/src/verify.rs
index 3b2a203..55b16b4 100644
--- a/ecdsa/src/verify.rs
+++ b/ecdsa/src/verify.rs
@@ -22,7 +22,7 @@ use elliptic_curve::{
use signature::{digest::Digest, DigestVerifier};
/// ECDSA verify key
-#[derive(Copy, Clone, Debug)]
+#[derive(Clone, Debug)]
pub struct V... | 1 | 11 | 1 |
e6716ab9a87f221763e02192f0d9488924df871f | Tony Arcieri | 2020-12-03T02:39:17 | ecdsa: rename VerifyKey to VerifyingKey (#200)
Per the discussion in #196, renames `VerifyKey` => `VerifyingKey` for
better consistency with `SigningKey`. | diff --git a/ecdsa/src/lib.rs b/ecdsa/src/lib.rs
index 8f78dfc..2f1f2c8 100644
--- a/ecdsa/src/lib.rs
+++ b/ecdsa/src/lib.rs
@@ -85,7 +85,7 @@ pub use sign::SigningKey;
#[cfg(feature = "verify")]
#[cfg_attr(docsrs, doc(cfg(feature = "verify")))]
-pub use verify::VerifyKey;
+pub use verify::VerifyingKey;
#[cfg(fe... | 3 | 27 | 27 |
00feeed4545bee49436e2ed8400d3165562abb01 | Tony Arcieri | 2020-12-03T02:33:03 | ecdsa: simplify VerifyKey trait bounds (#199)
Uses simpler bounds implemented in RustCrypto/traits#378 | diff --git a/Cargo.lock b/Cargo.lock
index b671ce6..4a66193 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -177,7 +177,7 @@ dependencies = [
[[package]]
name = "elliptic-curve"
version = "0.7.0-pre"
-source = "git+https://github.com/RustCrypto/traits#71f6f53f0ac67ac6ba9dfb46aff7eb20df28bafe"
+source = "git+https://gith... | 3 | 50 | 112 |
6c32603bd8ba5ef6dce7c03c57a2aa4c032b9abe | Tony Arcieri | 2020-12-03T01:54:00 | ecdsa: make VerifyKey a newtype of elliptic_curve::PublicKey (#198) | diff --git a/Cargo.lock b/Cargo.lock
index 2a95505..b671ce6 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -177,7 +177,7 @@ dependencies = [
[[package]]
name = "elliptic-curve"
version = "0.7.0-pre"
-source = "git+https://github.com/RustCrypto/traits#ff1371791a77b8163bcf37fcfcaf6ceb595b133c"
+source = "git+https://gith... | 3 | 86 | 68 |
90607f556be8f57e0a87d22ecd91e71895aee94d | Tony Arcieri | 2020-12-03T00:39:44 | ecdsa: make SigningKey a newtype of elliptic_curve::SecretKey (#197)
The latter wraps up many of the concerns of secret key management,
including computing public keys, encoding/decoding, and zeroization. | diff --git a/Cargo.lock b/Cargo.lock
index 48c72cf..2a95505 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -177,7 +177,7 @@ dependencies = [
[[package]]
name = "elliptic-curve"
version = "0.7.0-pre"
-source = "git+https://github.com/RustCrypto/traits#c32065643e207ac4d0bbec8da4847afd02322cb8"
+source = "git+https://gith... | 2 | 36 | 63 |
c7f5009df592a8542f010d3608665564258d4934 | Tony Arcieri | 2020-11-11T15:28:33 | ecdsa: `PublicKey<C>` <-> `VerifyKey<C>` conversions (#195) | diff --git a/ecdsa/Cargo.toml b/ecdsa/Cargo.toml
index e76069b..ce1a272 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.7.0-pre", defa... | 2 | 73 | 3 |
7b37895503acf0d2eb1978c16ee0d28df3ba5b3b | David Drysdale | 2020-10-20T12:34:27 | Extra ASN.1 validity checks (#192)
* ecdsa: add test for too-short ASN1 signatures
* ecdsa: check minimum ASN.1-encoded signature length
* ecdsa: add test for non-DER ASN1 signature
This is a minimal test that's equivalent to:
https://github.com/google/wycheproof/blob/2196000605e4/testvectors/ecdsa_secp256k1... | diff --git a/ecdsa/src/asn1.rs b/ecdsa/src/asn1.rs
index b35e1b6..3508f3b 100644
--- a/ecdsa/src/asn1.rs
+++ b/ecdsa/src/asn1.rs
@@ -192,6 +192,11 @@ where
// encoding) so the resulting raw signature will have length
// at most 254 bytes.
//
+ // A SEQUENCE + INTEGER + INTEGER imply a ... | 1 | 50 | 0 |
e1e8fa24d2858c79d9ea1dd9392510df1f5d7e44 | Tony Arcieri | 2020-10-15T17:17:23 | ecdsa: add more toplevel rustdoc (#189)
Link to `ring-compat` crate. | diff --git a/ecdsa/src/lib.rs b/ecdsa/src/lib.rs
index 720a06a..06d8927 100644
--- a/ecdsa/src/lib.rs
+++ b/ecdsa/src/lib.rs
@@ -12,15 +12,28 @@
//! - ECDSA signature types alone which can be used to provide interoperability
//! between other crates that provide an ECDSA implementation:
//! - [`p384`] (NIST P-38... | 1 | 17 | 4 |
14c75ee07f01c6e5abc77fe9746a3b7a6ecab52f | Tony Arcieri | 2020-10-12T14:00:15 | ed25519: add `ring-compat` usage example (#187)
Demonstrates how to use the `ed25519` crate with `ring-compat` | diff --git a/Cargo.lock b/Cargo.lock
index 350bb9d..d989b67 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1,5 +1,14 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
+[[package]]
+name = "aead"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-ind... | 3 | 294 | 12 |
8a5e64c10ec089e601f3adba720710276b4ead8a | Tony Arcieri | 2020-10-09T15:18:37 | ecdsa: fix default impl of CheckSignatureBytes (#184)
The logic was reversed and it was rejecting valid signatures | diff --git a/ecdsa/src/lib.rs b/ecdsa/src/lib.rs
index 96ec8e4..a558684 100644
--- a/ecdsa/src/lib.rs
+++ b/ecdsa/src/lib.rs
@@ -303,8 +303,9 @@ where
/// (e.g. accessors for the `r` and `s` components)
fn check_signature_bytes(bytes: &SignatureBytes<Self>) -> Result<(), Error> {
// Ensure `r` and `s... | 1 | 2 | 1 |
96ffe73645d63a1ce98c0f89c6e8790f2d7883f5 | Tony Arcieri | 2020-10-08T20:20:10 | ecdsa: work around nightly-2020-10-06 breakage (#180)
The `ecdsa` crate no longer builds on `nightly`, possibly due to:
https://github.com/rust-lang/rust/issues/77638
Unfortunately this means rustdoc builds on https://docs.rs fail!
This commit works around the issue. | diff --git a/ecdsa/src/sign.rs b/ecdsa/src/sign.rs
index cad20dc..439dae6 100644
--- a/ecdsa/src/sign.rs
+++ b/ecdsa/src/sign.rs
@@ -86,9 +86,9 @@ where
where
AffinePoint<C>: Clone + Debug,
{
- VerifyKey {
- public_key: (C::ProjectivePoint::generator() * &self.secret_scalar).to_affi... | 1 | 3 | 3 |
29f2d5a45775e00241cd9acea46e83c547baf52e | Tony Arcieri | 2020-10-08T20:17:54 | ed25519: fix tarpaulin (#181)
The presence of the `intra_doc_link_resolution_failure` lint now breaks
cargo-tarpaulin:
https://github.com/RustCrypto/signatures/pull/180/checks?check_run_id=1228016160 | diff --git a/ed25519/src/lib.rs b/ed25519/src/lib.rs
index 049b7a6..2921786 100644
--- a/ed25519/src/lib.rs
+++ b/ed25519/src/lib.rs
@@ -177,12 +177,7 @@
html_root_url = "https://docs.rs/ed25519/1.0.2"
)]
#![forbid(unsafe_code)]
-#![warn(
- missing_docs,
- rust_2018_idioms,
- unused_qualifications,
- ... | 1 | 1 | 6 |
833271153743e2394299063f7ea3aa8f10c02b85 | Tony Arcieri | 2020-09-27T16:05:09 | ecdsa: have RecoverableSignPrimitive return a bool flag (#175)
...as opposed to using a separate associated type.
As it were, this is how the method is documented. It was changed at some
point but the comments were never updated. | diff --git a/ecdsa/src/hazmat.rs b/ecdsa/src/hazmat.rs
index 82560fc..34e78e5 100644
--- a/ecdsa/src/hazmat.rs
+++ b/ecdsa/src/hazmat.rs
@@ -60,40 +60,44 @@ where
/// [`SignPrimitive`] for signature implementations that can provide public key
/// recovery implementation.
+#[cfg(feature = "arithmetic")]
+#[cfg_attr(... | 1 | 15 | 11 |
0993b4b343e03bee65e8de4973311fdd45421360 | Tony Arcieri | 2020-09-27T15:52:20 | Revert "ecdsa: remove RecoverableSignPrimitive" (#174)
This reverts commit a03cda2372b3d931f44db2c65634c89441e9204c (#146)
Revives `RecoverableSignPrimitive` since there have been some
requests/use cases for it.
First, there was interest in supporting such a primitive for `p256`:
https://github.com/RustCrypt... | diff --git a/ecdsa/src/hazmat.rs b/ecdsa/src/hazmat.rs
index 7c5b783..82560fc 100644
--- a/ecdsa/src/hazmat.rs
+++ b/ecdsa/src/hazmat.rs
@@ -58,6 +58,45 @@ where
) -> Result<Signature<C>, Error>;
}
+/// [`SignPrimitive`] for signature implementations that can provide public key
+/// recovery implementation.
+pu... | 1 | 39 | 0 |
aada23c66be38d8f54e9d8a5718d31ffc837bdf1 | Tony Arcieri | 2020-09-24T02:34:13 | ecdsa: conditionally make VerifyKey<C> a Copy type (#171)
...in cases where AffinePoint<C> is a `Copy` type | diff --git a/ecdsa/src/verify.rs b/ecdsa/src/verify.rs
index ad4d629..f1b17ca 100644
--- a/ecdsa/src/verify.rs
+++ b/ecdsa/src/verify.rs
@@ -129,6 +129,15 @@ where
}
}
+impl<C> Copy for VerifyKey<C>
+where
+ C: Curve + ProjectiveArithmetic,
+ FieldBytes<C>: From<Scalar<C>> + for<'r> From<&'r Scalar<C>>,
+... | 1 | 9 | 0 |
61f078c9eb60fe7f90bac3e8b89898c0beca12c7 | Tony Arcieri | 2020-09-11T20:10:40 | ecdsa: bump elliptic-curve dependency to v0.6 (#165)
Release notes: https://github.com/RustCrypto/traits/pull/302 | diff --git a/Cargo.lock b/Cargo.lock
index 58eda9f..70c8bd0 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -89,8 +89,9 @@ dependencies = [
[[package]]
name = "elliptic-curve"
-version = "0.5.0"
-source = "git+https://github.com/RustCrypto/traits#bba389743c8156036ccd4bbb73755d8bb22fb796"
+version = "0.6.0"
+source = "r... | 3 | 4 | 6 |
80eb3b49e258ccb458f1718226d5d6149a421a46 | Tony Arcieri | 2020-09-11T15:13:33 | ecdsa: refactor ProjectiveArithmetic trait (#164)
Accompanying changes for RustCrypto/traits#300. | diff --git a/Cargo.lock b/Cargo.lock
index 7b42449..58eda9f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -90,7 +90,7 @@ dependencies = [
[[package]]
name = "elliptic-curve"
version = "0.5.0"
-source = "git+https://github.com/RustCrypto/traits#a9bd70b727bf4cf069fa3dda5661ed5e1b8286fa"
+source = "git+https://github.com... | 8 | 271 | 162 |
1a3e4944ff73a578f85c0b4063ed285647770071 | Tony Arcieri | 2020-09-10T04:33:23 | ecdsa: additional FromFieldBytes updates (#163) | diff --git a/ecdsa/src/dev.rs b/ecdsa/src/dev.rs
index 105a28c..ca5adf3 100644
--- a/ecdsa/src/dev.rs
+++ b/ecdsa/src/dev.rs
@@ -44,14 +44,17 @@ macro_rules! new_signing_test {
#[test]
fn ecdsa_signing() {
for vector in $vectors {
- let d = <$curve as Arithmetic>::Scalar::f... | 2 | 19 | 14 |
bad467693da023c2489e9246a949dd7dd04c4c71 | Tony Arcieri | 2020-09-10T04:18:02 | ecdsa: FromFieldBytes updates (#162)
See: RustCrypto/traits#298 | diff --git a/Cargo.lock b/Cargo.lock
index 200a98d..7b42449 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -90,7 +90,7 @@ dependencies = [
[[package]]
name = "elliptic-curve"
version = "0.5.0"
-source = "git+https://github.com/RustCrypto/traits#7dd78e0097bcc9a5adb84acf043f6e11e33ceacc"
+source = "git+https://github.com... | 6 | 20 | 24 |
acd8c3f82a889293fc0e546455a8da68346241e2 | Tony Arcieri | 2020-09-10T00:14:56 | ecdsa: SecretKey updates (#161)
See: RustCrypto/traits#297 | diff --git a/Cargo.lock b/Cargo.lock
index 28ea364..200a98d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -12,9 +12,9 @@ dependencies = [
[[package]]
name = "bitvec"
-version = "0.18.1"
+version = "0.18.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8c1f0df4bb4c441080e98d6ea2dc3281f... | 3 | 23 | 10 |
84e133fc954af3fe75757be1bf8c666e51aedd17 | Tony Arcieri | 2020-09-09T17:13:53 | ecdsa: rename ElementBytes => FieldBytes (#160)
See: RustCrypto/traits#296 | diff --git a/Cargo.lock b/Cargo.lock
index e6dec56..28ea364 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -90,7 +90,7 @@ dependencies = [
[[package]]
name = "elliptic-curve"
version = "0.5.0"
-source = "git+https://github.com/RustCrypto/traits#a866a23ab066bc89d000f0931dec9f915d6a8986"
+source = "git+https://github.com... | 5 | 19 | 19 |
2fb7d2ae73b5edce854f7604cbd3e3157282b2e8 | Tony Arcieri | 2020-09-09T15:42:39 | ecdsa: remove `Generate` trait (#159)
Corresponding change for RustCrypto/traits#295. | diff --git a/Cargo.lock b/Cargo.lock
index 883f625..e6dec56 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -90,7 +90,7 @@ dependencies = [
[[package]]
name = "elliptic-curve"
version = "0.5.0"
-source = "git+https://github.com/RustCrypto/traits#548e11779ea85d411daa39214afcd7cc6c72c2b8"
+source = "git+https://github.com... | 3 | 9 | 25 |
e6151cdfaf003fa350bc1a1d5146d31b6c311518 | Tony Arcieri | 2020-09-09T04:20:42 | ecdsa: rename FieldBits => ScalarBits (#158)
See RustCrypto/traits#294 | diff --git a/Cargo.lock b/Cargo.lock
index 7191294..883f625 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -90,7 +90,7 @@ dependencies = [
[[package]]
name = "elliptic-curve"
version = "0.5.0"
-source = "git+https://github.com/RustCrypto/traits#59e67e05cb30194e1af8aa81a30fd33872d904a6"
+source = "git+https://github.com... | 2 | 5 | 4 |
13f9d488e11362df794c348217eed77f1256b1e5 | Tony Arcieri | 2020-09-09T03:22:31 | ecdsa: fix ReprBits for ExampleCurve::Scalar (#157) | diff --git a/ecdsa/src/dev/curve.rs b/ecdsa/src/dev/curve.rs
index 77da29c..594b5b2 100644
--- a/ecdsa/src/dev/curve.rs
+++ b/ecdsa/src/dev/curve.rs
@@ -100,7 +100,7 @@ impl Field for Scalar {
impl PrimeField for Scalar {
type Repr = ElementBytes;
- type ReprBits = usize;
+ type ReprBits = [u64; 4];
... | 1 | 1 | 1 |
d1a8f0812db4f09e75e5171b182e4b9b002d9d1d | Tony Arcieri | 2020-09-08T19:13:57 | Use subtle 2.3's From<CtOption<T>> impl on Option<T> (#155) | diff --git a/Cargo.lock b/Cargo.lock
index feb1d4b..4aaf672 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -79,7 +79,7 @@ dependencies = [
[[package]]
name = "elliptic-curve"
version = "0.5.0"
-source = "git+https://github.com/RustCrypto/traits#80abd0a2e92202915d853cf644ec8de50c2c3324"
+source = "git+https://github.com... | 2 | 8 | 13 |
1b54c722c4292222b5c603c657db7891785de226 | Tony Arcieri | 2020-09-04T14:55:05 | ecdsa: remove `rand` feature (#154)
Making it a hard dependency | diff --git a/ecdsa/src/sign.rs b/ecdsa/src/sign.rs
index 038dbf0..8d93a54 100644
--- a/ecdsa/src/sign.rs
+++ b/ecdsa/src/sign.rs
@@ -12,20 +12,12 @@ use crate::{
use core::convert::TryInto;
use elliptic_curve::{
generic_array::ArrayLength, ops::Invert, scalar::NonZeroScalar, weierstrass::Curve,
- zeroize::Zer... | 1 | 3 | 16 |
7f41e1ed5f8e84cb45c1f951136bb85696b03e7d | Tony Arcieri | 2020-09-04T14:41:43 | ecdsa: updates for `group` crate (#153)
See RustCrypto/traits#287 | diff --git a/Cargo.lock b/Cargo.lock
index 6ca7a58..feb1d4b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -79,15 +79,28 @@ dependencies = [
[[package]]
name = "elliptic-curve"
version = "0.5.0"
-source = "git+https://github.com/RustCrypto/traits#3df75fcbb642248b6509cde13b8753e695b3f19c"
+source = "git+https://github.c... | 3 | 28 | 4 |
5046c9244904a8a6f0200d1c89024199c17e7582 | Tony Arcieri | 2020-09-04T00:32:17 | ecdsa: update `dev` module with #151-related changes (#152) | diff --git a/ecdsa/src/dev.rs b/ecdsa/src/dev.rs
index 5670194..b99e5fd 100644
--- a/ecdsa/src/dev.rs
+++ b/ecdsa/src/dev.rs
@@ -55,8 +55,8 @@ macro_rules! new_signing_test {
let sig = d.try_sign_prehashed(&k, &z).unwrap();
- assert_eq!(vector.r, sig.r().as_slice());
- ... | 1 | 9 | 6 |
473af256be349837932b32ac978fe4fa54f05eb6 | Tony Arcieri | 2020-09-04T00:00:26 | ecdsa: add CheckSignatureBytes trait + NonZeroScalar components (#151)
Adds a `CheckSignatureBytes` trait with a default impl that ensures
neither the `r` nor `s` components of a signature are all-zero.
Includes a blanket impl of `CheckSignatureBytes` for all curves with
the `Arithmetic` trait defined (and thus a... | diff --git a/ecdsa/src/asn1.rs b/ecdsa/src/asn1.rs
index 89e9ed0..b35e1b6 100644
--- a/ecdsa/src/asn1.rs
+++ b/ecdsa/src/asn1.rs
@@ -15,7 +15,7 @@ use core::{
fmt,
ops::{Add, Range},
};
-use elliptic_curve::{consts::U9, weierstrass::Curve, ElementBytes};
+use elliptic_curve::{consts::U9, weierstrass::Curve};... | 3 | 106 | 37 |
bddc23dc4af8f69c5f5b32a8cd950f0983e04e93 | Tony Arcieri | 2020-09-03T22:14:31 | ecdsa: add `alloc` feature (#150)
Adds a basic `alloc` feature which enables a `to_bytes()` method on
`asn1::Signature`. | diff --git a/ecdsa/Cargo.toml b/ecdsa/Cargo.toml
index d5293ac..89d2d5e 100644
--- a/ecdsa/Cargo.toml
+++ b/ecdsa/Cargo.toml
@@ -24,12 +24,13 @@ sha2 = { version = "0.9", default-features = false }
[features]
default = ["digest"]
+alloc = []
dev = ["digest", "zeroize"]
digest = ["elliptic-curve/digest", "signatur... | 3 | 20 | 2 |
2be4bd5d19de4f4caf88119a6a4e2400a7da3570 | Tony Arcieri | 2020-09-03T22:03:59 | ecdsa: use impl Into<ElementBytes> bounds on Signature::from_scalars (#149) | diff --git a/ecdsa/src/lib.rs b/ecdsa/src/lib.rs
index 066b171..b905d55 100644
--- a/ecdsa/src/lib.rs
+++ b/ecdsa/src/lib.rs
@@ -67,7 +67,7 @@ use core::{
ops::Add,
};
use elliptic_curve::{Arithmetic, ElementBytes, FromBytes};
-use generic_array::{typenum::Unsigned, ArrayLength, GenericArray};
+use generic_array... | 1 | 7 | 8 |
b724ece13a0b39e8a8cc39cb0a2adfe366d8f44e | Tony Arcieri | 2020-09-03T20:35:41 | ecdas: derive Clone, Debug, Eq, and Ord on VerifyKey (#148) | diff --git a/ecdsa/src/verify.rs b/ecdsa/src/verify.rs
index c564f8e..a5b1770 100644
--- a/ecdsa/src/verify.rs
+++ b/ecdsa/src/verify.rs
@@ -21,6 +21,7 @@ use elliptic_curve::{
use signature::{digest::Digest, DigestVerifier};
/// ECDSA verify key
+#[derive(Clone, Debug, Eq, PartialEq, PartialOrd, Ord)]
pub struct ... | 1 | 1 | 0 |
e8b7f6c363bc729eaa1d3a4efa5be9275279298a | Tony Arcieri | 2020-09-03T14:33:17 | ecdsa: update `from_affine_coordinates` name (#147) | diff --git a/ecdsa/src/dev.rs b/ecdsa/src/dev.rs
index b388929..5670194 100644
--- a/ecdsa/src/dev.rs
+++ b/ecdsa/src/dev.rs
@@ -78,7 +78,7 @@ macro_rules! new_verification_test {
#[test]
fn ecdsa_verify_success() {
for vector in $vectors {
- let q_encoded = EncodedPoint::f... | 1 | 2 | 2 |
c22624e8fb3325e7e156b336193ae811f9270e3c | Tony Arcieri | 2020-09-02T23:57:17 | ecdsa: remove RecoverableSignPrimitive (#146)
This is really a concern of the `k256` crate and isn't helpful to
generalize to other curves. | diff --git a/ecdsa/src/hazmat.rs b/ecdsa/src/hazmat.rs
index 9184625..3a8ea33 100644
--- a/ecdsa/src/hazmat.rs
+++ b/ecdsa/src/hazmat.rs
@@ -43,45 +43,6 @@ where
) -> Result<Signature<C>, Error>;
}
-/// [`SignPrimitive`] for signature implementations that can provide public key
-/// recovery implementation.
-pu... | 1 | 0 | 39 |
ff2b61de5c5fe0621387b4e52e31a36793d3ec1b | Tony Arcieri | 2020-09-02T22:35:05 | ecdsa: impl Generate for SigningKey (#145) | diff --git a/ecdsa/src/sign.rs b/ecdsa/src/sign.rs
index 81b2f43..038dbf0 100644
--- a/ecdsa/src/sign.rs
+++ b/ecdsa/src/sign.rs
@@ -20,9 +20,12 @@ use signature::{
};
#[cfg(feature = "rand")]
-use signature::{
- rand_core::{CryptoRng, RngCore},
- RandomizedDigestSigner, RandomizedSigner,
+use {
+ elliptic... | 1 | 21 | 3 |
1c2c1fc271916e1ca5d7068ed444f689f2355f18 | Tony Arcieri | 2020-09-02T22:03:22 | ecdsa: impl From<&VerifyKey<C>> for EncodedPoint<C> (#144) | diff --git a/ecdsa/src/verify.rs b/ecdsa/src/verify.rs
index 3353134..c564f8e 100644
--- a/ecdsa/src/verify.rs
+++ b/ecdsa/src/verify.rs
@@ -1,4 +1,4 @@
-//! ECDSA verify key. Generic over elliptic curves.
+//! ECDSA verification key (i.e. public key). Generic over elliptic curves.
//!
//! Requires an [`elliptic_curv... | 1 | 16 | 1 |
50f482bdccc97782a75ab510edf5c676bf51cc8b | Tony Arcieri | 2020-09-02T20:21:53 | ecdsa: add serialization methods to SigningKey/VerifyKey (#143) | diff --git a/ecdsa/src/sign.rs b/ecdsa/src/sign.rs
index 0b2d100..81b2f43 100644
--- a/ecdsa/src/sign.rs
+++ b/ecdsa/src/sign.rs
@@ -12,7 +12,7 @@ use crate::{
use core::convert::TryInto;
use elliptic_curve::{
generic_array::ArrayLength, ops::Invert, scalar::NonZeroScalar, weierstrass::Curve,
- zeroize::Zeroi... | 2 | 21 | 8 |
73678f33fc4647752c30671d1118a7eb6d6885d5 | Tony Arcieri | 2020-09-02T19:34:21 | ecdsa: fix Generator import in `sign` module (#142) | diff --git a/ecdsa/src/sign.rs b/ecdsa/src/sign.rs
index a791b24..0b2d100 100644
--- a/ecdsa/src/sign.rs
+++ b/ecdsa/src/sign.rs
@@ -11,8 +11,8 @@ use crate::{
};
use core::convert::TryInto;
use elliptic_curve::{
- generic_array::ArrayLength, ops::Invert, point::Generator, scalar::NonZeroScalar,
- weierstrass:... | 1 | 3 | 3 |
a88aca8322560d165777b2566c9323c7f51ef5f1 | Tony Arcieri | 2020-09-02T19:28:09 | ecdsa: add SigningKey::verify_key and From conversion (#141) | diff --git a/Cargo.lock b/Cargo.lock
index 6f23f55..6ca7a58 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -79,7 +79,7 @@ dependencies = [
[[package]]
name = "elliptic-curve"
version = "0.5.0"
-source = "git+https://github.com/RustCrypto/traits#b9f71bd73969649a34d46230900fd3f9ab6b1340"
+source = "git+https://github.com... | 3 | 28 | 4 |
bca34ea27f1d8bb19767d5afb436949636ed3825 | Tony Arcieri | 2020-09-02T16:34:19 | ecdsa: compression trait fixups (#138) | diff --git a/Cargo.lock b/Cargo.lock
index 0b2a1c2..6f23f55 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -79,7 +79,7 @@ dependencies = [
[[package]]
name = "elliptic-curve"
version = "0.5.0"
-source = "git+https://github.com/RustCrypto/traits#a85525d61e1d882d12a4c00387655dded76fd0c2"
+source = "git+https://github.com... | 3 | 13 | 25 |
416e6cc79366a2b7ddc52c98b8ee7bdfb33d9ff8 | Tony Arcieri | 2020-09-02T15:27:58 | ecdsa: rename Curve::ElementSize => FieldSize (#137)
See: https://github.com/RustCrypto/traits/pull/282 | diff --git a/Cargo.lock b/Cargo.lock
index 2101151..0b2a1c2 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -79,7 +79,7 @@ dependencies = [
[[package]]
name = "elliptic-curve"
version = "0.5.0"
-source = "git+https://github.com/RustCrypto/traits#abff234bfe0ced9254615dc608ece09619a8db38"
+source = "git+https://github.com... | 8 | 39 | 39 |
7974228f83970bfc2f80e0a436015fc3cb99b9ad | Tony Arcieri | 2020-09-02T02:27:19 | ecdsa: add RFC6979 test (plus `dev::curve` module) (#136)
Adds a test that the RFC6979 implementation produces the correct
ephemeral scalar (`k`) for the test vector in RFC 6979 Appendix 2.5:
https://tools.ietf.org/html/rfc6979#appendix-A.2.5
This unfortunately requires basic scalar support, as RFC6979 uses
re... | diff --git a/Cargo.lock b/Cargo.lock
index 248a4ac..2101151 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -10,12 +10,33 @@ dependencies = [
"serde",
]
+[[package]]
+name = "block-buffer"
+version = "0.9.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4152116fd6e9dadb291ae18fc1ec3575... | 5 | 281 | 2 |
de67a5244da7cd9d3836b852dd6b7f71104de736 | Tony Arcieri | 2020-09-01T23:53:08 | ecdsa: add Signer::from_bytes method (#135) | diff --git a/ecdsa/src/signer.rs b/ecdsa/src/signer.rs
index 4e073be..059058d 100644
--- a/ecdsa/src/signer.rs
+++ b/ecdsa/src/signer.rs
@@ -11,6 +11,7 @@ use crate::{
hazmat::{DigestPrimitive, SignPrimitive},
Error, Signature, SignatureSize,
};
+use core::convert::TryInto;
use elliptic_curve::{
generi... | 1 | 14 | 3 |
1ed8c2f8a2bca42fa25372876b23ab3b3be2d7a0 | Tony Arcieri | 2020-09-01T14:38:21 | ecdsa: use FromDigest trait; RFC6979 fixups (#134)
- Uses the `FromDigest` trait to automatically convert message digests
into a `C::Scalar` value
- Updates `SignPrimitive` and `VerifyPrimitive` to accept a scalar
- Updates the `dev` module accordingly with the above
- Exposes the `ecdsa::signer::rfc6979` module... | diff --git a/ecdsa/src/dev.rs b/ecdsa/src/dev.rs
index 8c28387..20221de 100644
--- a/ecdsa/src/dev.rs
+++ b/ecdsa/src/dev.rs
@@ -31,19 +31,28 @@ pub struct TestVector {
#[macro_export]
#[cfg_attr(docsrs, doc(cfg(feature = "dev")))]
macro_rules! new_signing_test {
- ($vectors:expr) => {
+ ($curve:path, $vectors... | 6 | 88 | 82 |
66c939312f3fd6a9160f69a7edd51b4741c3123c | Tony Arcieri | 2020-08-31T19:19:36 | ecdsa: implement RFC6979 ephemeral scalar generation (#133)
Adds a deterministic signing mode based on RFC6979.
Modifies the existing `RandomizedDigestSigner` and `RandomizedSigner`
impls to also use an RFC6979-style derivation, but supplying added
entropy derived from a provided RNG, per an RFC6979 variant descr... | diff --git a/Cargo.lock b/Cargo.lock
index f3febdb..248a4ac 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -16,6 +16,16 @@ version = "1.3.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "08c48aae112d48ed9f069b33538ea9e3e90aa263cfa3d1c24309612b1f7472de"
+[[package]]
+name = "crypto-mac"
+... | 4 | 215 | 26 |
352631b07ddec1529702624c19bb40822dad5a20 | Tony Arcieri | 2020-08-25T18:32:31 | ecdsa: fix tests (#132) | diff --git a/ecdsa/src/dev.rs b/ecdsa/src/dev.rs
index a3161cc..8c28387 100644
--- a/ecdsa/src/dev.rs
+++ b/ecdsa/src/dev.rs
@@ -33,7 +33,7 @@ pub struct TestVector {
macro_rules! new_signing_test {
($vectors:expr) => {
use core::convert::TryInto;
- use $crate::{elliptic_curve::weierstrass::Uncomp... | 1 | 9 | 5 |
ae1062a4a78e34f15113b44c80a75fa609a223c9 | Tony Arcieri | 2020-08-24T16:25:20 | ecdsa: use newly refactored sec1::EncodedPoint (#131)
Uses the new `sec1::EncodedPoint` type introduced in
RustCrypto/traits#264 | diff --git a/Cargo.lock b/Cargo.lock
index 7c7407a..f3febdb 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -45,8 +45,7 @@ dependencies = [
[[package]]
name = "elliptic-curve"
version = "0.5.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9abe4578ed343c7a2c9d617cd2b1895ba0a87a6a4dee97bd... | 5 | 14 | 26 |
b0050876fe954a2898380cfe5ff97ca78a440cea | Tony Arcieri | 2020-08-12T03:15:22 | ecdsa: add conditional PrehashSignature impl for asn1::Signature (#128)
Requires the `digest` and `hazmat` features | diff --git a/ecdsa/src/asn1.rs b/ecdsa/src/asn1.rs
index a8a1ace..8bf653f 100644
--- a/ecdsa/src/asn1.rs
+++ b/ecdsa/src/asn1.rs
@@ -235,6 +235,17 @@ where
}
}
+#[cfg(all(feature = "digest", feature = "hazmat"))]
+impl<C> signature::PrehashSignature for Signature<C>
+where
+ C: Curve + crate::hazmat::DigestP... | 1 | 11 | 0 |
e702e70a944c1e0516da9d4ca54409485f389799 | Tony Arcieri | 2020-08-11T00:19:12 | ecdsa/Cargo.toml: use `all-features = true` on docs.rs (#126)
Originally this was trying to hide the `hazmat` module, but several
features have been added since then (`rand`, `signer`, `verifier`) which
need the `hazmat` module enabled. | diff --git a/ecdsa/Cargo.toml b/ecdsa/Cargo.toml
index c7214c6..08b21cd 100644
--- a/ecdsa/Cargo.toml
+++ b/ecdsa/Cargo.toml
@@ -34,5 +34,5 @@ verifier = ["digest", "hazmat"]
zeroize = ["elliptic-curve/zeroize"]
[package.metadata.docs.rs]
-features = ["digest", "std"]
+all-features = true
rustdoc-args = ["--cfg", ... | 1 | 1 | 1 |
8830e61967525aa1424114a9351da6a0514feed1 | Tony Arcieri | 2020-08-10T23:00:33 | ecdsa: Bump `elliptic-curve` crate to v0.5 release (#123)
Release notes: https://github.com/RustCrypto/traits/pull/254 | diff --git a/Cargo.lock b/Cargo.lock
index aafa185..b34fce2 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -44,8 +44,9 @@ dependencies = [
[[package]]
name = "elliptic-curve"
-version = "0.5.0-pre"
-source = "git+https://github.com/RustCrypto/traits#048fb8f85a9b4cbbb29a2302a9a3fc596526fdcf"
+version = "0.5.0"
+source ... | 4 | 10 | 10 |
5bd96712bba5b667bd532c68400bd604f4d06437 | Tony Arcieri | 2020-08-07T20:26:43 | ecdsa: add associated sig type to RecoverableSignPrimitive (#120)
Adds an associated `RecoverableSignature` type to
`RecoverableSignPrimitive`.
This allows the primitive to handle construction of the full signature,
which makes it possible to add normalization at the generic
`ecdsa::signer::Signer` level. | diff --git a/ecdsa/src/hazmat.rs b/ecdsa/src/hazmat.rs
index 0c157f6..b63ffc5 100644
--- a/ecdsa/src/hazmat.rs
+++ b/ecdsa/src/hazmat.rs
@@ -52,6 +52,9 @@ where
C: Curve + Arithmetic,
SignatureSize<C>: ArrayLength<u8>,
{
+ /// Type for recoverable signatures
+ type RecoverableSignature: signature::Sign... | 1 | 6 | 3 |
9d8ca6539e416f72bfc611f44e3305940fb207a5 | Bogdan Opanchuk | 2020-08-06T22:36:19 | Make `normalize_low()` pure (#119) | diff --git a/ecdsa/src/lib.rs b/ecdsa/src/lib.rs
index a4992f2..0707572 100644
--- a/ecdsa/src/lib.rs
+++ b/ecdsa/src/lib.rs
@@ -155,10 +155,10 @@ where
// Not constant time, but we're operating on public values
if s_option.is_some().into() {
- let mut s = s_option.unwrap();
+ ... | 1 | 10 | 6 |
a420b3346a7aa3428bd3f52107286b031c56dca1 | Tony Arcieri | 2020-08-05T03:14:11 | ecdsa: have NormalizeLow return a bool (#118)
...to indicate whether normalization occurred or not, and have this
propagate via `Signature::normalize_s`. | diff --git a/ecdsa/src/lib.rs b/ecdsa/src/lib.rs
index 7335bc6..a4992f2 100644
--- a/ecdsa/src/lib.rs
+++ b/ecdsa/src/lib.rs
@@ -149,16 +149,20 @@ 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 | 9 | 5 |
b80b16a4d725038c98b4619832667fc7411fca6f | Tony Arcieri | 2020-08-05T03:02:27 | ecdsa: impl Copy on Signature (#117)
...conditionally when the underlying GenericArray supports Copy | diff --git a/ecdsa/src/lib.rs b/ecdsa/src/lib.rs
index 70cbfff..7335bc6 100644
--- a/ecdsa/src/lib.rs
+++ b/ecdsa/src/lib.rs
@@ -183,6 +183,13 @@ where
}
}
+impl<C: Curve> Copy for Signature<C>
+where
+ SignatureSize<C>: ArrayLength<u8>,
+ <SignatureSize<C> as ArrayLength<u8>>::ArrayType: Copy,
+{
+}
+
i... | 1 | 7 | 0 |
cc507b36999192655c724ae53c2d2d6d1cbeb905 | Tony Arcieri | 2020-08-05T02:44:46 | ecdsa: remove unused generic parameter (#116) | diff --git a/ecdsa/src/lib.rs b/ecdsa/src/lib.rs
index d2adbed..70cbfff 100644
--- a/ecdsa/src/lib.rs
+++ b/ecdsa/src/lib.rs
@@ -142,7 +142,7 @@ where
impl<C> Signature<C>
where
C: Curve + Arithmetic,
- C::Scalar: NormalizeLow<C>,
+ C::Scalar: NormalizeLow,
SignatureSize<C>: ArrayLength<u8>,
{
/... | 1 | 2 | 2 |
f9665382b4a496701fcde6d58b9e615719d6e4e1 | Tony Arcieri | 2020-08-05T02:33:37 | ecdsa: low-S normalization support (#115)
Provides generalized support for low S normalization, bounded on a newly
introdced `NormalizeLow` trait and a `Signature::normalize_s` method
which handles updating a signature value. | diff --git a/Cargo.lock b/Cargo.lock
index 950df21..aafa185 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -45,7 +45,7 @@ dependencies = [
[[package]]
name = "elliptic-curve"
version = "0.5.0-pre"
-source = "git+https://github.com/RustCrypto/traits#9bab4e821421e384096e86e92278ef20fb8f4621"
+source = "git+https://github... | 2 | 38 | 2 |
a7dde254d74b05158504c6fe20bb2dde4a3fe102 | Tony Arcieri | 2020-08-04T23:50:36 | ecdsa: use FromBytes from toplevel (#114) | diff --git a/Cargo.lock b/Cargo.lock
index ca885fd..950df21 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -45,7 +45,7 @@ dependencies = [
[[package]]
name = "elliptic-curve"
version = "0.5.0-pre"
-source = "git+https://github.com/RustCrypto/traits#1b3dffb7f194176a97730a72d493e5368ac69359"
+source = "git+https://github... | 2 | 2 | 3 |
5ed37413e0bc6d66a45788747574e4b32a97bb65 | Tony Arcieri | 2020-08-04T21:23:54 | ecdsa: use new `elliptic_curve::encoding` module (#113)
Uses the new `FromBytes` trait introduced in RustCrypto/traits#247 | diff --git a/Cargo.lock b/Cargo.lock
index 62e017c..ca885fd 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -45,7 +45,7 @@ dependencies = [
[[package]]
name = "elliptic-curve"
version = "0.5.0-pre"
-source = "git+https://github.com/RustCrypto/traits#1dd4bc5ebc1f7c16e4a76fa6264b796579b4685e"
+source = "git+https://github... | 3 | 9 | 5 |
5e2a6b5d84a483a79ef85312b3729821d07db207 | Tony Arcieri | 2020-08-04T20:15:37 | ecdsa: rename ScalarBytes to ElementBytes (#112)
Per RustCrypto/traits#246 | diff --git a/Cargo.lock b/Cargo.lock
index 6dab0b7..62e017c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -45,7 +45,7 @@ dependencies = [
[[package]]
name = "elliptic-curve"
version = "0.5.0-pre"
-source = "git+https://github.com/RustCrypto/traits#920522ae53f03483a27b24bc8e924db9e8aff29c"
+source = "git+https://github... | 4 | 14 | 14 |
4124ce390d4c7aedb7226ac11475f567464d3e7d | Tony Arcieri | 2020-08-04T03:23:53 | ecdsa: add hazmat::RecoverableSignPrimitive (#111)
Trait for signature algorithm implementations that support public key
recovery, with a blanket impl for SignPrimitive. | diff --git a/Cargo.lock b/Cargo.lock
index 9bb4b9d..6dab0b7 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -45,7 +45,7 @@ dependencies = [
[[package]]
name = "elliptic-curve"
version = "0.5.0-pre"
-source = "git+https://github.com/RustCrypto/traits#a65edce5d5ee2f5daec882d68fe00f860674f542"
+source = "git+https://github... | 2 | 37 | 1 |
e33e8b2c69887cbae749126354966ddbf1c66b63 | Tony Arcieri | 2020-07-28T18:29:43 | ecdsa: SignPrimitive bounds and dev macro fixups (#108)
Changes the `Into` bound on the `K` generic parameter to `SignPrimitive`
to an `AsRef<C::Scalar>`. This avoids making unnecessary copies as well
as simplifying type inference.
Also fixes the macros in the `dev` module to use the new two parameter
`SignPrimi... | diff --git a/ecdsa/src/dev.rs b/ecdsa/src/dev.rs
index 6344bf9..a3161cc 100644
--- a/ecdsa/src/dev.rs
+++ b/ecdsa/src/dev.rs
@@ -41,7 +41,7 @@ macro_rules! new_signing_test {
let d = Scalar::from_bytes(vector.d.try_into().unwrap()).unwrap();
let k = Scalar::from_bytes(vector.k.try_into... | 2 | 3 | 5 |
58eccf8c74964935239b02368e4e233f2e8033db | Tony Arcieri | 2020-07-28T17:47:02 | ecdsa: make SignPrimitive's ephemeral scalar generic (#107)
...and remove masking scalar.
This API allows the inversion masking process to be handled outside of
the ECDSA implementation itself (potentially generically in a way that
can work across elliptic curves). | diff --git a/Cargo.lock b/Cargo.lock
index 60912e2..9a2e1b6 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -45,7 +45,7 @@ dependencies = [
[[package]]
name = "elliptic-curve"
version = "0.5.0-pre"
-source = "git+https://github.com/RustCrypto/traits#3fd8ac7fa787cfbea275306fab011a592206b1b2"
+source = "git+https://github... | 2 | 6 | 6 |
12b96e3ac5cfb4b7f5076355bce127ea5a33db53 | Tony Arcieri | 2020-07-28T02:40:07 | ecdsa: bound ecdsa::SignPrimitive on Arithmetic (#106)
Avoids re-declaring the associated type | diff --git a/ecdsa/src/hazmat.rs b/ecdsa/src/hazmat.rs
index b334224..0551c39 100644
--- a/ecdsa/src/hazmat.rs
+++ b/ecdsa/src/hazmat.rs
@@ -12,7 +12,7 @@
//! FULL PRIVATE KEY RECOVERY!
use crate::{Signature, SignatureSize};
-use elliptic_curve::{generic_array::ArrayLength, weierstrass::Curve, ScalarBytes};
+use el... | 1 | 4 | 8 |
3800528655f34696877fbc2c8a6921088d503f0c | Tony Arcieri | 2020-07-27T21:01:36 | ecdsa: implement RustCrypto/traits#223 updates (#105)
Updates usages of the `elliptic-curve` crate API | diff --git a/Cargo.lock b/Cargo.lock
index 5c29b4c..60912e2 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -45,7 +45,7 @@ dependencies = [
[[package]]
name = "elliptic-curve"
version = "0.5.0-pre"
-source = "git+https://github.com/RustCrypto/traits#3e7b861581185d7350db3315cd1a99b4c6d382e4"
+source = "git+https://github... | 4 | 72 | 63 |
3655c0b7a14a9641f847de5deb866e5ee7198a98 | Tony Arcieri | 2020-07-23T18:49:10 | ecdsa: gate `PrehashSignature` impl on `digest` feature (#104) | diff --git a/ecdsa/src/hazmat.rs b/ecdsa/src/hazmat.rs
index 2604f58..a6af001 100644
--- a/ecdsa/src/hazmat.rs
+++ b/ecdsa/src/hazmat.rs
@@ -89,6 +89,7 @@ pub trait DigestPrimitive: Curve {
type Digest: Digest;
}
+#[cfg(feature = "digest")]
impl<C: DigestPrimitive> PrehashSignature for Signature<C>
where
... | 1 | 1 | 0 |
30e586033af6369016a17c536f11c7f9e5671ade | Tony Arcieri | 2020-07-23T18:01:09 | ecdsa: initial `dev` module with `new_*_test` macros (#103)
Adds a `dev` module ala the ones in the trait crates which contains
`new_signing_test` and `new_verification_test` macros which implement
a basic set of tests for implementers of `SignPrimitive` and
`VerifyPrimitive` respectively.
Ideally this would imp... | diff --git a/ecdsa/Cargo.toml b/ecdsa/Cargo.toml
index 3e1f296..26f3007 100644
--- a/ecdsa/Cargo.toml
+++ b/ecdsa/Cargo.toml
@@ -25,6 +25,7 @@ default-features = false
[features]
default = ["digest", "std"]
+dev = []
digest = ["signature/digest-preview"]
hazmat = []
std = ["elliptic-curve/std", "signature/std"]
... | 3 | 109 | 0 |
932ab457c0ca4301887053137603018eb768b78c | Tony Arcieri | 2020-07-23T16:36:49 | ecdsa: rename `asn1::Signature`; impl `signature` trait (#102)
This commit renames `asn1::Document` to `asn1::Signature`.
This means we now have the following types:
- `ecdsa::Signature`: fixed-sized encoding
- `ecdsa::asn1::Signature`: ASN.1 DER encoding
Additionally this commit adds an impl of the `signatu... | diff --git a/ecdsa/src/asn1.rs b/ecdsa/src/asn1.rs
index 27683e0..88e09d7 100644
--- a/ecdsa/src/asn1.rs
+++ b/ecdsa/src/asn1.rs
@@ -11,7 +11,8 @@ use crate::{
Error,
};
use core::{
- convert::TryFrom,
+ convert::{TryFrom, TryInto},
+ fmt,
ops::{Add, Range},
};
use elliptic_curve::{consts::U9, Sc... | 2 | 102 | 80 |
e9037b7d94bdbfab092387849a78020d9bb69e79 | Tony Arcieri | 2020-07-17T14:33:39 | ecdsa: have SignPrimitive borrow scalars (#101)
Avoids making unnecessary copies | diff --git a/ecdsa/src/hazmat.rs b/ecdsa/src/hazmat.rs
index 2b22e09..2604f58 100644
--- a/ecdsa/src/hazmat.rs
+++ b/ecdsa/src/hazmat.rs
@@ -41,8 +41,8 @@ where
/// - `hashed_msg`: prehashed message to be signed
fn try_sign_prehashed(
&self,
- ephemeral_scalar: Self::Scalar,
- masking_s... | 1 | 2 | 2 |
c8ed0f2546db9d45dcd4060985171b967dfc31f3 | Tony Arcieri | 2020-07-17T02:23:37 | ecdsa: use signature::Error in `hazmat` module (#100)
It previously used `elliptic_curve::Error` instead by mistake | diff --git a/ecdsa/src/hazmat.rs b/ecdsa/src/hazmat.rs
index e165c1c..2b22e09 100644
--- a/ecdsa/src/hazmat.rs
+++ b/ecdsa/src/hazmat.rs
@@ -12,7 +12,8 @@
//! FULL PRIVATE KEY RECOVERY!
use crate::{Signature, SignatureSize};
-use elliptic_curve::{generic_array::ArrayLength, weierstrass::Curve, Error, ScalarBytes};
... | 1 | 2 | 1 |
04ca0e23cabc78b3c775f0e53d376f1dde55360e | Tony Arcieri | 2020-07-14T03:11:46 | ecdsa: add DigestPrimitive (#99)
The `DigestPrimitive` trait, intended to be implemented within a crate
which impls `elliptic_curve::weierstrass::Curve`, provides a blanket
impl of `PrehashSignature` for `ecdsa::Signature<C: Curve>`.
This is a small hack needed to work around the fact that the ECDSA
signature tr... | diff --git a/ecdsa/Cargo.toml b/ecdsa/Cargo.toml
index f9f7f3b..3e1f296 100644
--- a/ecdsa/Cargo.toml
+++ b/ecdsa/Cargo.toml
@@ -30,4 +30,5 @@ hazmat = []
std = ["elliptic-curve/std", "signature/std"]
[package.metadata.docs.rs]
+features = ["digest", "std"]
rustdoc-args = ["--cfg", "docsrs"]
diff --git a/ecdsa/src... | 3 | 30 | 0 |
bc5a7055e464d100771be7240aa31c53a2f3d4b9 | Tony Arcieri | 2020-07-14T01:09:16 | ecdsa: refactor signature types into Signature + asn1::Document (#98)
The previous implementation had `Asn1Signature` and `FixedSignature`
types which sat side-by-side as equals.
However, that's annoying, because it means we need to do various work in
duplicate for both signature types.
It's also annoying beca... | diff --git a/Cargo.lock b/Cargo.lock
index a57cc00..5c29b4c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -10,33 +10,12 @@ dependencies = [
"serde",
]
-[[package]]
-name = "block-buffer"
-version = "0.9.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4152116fd6e9dadb291ae18fc1ec3575... | 8 | 482 | 603 |
4c3cf22b3cb9cdcb275fd11b28c4e6c05151bb6c | Tony Arcieri | 2020-07-13T18:21:55 | ecdsa: bump version to v0.7.0-pre (#97)
This commit isn't intended to be a release, but just bumps the version
number in Cargo.toml to `-pre` to distinguish it from the currently
released v0.6.1.
Several backwards incompatible / semver breaking changes have been
introduced since the release.
It also updates `... | diff --git a/Cargo.lock b/Cargo.lock
index 527d50d..a57cc00 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2,9 +2,9 @@
# It is not intended for manual editing.
[[package]]
name = "bincode"
-version = "1.2.1"
+version = "1.3.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5753e2a715347... | 2 | 39 | 43 |
9d8f4b693c10231dc189a131f22abcb28f462525 | Tony Arcieri | 2020-07-03T16:55:31 | Add `secp256k1` feature (#95)
...which wraps the underlying `k256` crate
People will ultimately be looking for "secp256k1" and `k256` is largely
an artifact of trying to use a crate name that wasn't taken and fit with
the other elliptic curve crates (`p256`, `k256`).
This should make it clearer. | diff --git a/ecdsa/Cargo.toml b/ecdsa/Cargo.toml
index 197242d..2744099 100644
--- a/ecdsa/Cargo.toml
+++ b/ecdsa/Cargo.toml
@@ -46,7 +46,8 @@ default-features = false
[features]
default = ["digest", "std", "zeroize"]
digest = ["signature/digest-preview", "sha2"]
-k256-arithmetic = ["k256/arithmetic"]
+secp256k1 = [... | 3 | 11 | 8 |
f1001a6cf3688f4f617b1e1b492218d7a5c2e286 | Tony Arcieri | 2020-07-01T00:36:38 | ecdsa: implement secp256k1 low-S normalization (#94)
Adds `normalize_s` method to `secp256k1::{Asn1Signature, FixedSignature}`
when the (new) `k256-arithmetic` feature is enabled.
This normalizes the s-component of ECDSA signatures in order to make
them non-malleable as describe din BIP 0062: Dealing with Malleab... | diff --git a/Cargo.lock b/Cargo.lock
index d41572e..e16937d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -76,7 +76,7 @@ dependencies = [
[[package]]
name = "elliptic-curve"
version = "0.4.0"
-source = "git+https://github.com/RustCrypto/elliptic-curves#d1a8376b5520646fcb536e1094289bc65391b48d"
+source = "git+https://g... | 5 | 156 | 12 |
37157efe2b8c3adf3b436cb57764a368fcae99bf | Tony Arcieri | 2020-06-30T21:01:48 | Cargo.toml: fetch RustCrypto/elliptic-curves crates from git (#93)
Adds a `[patch.crates-io]` directive so we can work off the latest
versions of the https://github.com/RustCrypto/elliptic-curves crates.
This is a breaking change for the `ecdsa` crate and makes it
unreleasable until releases of the elliptic curve... | diff --git a/Cargo.lock b/Cargo.lock
index 0afff36..d41572e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -43,12 +43,6 @@ version = "1.3.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "08c48aae112d48ed9f069b33538ea9e3e90aa263cfa3d1c24309612b1f7472de"
-[[package]]
-name = "cfg-if"
-vers... | 3 | 11 | 39 |
f1981c1502a271700973904ae87c538b4d715283 | Tony Arcieri | 2020-06-29T19:11:11 | ecdsa: add doc_cfg (#91)
Uses the nightly-only `doc_cfg` feature to document which modules/types
are gated behind cargo features (namely `k256`, `p256`, and `p384`)
This is intended for use with https://docs.rs | diff --git a/ecdsa/Cargo.toml b/ecdsa/Cargo.toml
index e95c6af..448695d 100644
--- a/ecdsa/Cargo.toml
+++ b/ecdsa/Cargo.toml
@@ -52,3 +52,4 @@ test-vectors = []
[package.metadata.docs.rs]
all-features = true
+rustdoc-args = ["--cfg", "docsrs"]
diff --git a/ecdsa/src/curve.rs b/ecdsa/src/curve.rs
index 12f375f..c95e... | 4 | 25 | 10 |
569fbd86db3b9e0f7c6eab8a2ede530f34868824 | Tony Arcieri | 2020-06-29T18:35:51 | ecdsa::curve::secp256k1::RecoverableSignature (#90)
Adds a signature type for Ethereum-style recoverable signatures. | diff --git a/ecdsa/src/asn1_signature.rs b/ecdsa/src/asn1_signature.rs
index c39cb6b..8a37af6 100644
--- a/ecdsa/src/asn1_signature.rs
+++ b/ecdsa/src/asn1_signature.rs
@@ -1,13 +1,16 @@
//! ASN.1 DER-encoded ECDSA signatures
-use crate::generic_array::{typenum::Unsigned, ArrayLength, GenericArray};
-use crate::{con... | 5 | 138 | 16 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.