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
1d6e7847c8ec87baa166a618027ac5b4e6b9dfa5
Tony Arcieri
2021-02-28T22:39:14
Cargo.lock: bump dependencies (#314)
diff --git a/Cargo.lock b/Cargo.lock index 763fc01c..4c8a8aec 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -123,12 +123,6 @@ dependencies = [ "rustc_version", ] -[[package]] -name = "cc" -version = "1.0.67" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e3c69b077ad434294d3ce9f1f6143a...
1
26
81
e2b6839d80c805e05a3f2ebb092a974f55ef8312
Tony Arcieri
2021-02-24T20:56:02
Use string-based OID constants (#312) Uses the new const-friendly OID string parser added in: https://github.com/RustCrypto/utils/pull/312
diff --git a/Cargo.lock b/Cargo.lock index 8ec2287b..763fc01c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -148,9 +148,9 @@ dependencies = [ [[package]] name = "const-oid" -version = "0.4.2" +version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a7e8dd5eab3bedc0f623f388e724...
8
9
13
11deeb785ea2470affa2ecf5924d624dbaa785d5
Tony Arcieri
2021-02-22T22:37:38
Cargo.lock: bump dependencies (#311)
diff --git a/Cargo.lock b/Cargo.lock index 4780f1d8..8ec2287b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -275,9 +275,9 @@ dependencies = [ [[package]] name = "der" -version = "0.2.7" +version = "0.2.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eeaef572ca60433089d994bca0bef5d728...
1
13
7
c2e55e56bd7368f3226e09063711f75c4376b38e
Tony Arcieri
2021-02-20T17:06:38
Cargo.lock: bump dependencies (#309)
diff --git a/Cargo.lock b/Cargo.lock index 76302e3d..d402254e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -123,6 +123,12 @@ dependencies = [ "rustc_version", ] +[[package]] +name = "cc" +version = "1.0.67" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e3c69b077ad434294d3ce9f1f6143a...
1
59
17
757de7dae1f1a3480ba70c910b563904db713502
Tony Arcieri
2021-02-19T04:44:13
Cargo.lock: bump deps (#308)
diff --git a/Cargo.lock b/Cargo.lock index d7a6c37a..76302e3d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -104,9 +104,9 @@ dependencies = [ [[package]] name = "bumpalo" -version = "3.6.0" +version = "3.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "099e596ef14349721d9016f6b80dd3...
1
10
10
8123acb3d4620282210337b104e723141b0659ec
Tony Arcieri
2021-02-17T04:07:28
Cargo.lock: bump deps (#306) Includes the `elliptic-curve` v0.9.3 with a workaround for: https://github.com/bitvecto-rs/bitvec/issues/105
diff --git a/Cargo.lock b/Cargo.lock index f416fc3c..d7a6c37a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -274,9 +274,9 @@ dependencies = [ [[package]] name = "der" -version = "0.2.1" +version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "10c1413b32f5b6235186f806ecdab2ffa1...
1
34
23
692ab46399dce75769167055aa2fc1f858bbdc78
Tony Arcieri
2021-02-11T18:54:39
p384 v0.7.0-pre (#304)
diff --git a/Cargo.lock b/Cargo.lock index 27fe712b..f416fc3c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -583,7 +583,7 @@ dependencies = [ [[package]] name = "p384" -version = "0.6.1" +version = "0.7.0-pre" dependencies = [ "ecdsa", "elliptic-curve", diff --git a/p384/Cargo.toml b/p384/Cargo.toml index 0b1b27...
3
3
3
77ca1ff495e883eb60d15f9ad4f3c3a81de03665
Tony Arcieri
2021-02-11T18:41:04
p256 v0.8.0-pre (#303) Includes `rand_core` v0.6 upgrade
diff --git a/Cargo.lock b/Cargo.lock index e5e64f9a..27fe712b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -571,7 +571,7 @@ checksum = "624a8340c38c1b80fd549087862da4ba43e08858af025b236e509b6649fc13d5" [[package]] name = "p256" -version = "0.7.2" +version = "0.8.0-pre" dependencies = [ "ecdsa", "elliptic-curve"...
3
3
3
077c095aaa57ddd6700f9509e2052d4a4f1426f1
Tony Arcieri
2021-02-11T18:20:49
k256 v0.8.0-pre (#302) Includes `rand_core` v0.6 upgrade
diff --git a/Cargo.lock b/Cargo.lock index da2e1c4a..e5e64f9a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -460,7 +460,7 @@ dependencies = [ [[package]] name = "k256" -version = "0.7.2" +version = "0.8.0-pre" dependencies = [ "cfg-if", "criterion", diff --git a/k256/Cargo.toml b/k256/Cargo.toml index 0526139e.....
3
3
3
b398284eb32ad84a29fe21a25d7b102b137f641a
Tony Arcieri
2021-02-11T18:08:32
bp384: fix Cargo.toml description (#301) Typo/copypasta: `brainpoolP256t1` => `brainpoolP384t1`
diff --git a/bp384/Cargo.toml b/bp384/Cargo.toml index 5ff30ac1..29cf0077 100644 --- a/bp384/Cargo.toml +++ b/bp384/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bp384" -description = "Brainpool P-384 (brainpoolP384r1 and brainpoolP256t1) elliptic curves" +description = "Brainpool P-384 (brainpoolP384r1 and brainpoolP...
1
1
1
57287425e9790fe7c8183440e177a7e915f0ba13
Tony Arcieri
2021-02-11T15:31:23
Bump `elliptic-curve` to v0.9.2 (#296)
diff --git a/Cargo.lock b/Cargo.lock index d6022997..ed10e981 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -294,7 +294,7 @@ dependencies = [ [[package]] name = "ecdsa" version = "0.11.0-pre" -source = "git+https://github.com/RustCrypto/signatures.git#34e51c43383d5485d17d9a639ce7a4fa5bd8baee" +source = "git+https://gi...
11
15
15
58fff85626c7a67deeb50a871248f4588f692323
Tony Arcieri
2021-02-11T14:09:54
Cargo.lock: bump dependencies (#294)
diff --git a/Cargo.lock b/Cargo.lock index 3217cd15..d6022997 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -294,7 +294,7 @@ dependencies = [ [[package]] name = "ecdsa" version = "0.11.0-pre" -source = "git+https://github.com/RustCrypto/signatures.git#eaaf5b8699720d9cdc7c5733f35842f8245f11bf" +source = "git+https://gi...
1
3
3
00cbec96f3dcd6f75fd3dd3ea5813e01be7293c0
Tony Arcieri
2021-02-10T19:59:38
Bump `elliptic-curve` dependency to v0.9 (#293) Release notes: https://github.com/RustCrypto/traits/pull/535
diff --git a/Cargo.lock b/Cargo.lock index a46a709f..3217cd15 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -294,7 +294,7 @@ dependencies = [ [[package]] name = "ecdsa" version = "0.11.0-pre" -source = "git+https://github.com/RustCrypto/signatures.git#19558849ad46bd054f2f68faa55f5c28f262f9ff" +source = "git+https://gi...
8
12
29
f1e1d1eefd3d10135fc66733857ecc25b93dad6d
Tony Arcieri
2021-02-10T18:35:04
Migrate to `FromDigest` trait from `ecdsa` crate (#292) The `FromDigest` trait was moved to the `ecdsa` crate. See: - https://github.com/RustCrypto/traits/pull/532 - https://github.com/RustCrypto/signatures/pull/238
diff --git a/Cargo.lock b/Cargo.lock index dbab54cc..a46a709f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -92,9 +92,9 @@ dependencies = [ [[package]] name = "bstr" -version = "0.2.14" +version = "0.2.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "473fc6b38233f9af7baa94fb5852dca38...
7
25
21
95352a763d4c7db355977316ae00c54a64cbf65a
Tony Arcieri
2021-02-01T17:36:51
Cargo.lock: bump dependencies (#290)
diff --git a/Cargo.lock b/Cargo.lock index 09e1714a..dbab54cc 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -19,9 +19,9 @@ checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a" [[package]] name = "base64ct" -version = "0.1.0" +version = "0.2.0" source = "registry+https://github.com/rust-lang/...
1
26
32
fdc235f42c8c3414f9805628e55bcc380914495e
Tony Arcieri
2021-01-30T02:20:47
Rename `Asn1Signature` to `DerSignature` (#288) Corresponding change for https://github.com/RustCrypto/signatures/pull/226
diff --git a/bp256/src/r1/ecdsa.rs b/bp256/src/r1/ecdsa.rs index 6006c6db..3b8622af 100644 --- a/bp256/src/r1/ecdsa.rs +++ b/bp256/src/r1/ecdsa.rs @@ -6,7 +6,7 @@ pub use super::BrainpoolP256r1; pub type Signature = ecdsa::Signature<BrainpoolP256r1>; /// ECDSA/brainpoolP256r1 signature (ASN.1 DER encoded) -pub type...
7
7
7
fdf26f5d1fc486d513c7918c8df0620268cc06a2
Tony Arcieri
2021-01-26T21:33:17
Bump `pkcs8` dependency to v0.4.0 (#285) Also bumps related dependencies in Cargo.lock
diff --git a/Cargo.lock b/Cargo.lock index 39a56058..fbe4f956 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -17,11 +17,6 @@ version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a" -[[package]] -name = "base64ct" -...
2
39
50
98fb052398c8bfaf237b7b7d38802ee4fd2fbc6a
Tony Arcieri
2021-01-26T19:58:44
Bump `base64ct` dependency to v0.1.0 release (#284)
diff --git a/Cargo.lock b/Cargo.lock index 5b1d7bf0..39a56058 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -22,6 +22,12 @@ name = "base64ct" version = "0.0.0" source = "git+https://github.com/RustCrypto/utils.git#0fe3e15b868778c92959f3fa03b62b47b6842f60" +[[package]] +name = "base64ct" +version = "0.1.0" +source = "...
3
9
5
2fcb3ed044480c5a0fa3d67aa44f51e03630df37
Tony Arcieri
2021-01-22T21:25:48
Bump `der`, `elliptic-curve`, and `pkcs8` dependencies (#282) Also adds `base64ct` dependency
diff --git a/Cargo.lock b/Cargo.lock index 8aadd670..6fee19e2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -18,10 +18,9 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a" [[package]] -name = "b64ct" -version = "0.2.0" -sou...
3
26
27
da636e70c5da62e4f53041b5ce9b2270504120a3
Tony Arcieri
2021-01-13T16:34:06
k256/p256: have `std` activate `ecdsa-core/std` (#273) Closes #271 This is needed to define a `std::error::Error` impl on errors arising from the `ecdsa` crate. Unfortunately without weak activation this means the `ecdsa` crate gets pulled in by default, but we can circle back on that later.
diff --git a/k256/Cargo.toml b/k256/Cargo.toml index 1f88c756..b24c7198 100644 --- a/k256/Cargo.toml +++ b/k256/Cargo.toml @@ -47,7 +47,7 @@ pem = ["elliptic-curve/pem", "pkcs8"] pkcs8 = ["elliptic-curve/pkcs8", "zeroize"] sha256 = ["digest", "sha2"] test-vectors = ["hex-literal"] -std = ["elliptic-curve/std"] +std ...
4
4
4
3892580f6530e0f78129ee1a9580cc461474b738
Tony Arcieri
2020-12-26T17:52:48
k256: add Ethereum note to `ecdsa` module rustdoc (#270) Per #269 it seems this might've been a bit hard to discover, so this note hopefully makes it easier.
diff --git a/k256/src/ecdsa.rs b/k256/src/ecdsa.rs index 7a4986e6..c80b5c97 100644 --- a/k256/src/ecdsa.rs +++ b/k256/src/ecdsa.rs @@ -28,6 +28,12 @@ //! Most users of this library who want to sign/verify signatures will want to //! enable the `ecdsa` and `sha256` Cargo features. //! +//! ## Ethereum Support +//! +/...
1
6
0
d6b04d6b332b5d540ec56ea5ccf513edf4c219de
Tony Arcieri
2020-12-17T04:56:05
Bump `elliptic-curve` dependency to v0.8; `ecdsa` to v0.10 (#260)
diff --git a/Cargo.lock b/Cargo.lock index 2840e411..ed141c6c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -121,12 +121,6 @@ dependencies = [ "unicode-width", ] -[[package]] -name = "const-oid" -version = "0.3.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9718eb58510ebba591b25cb8...
6
39
76
f1324cc9d9562d00b1bb55a02bbf8c1cad455bc3
Tony Arcieri
2020-12-17T03:55:00
Bump `elliptic-curve` to v0.8.0-pre; `ecdsa` to v0.10.0-pre (#259)
diff --git a/Cargo.lock b/Cargo.lock index fbd19a74..2840e411 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -127,6 +127,12 @@ version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9718eb58510ebba591b25cb8b2327050138fbbef581990944317097cf8a4198f" +[[package]] +name = "const-oid...
7
75
20
7dbc4d7cb27a769bba0c89cbfa82edf81817bc25
Tony Arcieri
2020-12-06T17:52:08
p256/k256: fix rustdoc warnings (#252)
diff --git a/k256/src/arithmetic/mul.rs b/k256/src/arithmetic/mul.rs index 28caf758..2323f21a 100644 --- a/k256/src/arithmetic/mul.rs +++ b/k256/src/arithmetic/mul.rs @@ -38,8 +38,8 @@ //! //! To be precise, the method used here is based on "An Alternate Decomposition of an Integer for //! Faster Point Multiplicatio...
5
8
8
3df19f49905a124123031e119a72db0a32bacd26
Tony Arcieri
2020-12-06T17:40:48
k256: impl `pkcs8` traits for k256::ecdsa::{SigningKey, VerifyingKey} (#251)
diff --git a/k256/src/ecdsa/sign.rs b/k256/src/ecdsa/sign.rs index 3733954a..7a7fc3e4 100644 --- a/k256/src/ecdsa/sign.rs +++ b/k256/src/ecdsa/sign.rs @@ -19,6 +19,12 @@ use elliptic_curve::{ #[cfg(any(feature = "keccak256", feature = "sha256"))] use ecdsa_core::signature::{self, digest::Digest, PrehashSignature, Ran...
2
53
1
000dbebb59d9ee5772ea53e6552479efba46becb
Tony Arcieri
2020-12-06T15:21:09
Bump `elliptic-curve` crate to v0.7; `ecdsa` to v0.9 (#247)
diff --git a/Cargo.lock b/Cargo.lock index 24108fa9..ad4bb38c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -264,8 +264,9 @@ dependencies = [ [[package]] name = "ecdsa" -version = "0.9.0-pre" -source = "git+https://github.com/RustCrypto/signatures#be52d7c20457d47832a66cb74ec72e946969e6fa" +version = "0.9.0" +source =...
7
19
30
4c38198f6ea97fe92026833d426771787387a24b
Tony Arcieri
2020-12-05T19:31:31
Use pkcs8 v0.1 crate release (#246)
diff --git a/Cargo.lock b/Cargo.lock index 516ff74a..24108fa9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -123,8 +123,9 @@ dependencies = [ [[package]] name = "const-oid" -version = "0.3.2" -source = "git+https://github.com/RustCrypto/utils.git#18b058a3692f9f22001f81b5e700f9b4bbbfc4b4" +version = "0.3.3" +source = ...
3
12
7
fb69dd8e2590b67a9c4706104fe0838c354bfbe2
Tony Arcieri
2020-12-03T17:46:50
k256: make SigningKey a newtype of SecretKey (#242) The `SecretKey` type wraps up a lot of the concerns of secret key management, including encoding/decoding, computing public keys, and zeroization.
diff --git a/k256/src/ecdsa/sign.rs b/k256/src/ecdsa/sign.rs index 965b838f..3733954a 100644 --- a/k256/src/ecdsa/sign.rs +++ b/k256/src/ecdsa/sign.rs @@ -2,7 +2,7 @@ use super::{recoverable, Error, Signature, VerifyingKey}; use crate::{FieldBytes, NonZeroScalar, ProjectivePoint, Scalar, Secp256k1, SecretKey}; -use...
1
51
26
80f33e838b8444afaf7c4fdd3bf0c29c1ea5d2f7
Tony Arcieri
2020-12-03T03:20:22
Bump `elliptic-curve` and `ecdsa` dependencies (#241) Use the latest versions from git, which include some minor name changes
diff --git a/Cargo.lock b/Cargo.lock index 415cc26b..f934f106 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -204,9 +204,9 @@ dependencies = [ [[package]] name = "crossbeam-epoch" -version = "0.9.0" +version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec0f606a85340376eef0d6...
8
90
89
27e3aae5d9a5fcff11a1de05aafd498522f0ace8
Tony Arcieri
2020-10-08T20:33:05
Cargo.lock: update deps
diff --git a/Cargo.lock b/Cargo.lock index 59f3fea0..647e4380 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -254,9 +254,9 @@ dependencies = [ [[package]] name = "ecdsa" -version = "0.8.3" +version = "0.8.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "765a6f9c0938fef990bb7af306fe1e53...
1
14
14
990f8d221dd19090185a1de2cddb1a8c600c7d16
Tony Arcieri
2020-10-08T18:50:19
Add `SecretValue` impls when `arithmetic` is disabled (#222) This allows all crates (`k256`, `p256`, `p384`) to provide a `SecretKey` type with the `zeroize` feature alone (i.e. with `arithmetic` disabled).
diff --git a/Cargo.lock b/Cargo.lock index 0cd3a1dc..3a4730be 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -271,9 +271,9 @@ checksum = "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457" [[package]] name = "elliptic-curve" -version = "0.6.2" +version = "0.6.4" source = "registry+https://github.com/ru...
5
49
3
2b8ab1c2cb09c5e1d5b82224ef01b7fa1ddc14f3
Tony Arcieri
2020-09-30T17:55:32
k256: remove non-endomorphism code (#217) This code was previously gated under the `endomorphism-mul` feature due to lingering concerns about the "GLV" patents, namely US7110538. According to @pwuille, a patent attorney he works with has verified that the patent is expired: https://twitter.com/pwuille/status/1...
diff --git a/k256/Cargo.toml b/k256/Cargo.toml index 530daa20..ad1aa2a8 100644 --- a/k256/Cargo.toml +++ b/k256/Cargo.toml @@ -34,12 +34,12 @@ proptest = "0.10" rand_core = { version = "0.5", features = ["getrandom"] } [features] -default = ["arithmetic", "endomorphism-mul", "oid", "std"] +default = ["arithmetic", ...
6
69
125
3ae2dd112c52e3946be92a883ddf562540ca5dd2
Tony Arcieri
2020-09-28T17:24:12
k256: enable endomorphisms by default (#213) The reason this wasn't enabled-by-default before was due to a lingering US patent. However, as noted on #211, that patent just expired 🎉 The `bitcoin-core/secp256k1` library is also pursuing a full switch to endomorphisms: https://github.com/bitcoin-core/secp256k1/pul...
diff --git a/k256/Cargo.toml b/k256/Cargo.toml index 12f30b9b..64957223 100644 --- a/k256/Cargo.toml +++ b/k256/Cargo.toml @@ -34,12 +34,12 @@ proptest = "0.10" rand_core = { version = "0.5", features = ["getrandom"] } [features] -default = ["arithmetic", "oid", "std"] +default = ["arithmetic", "endomorphism-mul", ...
1
2
2
43de0d6d9d41046c48c1d401c9c51517d0a23f0d
Tony Arcieri
2020-09-27T22:15:43
k256: impl FromEncodedPoint for ProjectivePoint (#210)
diff --git a/k256/src/arithmetic/projective.rs b/k256/src/arithmetic/projective.rs index 66cc820f..8f5d7d59 100644 --- a/k256/src/arithmetic/projective.rs +++ b/k256/src/arithmetic/projective.rs @@ -1,7 +1,7 @@ //! Projective points use super::{AffinePoint, FieldElement, Scalar, CURVE_EQUATION_B_SINGLE}; -use crate...
1
9
2
3dc004a3cc5fe863e6dc773d8317d247a6fa6541
Tony Arcieri
2020-09-27T21:39:30
k256: impl `ToEncodedPoint` on `ecdsa::VerifyKey` (#209)
diff --git a/k256/src/ecdsa/verify.rs b/k256/src/ecdsa/verify.rs index 979100e3..35d1f4b4 100644 --- a/k256/src/ecdsa/verify.rs +++ b/k256/src/ecdsa/verify.rs @@ -25,6 +25,7 @@ impl VerifyKey { } /// Initialize [`VerifyKey`] from a SEC1 [`EncodedPoint`]. + // TODO(tarcieri): switch to using `FromEncodedP...
1
8
1
ebaf80066ebfe4113f3f858d0aa6e74e6385cd80
Tony Arcieri
2020-09-27T21:28:51
k256: add `From<&SigningKey>` impl for `SecretKey` (#208)
diff --git a/k256/src/ecdsa/sign.rs b/k256/src/ecdsa/sign.rs index ed2b63a1..d0ebb6b9 100644 --- a/k256/src/ecdsa/sign.rs +++ b/k256/src/ecdsa/sign.rs @@ -57,15 +57,6 @@ impl SigningKey { } } -impl From<&SecretKey> for SigningKey { - fn from(secret_key: &SecretKey) -> Self { - Self { - secr...
1
21
15
11f75a07a10b36f239847b7f7c5b5128f1790991
Tony Arcieri
2020-09-27T16:55:41
k256: impl RecoverableSignPrimtive (#206) Impls the `RecoverableSignPrimitive` trait revived in RustCrypto/signatures#175. This provides low-level support for computing recoverable signatures.
diff --git a/Cargo.lock b/Cargo.lock index 031dba15..ddeac7cc 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -253,9 +253,9 @@ dependencies = [ [[package]] name = "ecdsa" -version = "0.8.1" +version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6b586654f7964785521b07db8e9a02ca...
3
19
25
e29883a6d2684bafb308404a412842fa58b3a604
Tony Arcieri
2020-09-26T01:17:27
k256: recoverable::Signature::recover_verify_key_from_digest_bytes (#205) Adds a `recover_verify_key_from_digest_bytes` method which operates on a byte array that's allegedy the digest of the message used to produce a given signature. Where `*Verifier` methods carry the risk of a signature forgery if they operat...
diff --git a/k256/src/ecdsa/recoverable.rs b/k256/src/ecdsa/recoverable.rs index 02726fb5..9a9ab530 100644 --- a/k256/src/ecdsa/recoverable.rs +++ b/k256/src/ecdsa/recoverable.rs @@ -45,9 +45,9 @@ use crate::{ ecdsa::{signature::DigestVerifier, VerifyKey}, elliptic_curve::{ consts::U32, generic_array...
1
20
9
47a7d663c48ce53d2cee0a946fb1c5e6e4db77ec
Tony Arcieri
2020-09-24T03:08:28
k256: derive Copy on VerifyKey (#202)
diff --git a/Cargo.lock b/Cargo.lock index ce2c9966..826be30b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -253,9 +253,9 @@ dependencies = [ [[package]] name = "ecdsa" -version = "0.8.0" +version = "0.8.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4cda7dd00e9ace9867955ef64a176447...
3
6
6
d878d0e2175971afff1a57361866d998dc7bbdaa
Tony Arcieri
2020-09-22T23:52:52
Cargo.lock: bump `bitvec` to v0.18.4 (#195)
diff --git a/Cargo.lock b/Cargo.lock index 63c6a1a6..ce2c9966 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -40,9 +40,9 @@ checksum = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693" [[package]] name = "bitvec" -version = "0.18.3" +version = "0.18.4" source = "registry+https://github.com/rust-lang/...
1
4
4
2ff8175c4d5a26162a735e0c1252b6afcf66a13d
Tony Arcieri
2020-09-21T18:36:13
k256: improve documentation for `sha256` feature (#197)
diff --git a/k256/src/ecdsa.rs b/k256/src/ecdsa.rs index 88eb6a49..479c5cac 100644 --- a/k256/src/ecdsa.rs +++ b/k256/src/ecdsa.rs @@ -14,9 +14,23 @@ //! [`VerifyKey`] types which natively implement ECDSA/secp256k1 signing and //! verification. //! +//! Additionally, this crate contains support for computing ECD...
2
17
3
836e52387b4eccc3ce9aab16ac90e2ff6dceeae5
Tony Arcieri
2020-09-21T18:11:53
Bump `elliptic-curve` dependency to v0.6.1 (#196) See: https://github.com/RustCrypto/traits/pull/310
diff --git a/Cargo.lock b/Cargo.lock index 88b117b4..075bad27 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -270,8 +270,9 @@ checksum = "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457" [[package]] name = "elliptic-curve" -version = "0.6.0" -source = "git+https://github.com/rustcrypto/traits#797b7d90...
2
3
5
550ea9547c90cc1dbbf0b824a809670a99bbde1b
Tony Arcieri
2020-09-21T17:46:37
k256/p256: add sec1::EncodedPoint::decompress test (#194) Add tests that the upstream `sec1::EncodedPoint::decompress` method works given the trait impls in the respective crates. The generic upstream implementation was previously broken: https://github.com/RustCrypto/traits/pull/309 The plan is to release `e...
diff --git a/Cargo.lock b/Cargo.lock index 242dde90..88b117b4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -264,15 +264,14 @@ dependencies = [ [[package]] name = "either" -version = "1.6.0" +version = "1.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd56b59865bce947ac5958779cfa5...
4
32
16
d14844e142f824db6954408d384a216cecf6fb0b
Tony Arcieri
2020-09-18T19:28:06
k256: impl `RandomizedSigner` on `SigningKey` (#193) Gated on the `sha256` feature.
diff --git a/k256/src/ecdsa/sign.rs b/k256/src/ecdsa/sign.rs index 3eb280ed..351129b9 100644 --- a/k256/src/ecdsa/sign.rs +++ b/k256/src/ecdsa/sign.rs @@ -17,7 +17,7 @@ use elliptic_curve::{ }; #[cfg(feature = "sha256")] -use ecdsa_core::signature::{self, digest::Digest, PrehashSignature}; +use ecdsa_core::signatur...
1
12
1
b919390355d0e96573a97b4a335c080d79528ce2
Tony Arcieri
2020-09-18T18:37:56
k256: gate ecdsa::{Signer, Verifier} impls on `sha256` feature (#192) They don't work otherwise. This isn't a SemVer breaking change, because they still didn't work without the feature enabled. This change provides a slightly better error message.
diff --git a/k256/src/ecdsa/sign.rs b/k256/src/ecdsa/sign.rs index 6b2805af..3eb280ed 100644 --- a/k256/src/ecdsa/sign.rs +++ b/k256/src/ecdsa/sign.rs @@ -6,7 +6,7 @@ use core::{borrow::Borrow, convert::TryInto}; use ecdsa_core::{ hazmat::SignPrimitive, rfc6979, - signature::{self, DigestSigner, Randomize...
2
9
5
cf655867168e504736b0eac8f457126a4b6add23
Tony Arcieri
2020-09-16T16:21:51
k256/p256/p384: add `ecdsa::Asn1Signature` type aliases (#186)
diff --git a/k256/src/ecdsa.rs b/k256/src/ecdsa.rs index 7b268e29..88eb6a49 100644 --- a/k256/src/ecdsa.rs +++ b/k256/src/ecdsa.rs @@ -71,6 +71,9 @@ use elliptic_curve::generic_array::GenericArray; /// ECDSA/secp256k1 signature (fixed-size) pub type Signature = ecdsa_core::Signature<Secp256k1>; +/// ECDSA/secp256k1...
3
9
0
4145a41cf3161b072c8fa6e26a952e60b7e6804f
Tony Arcieri
2020-09-12T00:54:30
k256: fix ecdsa::recoverable NonZeroScalar docs
diff --git a/k256/src/ecdsa/recoverable.rs b/k256/src/ecdsa/recoverable.rs index 911a99f1..02726fb5 100644 --- a/k256/src/ecdsa/recoverable.rs +++ b/k256/src/ecdsa/recoverable.rs @@ -178,7 +178,7 @@ impl Signature { } } - /// Parse the `r` component of this signature to a [`Scalar`] + /// Parse th...
1
2
2
b04169702854b2b664a0806ae93bbc03f5c6c698
Tony Arcieri
2020-09-12T00:46:35
k256: fix missing paren in rustdoc
diff --git a/k256/src/ecdsa.rs b/k256/src/ecdsa.rs index 48cb383f..7b268e29 100644 --- a/k256/src/ecdsa.rs +++ b/k256/src/ecdsa.rs @@ -7,7 +7,7 @@ //! ECDSA/secp256k1 signature). Does not require the `arithmetic` feature. //! This is useful for 3rd-party crates which wish to use the `Signature` //! type for in...
1
1
1
7a75b8dee6e1da58afc9655224b32668726644cd
Tony Arcieri
2020-09-12T00:16:57
k256 v0.5.0-rc (#183) This was mistakenly released as v0.5.0-pre before.
diff --git a/Cargo.lock b/Cargo.lock index b86d3c45..831ad560 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -403,7 +403,7 @@ dependencies = [ [[package]] name = "k256" -version = "0.5.0-pre" +version = "0.5.0-rc" dependencies = [ "cfg-if", "criterion", diff --git a/k256/Cargo.toml b/k256/Cargo.toml index b26a7a7...
2
2
2
67833f598011b555e398100ca85545f785aaec9f
Tony Arcieri
2020-09-11T23:37:17
Cut v0.5.0-rc prereleases (#182) (for `p384` it's actually v0.4.0-rc)
diff --git a/Cargo.lock b/Cargo.lock index d38585ea..b86d3c45 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -403,7 +403,7 @@ dependencies = [ [[package]] name = "k256" -version = "0.4.2" +version = "0.5.0-pre" dependencies = [ "cfg-if", "criterion", @@ -521,7 +521,7 @@ checksum = "624a8340c38c1b80fd549087862da4b...
7
9
9
36a83990d00d67bdbacbf03d264ac0672d17599e
Tony Arcieri
2020-09-11T23:10:03
k256/p256: documentation improvements (#181) Expands the rustdoc intro, and provides information about supported features.
diff --git a/k256/src/ecdsa.rs b/k256/src/ecdsa.rs index 9063bf90..48cb383f 100644 --- a/k256/src/ecdsa.rs +++ b/k256/src/ecdsa.rs @@ -10,8 +10,9 @@ //! [`signature::Signer`] trait. Example use cases for this include other //! software implementations of ECDSA/secp256k1 and wrappers for cloud KMS //! services ...
4
31
15
146c3858aaf0ee8ab5892af9200ee1643350d0b9
Tony Arcieri
2020-09-11T22:39:29
Bump `elliptic-curve` crate to v0.6; `ecdsa` to v0.8 (#180) Release notes: - elliptic-curve v0.6.0: https://github.com/RustCrypto/traits/pull/302 - ecdsa v0.8.0: https://github.com/RustCrypto/signatures/pull/166
diff --git a/Cargo.lock b/Cargo.lock index 9572ef04..d38585ea 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -253,8 +253,9 @@ dependencies = [ [[package]] name = "ecdsa" -version = "0.7.2" -source = "git+https://github.com/RustCrypto/signatures#80eb3b49e258ccb458f1718226d5d6149a421a46" +version = "0.8.0" +source = "re...
6
14
20
31bb6ac0e4e0eee8bec71404fb103ae531bd4075
Tony Arcieri
2020-09-11T15:27:09
Refactor ProjectiveArithmetic trait (#179) Accompanying changes for RustCrypto/traits#300.
diff --git a/Cargo.lock b/Cargo.lock index bcd84414..9572ef04 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -254,7 +254,7 @@ dependencies = [ [[package]] name = "ecdsa" version = "0.7.2" -source = "git+https://github.com/RustCrypto/signatures#1a3e4944ff73a578f85c0b4063ed285647770071" +source = "git+https://github.com/...
21
192
247
50b564bd1f981a59f06348a1b02d4cde51332d4b
Tony Arcieri
2020-09-10T04:52:26
`FromFieldBytes` updates (#178) See: RustCrypto/traits#298
diff --git a/Cargo.lock b/Cargo.lock index aefbc14f..bcd84414 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -254,7 +254,7 @@ dependencies = [ [[package]] name = "ecdsa" version = "0.7.2" -source = "git+https://github.com/RustCrypto/signatures#acd8c3f82a889293fc0e546455a8da68346241e2" +source = "git+https://github.com/...
10
42
46
9ad7da2c98ab50f2b644835f5e0e8c302224ecbb
Tony Arcieri
2020-09-10T00:43:24
Support generic inner type for elliptic_curve::SecretKey<C> (#177) See: RustCrypto/traits#297
diff --git a/Cargo.lock b/Cargo.lock index 6f727ed5..aefbc14f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -40,9 +40,9 @@ checksum = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693" [[package]] name = "bitvec" -version = "0.18.1" +version = "0.18.3" source = "registry+https://github.com/rust-lang/...
8
40
26
c08794e3ee932f6d86095d2e09c0d0665e40e1b9
Tony Arcieri
2020-09-09T17:19:26
Rename `ElementBytes` => `FieldBytes` (#176) See RustCrypto/traits#296
diff --git a/Cargo.lock b/Cargo.lock index e202cb1d..6f727ed5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -254,7 +254,7 @@ dependencies = [ [[package]] name = "ecdsa" version = "0.7.2" -source = "git+https://github.com/RustCrypto/signatures#2fb7d2ae73b5edce854f7604cbd3e3157282b2e8" +source = "git+https://github.com/...
17
68
68
ab8800a23a01f1b8f7a78fcac21807362025d1b7
Tony Arcieri
2020-09-09T15:58:29
k256/p256: remove Generate trait (#175) It's been replaced by methods like `Field::random` and `Group::random`. See: RustCrypto/traits#295
diff --git a/Cargo.lock b/Cargo.lock index 0c8b9655..e202cb1d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -254,7 +254,7 @@ dependencies = [ [[package]] name = "ecdsa" version = "0.7.2" -source = "git+https://github.com/RustCrypto/signatures#e6151cdfaf003fa350bc1a1d5146d31b6c311518" +source = "git+https://github.com/...
12
38
71
4c68deb8abc6bac78490a19aeb1e484c3b0c41f1
Tony Arcieri
2020-09-08T19:19:40
Use subtle 2.3's From<CtOption<T>> impl on Option<T> (#173) Addresses a few TODOs.
diff --git a/Cargo.lock b/Cargo.lock index 88b65454..aac4b9c5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -243,7 +243,7 @@ dependencies = [ [[package]] name = "ecdsa" version = "0.7.2" -source = "git+https://github.com/RustCrypto/signatures#1b54c722c4292222b5c603c657db7891785de226" +source = "git+https://github.com/...
5
8
28
26619844edaba29e8219165676cae26862d6e567
Tony Arcieri
2020-09-08T18:52:08
Use subtle 2.3's ConstantTimeEq impl on Choice (#172) Replaces previous usage of XNOR on Choice to provide `ConstantTimeEq` with a newly released upstream impl of the same behavior: https://github.com/dalek-cryptography/subtle/pull/76
diff --git a/Cargo.lock b/Cargo.lock index ac56fd7f..88b65454 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -154,12 +154,12 @@ dependencies = [ [[package]] name = "crossbeam-channel" -version = "0.4.3" +version = "0.4.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "09ee0cc8804d539347...
3
12
14
4ec58880de723db2b430b76a2aee4d939c3cbf79
Tony Arcieri
2020-09-06T23:57:21
k256/p256: link to Scalar::sqrt todo issue (#171)
diff --git a/k256/src/arithmetic/scalar.rs b/k256/src/arithmetic/scalar.rs index 877eb501..ed794b85 100644 --- a/k256/src/arithmetic/scalar.rs +++ b/k256/src/arithmetic/scalar.rs @@ -76,9 +76,9 @@ impl Field for Scalar { Scalar::invert(self) } - // TODO(tarcieri): stub! + // TODO(tarcieri): stub! ...
2
4
4
e760150af469fb4cd74935c7082c5024e3072a14
Tony Arcieri
2020-09-06T19:44:54
p256: impl `ff` and `group` traits (#169) Corresponding change to #164, but for the `p256` crate. - Impls `ff::{Field, PrimeField}` on `Scalar` - Impls `group::{Group, Curve}` on `ProjectivePoint`
diff --git a/Cargo.lock b/Cargo.lock index d544db64..ac56fd7f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -504,6 +504,7 @@ checksum = "624a8340c38c1b80fd549087862da4ba43e08858af025b236e509b6649fc13d5" name = "p256" version = "0.4.1" dependencies = [ + "byteorder", "ecdsa", "elliptic-curve", "hex", diff --git a...
8
378
116
ebac050e77784944742983da38450199ceeada59
Tony Arcieri
2020-09-05T19:20:09
k256: impl `ff` and `group` traits (#164) - Impls `ff::{Field, PrimeField}` on `Scalar` - Impls `group::{Group, Curve}` on `ProjectivePoint`
diff --git a/Cargo.lock b/Cargo.lock index 11b992ae..d544db64 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -385,6 +385,7 @@ dependencies = [ name = "k256" version = "0.4.2" dependencies = [ + "byteorder", "cfg-if", "criterion", "ecdsa", diff --git a/k256/Cargo.toml b/k256/Cargo.toml index 665535a5..970ee79b 100...
11
311
23
d81c5c0cc73a622a6446a501ba2b80090b093b8d
Tony Arcieri
2020-09-05T18:21:28
k256: factor out a `from_digest_trial_recovery` method (#168) Support for "trial recovery" computation of an `ecdsa::recoverable::Signature` and the `VerifyKey` that created it using a prehashed message `Digest`.
diff --git a/k256/src/ecdsa/recoverable.rs b/k256/src/ecdsa/recoverable.rs index d7291739..b7076b37 100644 --- a/k256/src/ecdsa/recoverable.rs +++ b/k256/src/ecdsa/recoverable.rs @@ -7,8 +7,11 @@ //! //! ## Signing/Recovery Example //! +//! NOTE: make sure to enable both the `ecdsa` and `keccak256` features of +//! ...
1
36
11
2c2491cb71471cea2caf0fd8d31dc71289792a2a
Tony Arcieri
2020-09-05T01:08:05
p256: implement `AffinePoint::identity()` and `::is_identity()` (#167) This is a corresponding change ala #165, but for the `p256` crate.
diff --git a/k256/src/arithmetic/affine.rs b/k256/src/arithmetic/affine.rs index 5afad501..f19de9ad 100644 --- a/k256/src/arithmetic/affine.rs +++ b/k256/src/arithmetic/affine.rs @@ -139,8 +139,11 @@ impl FromEncodedPoint<Secp256k1> for AffinePoint { // Check that the point is on the curve ...
5
70
29
2377afadab25096789fac22025cdd3b9a68ae91b
Tony Arcieri
2020-09-05T00:38:46
k256: implement `AffinePoint::identity()` and `::is_identity()` (#165) Adds a `Choice` field to `AffinePoint` which encodes whether the point represents the point at infinity. Inspired by the method used in the `bls12_381` crate: https://github.com/zkcrypto/bls12_381/blob/0d2c06dd/src/g1.rs#L25-L29
diff --git a/Cargo.lock b/Cargo.lock index 7f44061c..11b992ae 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,6 +1,5 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. - [[package]] name = "atty" version = "0.2.14" diff --git a/k256/src/arithmetic/affine.rs b/k256/src/arit...
6
53
26
e30f84ebab18aeaa36b1d1adaf190bdd6f6ed5ef
Bogdan Opanchuk
2020-09-05T00:14:33
Force inline mul_wide() and reduce() to get rid of performance regression (#166) They are only used in Scalar[8x32/4x64]::mul() internally, so it will not cause binary bloat.
diff --git a/k256/src/arithmetic/scalar/scalar_4x64.rs b/k256/src/arithmetic/scalar/scalar_4x64.rs index 30daaf1b..08225465 100644 --- a/k256/src/arithmetic/scalar/scalar_4x64.rs +++ b/k256/src/arithmetic/scalar/scalar_4x64.rs @@ -251,6 +251,7 @@ impl Scalar4x64 { } /// Multiplies two scalars without modulo...
2
4
0
0eb8f6fbeccf7828bbab225fefdcc2deefb72160
Tony Arcieri
2020-09-04T03:01:01
k256: remove extra braces in example (#160)
diff --git a/k256/src/ecdsa.rs b/k256/src/ecdsa.rs index c1a226fb..2794ba44 100644 --- a/k256/src/ecdsa.rs +++ b/k256/src/ecdsa.rs @@ -22,7 +22,7 @@ //! # { //! use k256::{ //! ecdsa::{SigningKey, Signature, signature::Signer}, -//! elliptic_curve::{Generate}, +//! elliptic_curve::Generate, //! Secr...
1
1
1
a3384dc79705f03319e2d8b480a51f9afb5cfba2
Tony Arcieri
2020-09-04T00:39:42
Impl ecdsa::CheckSignatureBytes-related changes (#159) Corresponding `ecdsa` crate PR is RustCrypto/signatures#151 This implements the changes which eagerly validate that ECDSA signature `r` and `s` components are in-range `NonZeroScalar` values. This eliminates the need to do these checks as part of each ECDSA...
diff --git a/Cargo.lock b/Cargo.lock index bbdf5471..99fab962 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -243,7 +243,7 @@ dependencies = [ [[package]] name = "ecdsa" version = "0.7.2" -source = "git+https://github.com/RustCrypto/signatures#b724ece13a0b39e8a8cc39cb0a2adfe366d8f44e" +source = "git+https://github.com/...
6
22
34
a6f3bd6467b6c442ac8cac3fd971a68ff84c3d07
Tony Arcieri
2020-09-03T21:23:06
k256: use Decompress to impl ECDSA pubkey recovery (#158) Uses the point decompression trait rather than duplicating the point decompression logic.
diff --git a/Cargo.lock b/Cargo.lock index 3ed4971b..bbdf5471 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -243,7 +243,7 @@ dependencies = [ [[package]] name = "ecdsa" version = "0.7.2" -source = "git+https://github.com/RustCrypto/signatures#e8b7f6c363bc729eaa1d3a4efa5be9275279298a" +source = "git+https://github.com/...
5
57
55
848e392993931ddbb314f7ae18d662ff59f62c1a
Tony Arcieri
2020-09-03T14:44:17
k256/p256: use sec1::Coordinates enum (#156) Removes fallibility around obtaining the y-coordinate
diff --git a/Cargo.lock b/Cargo.lock index 63a87a93..3ed4971b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -243,7 +243,7 @@ dependencies = [ [[package]] name = "ecdsa" version = "0.7.2" -source = "git+https://github.com/RustCrypto/signatures#c22624e8fb3325e7e156b336193ae811f9270e3c" +source = "git+https://github.com/...
3
16
22
386ea59ce4373df7c251d3b1e4035f90d1b5da67
Tony Arcieri
2020-09-03T00:19:01
k256: impl SignPrimitive (#155) Removes the RecoverableSignPrimitive trait per RustCrypto/signatures#146
diff --git a/Cargo.lock b/Cargo.lock index 7126810b..63a87a93 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -243,7 +243,7 @@ dependencies = [ [[package]] name = "ecdsa" version = "0.7.2" -source = "git+https://github.com/RustCrypto/signatures#ff2b61de5c5fe0621387b4e52e31a36793d3ec1b" +source = "git+https://github.com/...
2
13
4
95af54c4f49545c96084d2c77aaa8019d160f9ba
Tony Arcieri
2020-09-02T23:41:47
k256/p256: update code and examples to use new ECDSA key APIs (#154) These methods simplify ECDSA usages.
diff --git a/Cargo.lock b/Cargo.lock index 70570e00..7126810b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -243,7 +243,7 @@ dependencies = [ [[package]] name = "ecdsa" version = "0.7.2" -source = "git+https://github.com/RustCrypto/signatures#67585389af8c47b4d1cc490f89149ff96ee711f2" +source = "git+https://github.com/...
6
62
28
8f50b1a87609a0c16bce5ebd816f84cad73c35d9
Tony Arcieri
2020-09-02T18:25:29
Rename ecdsa::{Signer, Verifier} => {SigningKey, VerifyKey} (#153) Ala https://github.com/RustCrypto/signatures/pull/140
diff --git a/Cargo.lock b/Cargo.lock index 33e14eae..70570e00 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -243,7 +243,7 @@ dependencies = [ [[package]] name = "ecdsa" version = "0.7.2" -source = "git+https://github.com/RustCrypto/signatures#8d9ca6f4eb983585a62c069d585ec91fb9587aa4" +source = "git+https://github.com/...
8
70
58
0bee2b1d08598b95b71b74a1891136fa10f7a110
Tony Arcieri
2020-09-02T17:07:40
Point compression fixups (#151)
diff --git a/Cargo.lock b/Cargo.lock index 2bbbfdd3..33e14eae 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -243,7 +243,7 @@ dependencies = [ [[package]] name = "ecdsa" version = "0.7.2" -source = "git+https://github.com/RustCrypto/signatures#416e6cc79366a2b7ddc52c98b8ee7bdfb33d9ff8" +source = "git+https://github.com/...
4
14
8
1fc16c477ff72b47afc0e7dbe2cc1173aeed502f
Tony Arcieri
2020-09-02T15:34:15
Rename Curve::ElementSize => FieldSize (#150) See: https://github.com/RustCrypto/traits/pull/282
diff --git a/Cargo.lock b/Cargo.lock index 496d3d16..2bbbfdd3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -243,7 +243,7 @@ dependencies = [ [[package]] name = "ecdsa" version = "0.7.2" -source = "git+https://github.com/RustCrypto/signatures#de67a5244da7cd9d3836b852dd6b7f71104de736" +source = "git+https://github.com/...
4
5
5
b10c96b82a017edebe23d089b934e3a978fb6847
Tony Arcieri
2020-09-02T01:07:11
k256/p256: use shared `util` functions (#149) Migrated to the `elliptic-curve` crate in RustCrypto/traits#281
diff --git a/Cargo.lock b/Cargo.lock index bf84f879..496d3d16 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -259,7 +259,7 @@ checksum = "cd56b59865bce947ac5958779cfa508f6c3b9497cc762b7e24a12d11ccde2c4f" [[package]] name = "elliptic-curve" version = "0.5.0" -source = "git+https://github.com/RustCrypto/traits#fc56c1b4f6...
13
205
273
833d35cb6479ed96c3c0efac36af2db6a90a1ad4
Tony Arcieri
2020-09-02T00:13:00
k256/p256: longer descriptions in Cargo.toml (#148)
diff --git a/k256/Cargo.toml b/k256/Cargo.toml index a34ea3e2..6b6fae37 100644 --- a/k256/Cargo.toml +++ b/k256/Cargo.toml @@ -1,6 +1,10 @@ [package] name = "k256" -description = "K-256 (secp256k1) elliptic curve" +description = """ +Pure Rust implementation of the secp256k1 elliptic curve with support for ECDH, +ECD...
3
21
13
ebca1f632f4639fb7be9a8ffc393748c84784933
Tony Arcieri
2020-09-01T23:57:29
p256: add RFC6979 test vector (#147) Adds a test vector to ensure RFC6979 is implemented correctly. Ideally some form of this can be implemented in the ECDSA crate as well, but for now this is an initial test that it's working correctly.
diff --git a/Cargo.lock b/Cargo.lock index c9c9c1c0..bf84f879 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -243,7 +243,7 @@ dependencies = [ [[package]] name = "ecdsa" version = "0.7.2" -source = "git+https://github.com/RustCrypto/signatures#1ed8c2f8a2bca42fa25372876b23ab3b3be2d7a0" +source = "git+https://github.com/...
2
44
29
e4d229a713f7d793ddd7474b62b018f1ffacaf29
Tony Arcieri
2020-09-01T14:59:36
k256/p256: implement RFC6979 support (#146) Adds support for RFC6979 deterministic ECDSA ephemeral scalars (`k`) using the generic implementation added to the `ecdsa` crate in RustCrypto/signatures#133.
diff --git a/Cargo.lock b/Cargo.lock index 745387d5..c9c9c1c0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -199,6 +199,16 @@ dependencies = [ "lazy_static", ] +[[package]] +name = "crypto-mac" +version = "0.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "58bcd97a54c7ca5ce2f6eb16f...
11
222
169
492996ebe224b62cfbec52d6c28761c60e901ffc
Tony Arcieri
2020-08-26T20:08:45
k256: use NonZeroScalar for ECDSA signature components (#144) Simplifies checks that `r` and `s` are non-zero by using the `NonZeroScalar` type.
diff --git a/Cargo.lock b/Cargo.lock index 8ad0857c..745387d5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -248,7 +248,7 @@ checksum = "cd56b59865bce947ac5958779cfa508f6c3b9497cc762b7e24a12d11ccde2c4f" [[package]] name = "elliptic-curve" version = "0.5.0" -source = "git+https://github.com/RustCrypto/traits#a0cfce36da...
4
25
33
8206097464924b38a719debc8266297f19a03982
Tony Arcieri
2020-08-26T00:59:32
k256: eagerly verify ECDSA scalars are in range (#143) ...when the `ecdsa` feature of the crate is enabled. This provides infallible access to the ECDSA `r()` and `s()` scalars.
diff --git a/k256/src/ecdsa.rs b/k256/src/ecdsa.rs index 41f42958..c445310f 100644 --- a/k256/src/ecdsa.rs +++ b/k256/src/ecdsa.rs @@ -66,6 +66,14 @@ pub use self::{signer::Signer, verifier::Verifier}; use crate::Secp256k1; +#[cfg(feature = "ecdsa")] +use crate::{ + elliptic_curve::{subtle::CtOption, FromBytes}...
3
53
25
dd701d0a0e9afe63742533683c51f5ca786ef4e5
Tony Arcieri
2020-08-26T00:16:12
k256: add `keccak256` feature (#142) Ethereum-style signatures (`k256::ecdsa::recoverable::Signature`) use Keccak256. This commit adds a `keccak256` feature which can be used to compute these signatures using Keccak256 automatically.
diff --git a/Cargo.lock b/Cargo.lock index c4975076..8ad0857c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -44,9 +44,16 @@ version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4152116fd6e9dadb291ae18fc1ec3575ed6d84c29642d97890f4b4a3417297e4" dependencies = [ + "block-padding"...
5
77
16
572ccbb49ccd3108b8fb5ad1006985d3125ef49b
Tony Arcieri
2020-08-25T19:12:06
Implement `EncodedPoint` changes (#141) Replaces the previous `PublicKey` type with `sec1::EncodedPoint`, as introduced in RustCrypto/traits#264. This clears the way for a higher-level PublicKey type.
diff --git a/Cargo.lock b/Cargo.lock index a5216ee1..c4975076 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -13,9 +13,9 @@ dependencies = [ [[package]] name = "autocfg" -version = "1.0.0" +version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f8aac770f1885fd7e387acedd7606530...
23
228
268
bd129f289e855afdec23a47956a03efba3fbdfd5
Tony Arcieri
2020-08-11T05:11:05
k256: fix secp256k1 rustdoc link (#131)
diff --git a/k256/src/lib.rs b/k256/src/lib.rs index 0b3abb8d..5a917860 100644 --- a/k256/src/lib.rs +++ b/k256/src/lib.rs @@ -31,6 +31,8 @@ //! //! Minimum supported Rust version can be changed in the future, but it will be //! done with a minor version bump. +//! +//! [secp256k1]: https://en.bitcoin.it/wiki/Secp25...
1
2
0
6ed059f9efe4398faf2124edca71abc890e588b8
Tony Arcieri
2020-08-11T00:50:30
Bump `elliptic-curve` to v0.5; `ecdsa` to v0.7 (#126) Release notes: - `elliptic-curve` v0.5.0: https://github.com/RustCrypto/traits/pull/254 - `ecdsa` v0.7.0: https://github.com/RustCrypto/signatures/pull/125
diff --git a/Cargo.lock b/Cargo.lock index dd7930a7..826c2a50 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -226,8 +226,9 @@ dependencies = [ [[package]] name = "ecdsa" -version = "0.7.0-pre" -source = "git+https://github.com/RustCrypto/signatures#5bd96712bba5b667bd532c68400bd604f4d06437" +version = "0.7.1" +source =...
5
16
27
2de1ab944c363bbca4e817d7a009bc2102b047e9
Tony Arcieri
2020-08-10T19:47:17
k256/p256: ECDH rustdoc (#125) Provides a usage example for Elliptic Curve Diffie-Hellman. This also tests that the generic implementation is wired up correctly in both crates.
diff --git a/k256/Cargo.toml b/k256/Cargo.toml index fff24720..03434b6a 100644 --- a/k256/Cargo.toml +++ b/k256/Cargo.toml @@ -31,7 +31,7 @@ rand_core = { version = "0.5", features = ["getrandom"] } default = ["arithmetic", "oid", "std"] arithmetic = [] digest = ["ecdsa-core/digest"] -ecdh = ["elliptic-curve/ecdh"] ...
4
72
2
68a83c838f743e4edab8965e90e94f336addb24d
Tony Arcieri
2020-08-10T19:21:43
k256/p256: impl Zeroize for AffinePoint and FieldElement types (#124) This is used by the generic `ecdh` implementation to zero out the transient shared secret value after it's been serialized to bytes.
diff --git a/Cargo.lock b/Cargo.lock index 2aa117e8..dd7930a7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -355,6 +355,7 @@ dependencies = [ "num-bigint", "num-traits", "proptest", + "rand_core", "sha2", ] @@ -461,6 +462,7 @@ dependencies = [ "hex", "hex-literal", "proptest", + "rand_core", "sha2", ]...
13
142
7
86845cf29a1a658693cd3798f4967458f25b14bf
Tony Arcieri
2020-08-07T23:22:48
k256: impl new RecoverableSignPrimitive API (#123) Implements the changes made in RustCrypto/signatures#120. These changes have the `k256` always compute a `recoverable::Signature` via `RecoverableSignPrimitive` and use the blanket impl of `SignPrimitive` for `RecoverableSignPrimitive` to convert it to a regular...
diff --git a/Cargo.lock b/Cargo.lock index 19e07e0d..2aa117e8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -227,7 +227,7 @@ dependencies = [ [[package]] name = "ecdsa" version = "0.7.0-pre" -source = "git+https://github.com/RustCrypto/signatures#a420b3346a7aa3428bd3f52107286b031c56dca1" +source = "git+https://github....
3
17
20
ac9c80e480abc6f71ab5e99e60a6311a954242bf
Bogdan Opanchuk
2020-08-07T13:53:25
k256: normalize() before is_odd() (#121)
diff --git a/k256/src/ecdsa/signer.rs b/k256/src/ecdsa/signer.rs index 179fd04e..40a5c33f 100644 --- a/k256/src/ecdsa/signer.rs +++ b/k256/src/ecdsa/signer.rs @@ -131,7 +131,7 @@ impl RecoverableSignPrimitive<Secp256k1> for Scalar { } let signature = Signature::from_scalars(&r.into(), &s.into()); - ...
1
1
1
b4bda851f8d17de404ac44e3e0641ea35dfaea53
Tony Arcieri
2020-08-06T21:07:15
k256/p256/p384: Elliptic Curve Diffie-Hellman (#120) Adds type aliases for the high-level generic Elliptic Curve Diffie-Hellman (Ephemeral) implementation introduced in RustCrypto/traits#251.
diff --git a/Cargo.lock b/Cargo.lock index 0a94207c..19e07e0d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -88,9 +88,9 @@ checksum = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822" [[package]] name = "clap" -version = "2.33.1" +version = "2.33.2" source = "registry+https://github.com/rust-lang/cr...
8
48
12
93f7ff9e17fef239e63e993956a391de9899bfd8
Tony Arcieri
2020-08-05T03:26:29
k256: use `ecdsa` crate low-S normalization support (#118) Impls the newly added `ecdsa::NormalizeLow` trait, which enables using the `ecdsa::Signature::normalize_s` method.
diff --git a/Cargo.lock b/Cargo.lock index 3689f68b..0a94207c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -227,7 +227,7 @@ dependencies = [ [[package]] name = "ecdsa" version = "0.7.0-pre" -source = "git+https://github.com/RustCrypto/signatures#a7dde254d74b05158504c6fe20bb2dde4a3fe102" +source = "git+https://github....
5
83
91
4b044a0be99b91ccd4999d556ff810b2dce3eaa9
Tony Arcieri
2020-08-05T01:44:50
k256/p256: use new `elliptic_curve::encoding` module (#117) Impls the new `FromBytes` traits introduced in RustCrypto/traits#247, and changes `to_bytes()` to return `ElementBytes`.
diff --git a/Cargo.lock b/Cargo.lock index 2273338a..3689f68b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -227,7 +227,7 @@ dependencies = [ [[package]] name = "ecdsa" version = "0.7.0-pre" -source = "git+https://github.com/RustCrypto/signatures#5e2a6b5d84a483a79ef85312b3729821d07db207" +source = "git+https://github....
18
174
161
caf64b36e5fe8d2b57240ecb2e940907f09ad668
Tony Arcieri
2020-08-04T20:35:33
Rename ScalarBytes to ElementBytes (#116) Per RustCrypto/traits#246
diff --git a/Cargo.lock b/Cargo.lock index e4fa95e1..2273338a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -227,7 +227,7 @@ dependencies = [ [[package]] name = "ecdsa" version = "0.7.0-pre" -source = "git+https://github.com/RustCrypto/signatures#4124ce390d4c7aedb7226ac11475f567464d3e7d" +source = "git+https://github....
11
21
21
93edc8b508b892d77d241df20c3202fda03992d1
Tony Arcieri
2020-08-04T16:43:08
Use `const_oid` crate (#113) Uses types from the `const-oid` crate to define OIDs (optionally, gated on the `oid` cargo feature)
diff --git a/Cargo.lock b/Cargo.lock index dd3676d9..99e90650 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -97,6 +97,12 @@ dependencies = [ "unicode-width", ] +[[package]] +name = "const-oid" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a2d9162b7289a46e86208d6af2...
7
31
9
837efaf23978ce5a6aaed0671d92167dac6c7bec
Tony Arcieri
2020-08-04T14:27:36
k256: add debug assertions for ECDSA pubkey recovery (#112) Adds `debug_assertions` to ensure that the correct public key is recovered from every signature.
diff --git a/k256/src/ecdsa/signer.rs b/k256/src/ecdsa/signer.rs index f3ecd4a3..5595e16c 100644 --- a/k256/src/ecdsa/signer.rs +++ b/k256/src/ecdsa/signer.rs @@ -72,16 +72,22 @@ impl RandomizedSigner<recoverable::Signature> for Signer { ) -> Result<recoverable::Signature, Error> { let d = Scalar::from_se...
1
11
5
109e7ab87e121904b487abdcf329ff3a136bf26e
Tony Arcieri
2020-08-04T04:25:02
k256: impl ecdsa::hazmat::RecoverableSignPrimitive (#111) Impls the `RecoverableSignPrimitive` trait introduced in RustCrypto/signatures#111 which returns the necessary information (even-or-odd) about the ECDSA signature's `R` y-coordinate to be able to compute the recovery ID without using brute force trial recove...
diff --git a/Cargo.lock b/Cargo.lock index cf1f4fcf..dd3676d9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -221,7 +221,7 @@ dependencies = [ [[package]] name = "ecdsa" version = "0.7.0-pre" -source = "git+https://github.com/RustCrypto/signatures#9cba7dff2fc017bc6dcbeb60f76f1f2e5215f798" +source = "git+https://github....
3
42
24
fe1d9cc73e7ce9805f4c88764e5bfa6596b65df3
Tony Arcieri
2020-08-04T01:35:18
k256: add ecdsa::recoverable::Signature::from_trial_recovery (#110) The previous method was failing about 52% of the time, and was probably failing to consider some combination of low-S or potentially r overflowing the scalar field(?) This commit a method for computing a `recoverable::Signature` from any ECDSA/s...
diff --git a/k256/src/ecdsa/recoverable.rs b/k256/src/ecdsa/recoverable.rs index 6b70fd54..684af7d1 100644 --- a/k256/src/ecdsa/recoverable.rs +++ b/k256/src/ecdsa/recoverable.rs @@ -4,6 +4,34 @@ //! recovery of the [`PublicKey`] used to create them. This is helpful in //! cases where the hash/fingerprint of a key us...
2
69
24
589a7937a0c4e2a5a2a5d0b2d5a8ce95eba42e97
Tony Arcieri
2020-08-03T23:15:34
k256: have ecdsa::Signer cache public key (#109) Replaces the previous precomputed recovery ID with a stored PublicKey. This is generally useful and makes it possible to retrieve a PublicKey from a Signer instance.
diff --git a/Cargo.lock b/Cargo.lock index 49ffd23a..cf1f4fcf 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -236,7 +236,7 @@ checksum = "bb1f6b1ce1c140482ea30ddd3335fc0024ac7ee112895426e0a629a6c20adfe3" [[package]] name = "elliptic-curve" version = "0.5.0-pre" -source = "git+https://github.com/RustCrypto/traits#efefde...
3
41
32
29e98d60311567fa604b7dc54b2d2366bafd87c1
Tony Arcieri
2020-08-03T19:11:07
k256: ecdsa::{Signer, Verifier} newtypes (#108) Adds newtypes for ECDSA signing and verification which support `k256::ecdsa::recoverable::Signature` in addition to `k256::ecdsa::Signature`. This allows the signature type to be selected by the return value.
diff --git a/k256/Cargo.toml b/k256/Cargo.toml index c1d127c9..0fd3f252 100644 --- a/k256/Cargo.toml +++ b/k256/Cargo.toml @@ -30,7 +30,7 @@ criterion = "0.3" default = ["arithmetic", "std"] arithmetic = [] digest = ["ecdsa-core/digest"] -ecdsa = ["arithmetic", "ecdsa-core/signer", "ecdsa-core/verifier", "sha256", "...
8
263
134
b0ae6fd9dcfdd170e890d8358994944296318b7c
Tony Arcieri
2020-08-02T19:18:51
k256: ensure ECDSA signatures are low-S normalized (#107) Per BIP0062: https://github.com/bitcoin/bips/blob/master/bip-0062.mediawiki
diff --git a/k256/src/ecdsa.rs b/k256/src/ecdsa.rs index ab89024d..0741795f 100644 --- a/k256/src/ecdsa.rs +++ b/k256/src/ecdsa.rs @@ -143,6 +143,11 @@ impl VerifyPrimitive<Secp256k1> for AffinePoint { return Err(Error::new()); }; + // Ensure signature is "low S" normalized ala BIP 0062 +...
1
5
0