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 |
|---|---|---|---|---|---|---|---|
64a38d74fac66fc0f706f6e50920712f6a0f29d0 | daxpedda | 2022-01-18T15:19:48 | Fix `hash2curve` crate feature (#519) | diff --git a/k256/Cargo.toml b/k256/Cargo.toml
index 7bed5a42..b78a06d3 100644
--- a/k256/Cargo.toml
+++ b/k256/Cargo.toml
@@ -46,7 +46,7 @@ digest = ["ecdsa-core/digest", "ecdsa-core/hazmat"]
ecdh = ["arithmetic", "elliptic-curve/ecdh"]
ecdsa = ["arithmetic", "digest", "ecdsa-core/sign", "ecdsa-core/verify"]
expose... | 2 | 2 | 2 |
f0f7477f701d41449d0987e835693aef7fa8302b | Tony Arcieri | 2022-01-17T15:44:34 | k256+p256: move `Scalar` impl blocks to top of module (#516)
Reorders the impl blocks containing inherent constants/methods to the
top of the module, following suit with how the `affine` and `projective`
modules have been reorganized. | diff --git a/k256/src/arithmetic/scalar.rs b/k256/src/arithmetic/scalar.rs
index 54ed21cd..3f311772 100644
--- a/k256/src/arithmetic/scalar.rs
+++ b/k256/src/arithmetic/scalar.rs
@@ -77,141 +77,6 @@ const FRAC_MODULUS_2: U256 = ORDER.shr_vartime(1);
#[cfg_attr(docsrs, doc(cfg(feature = "arithmetic")))]
pub struct Sca... | 2 | 278 | 278 |
39b9001825f8d8c6798561818885517cc9908659 | Tony Arcieri | 2022-01-15T20:42:26 | Cargo.lock: bump dependencies (#514) | diff --git a/Cargo.lock b/Cargo.lock
index 1f00a273..a34d6b16 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -19,11 +19,17 @@ version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a"
+[[package]]
+name = "base16ct"
... | 1 | 86 | 65 |
5b25e50d4b70ac3cdbcf5fe31a147459c26d48d9 | Tony Arcieri | 2022-01-12T20:16:08 | p256: consolidate `ProjectivePoint` impl blocks (#512)
Moves the inherent method definitions to the same impl block as the one
that defines the `IDENTITY` and `GENERATOR` constants. | diff --git a/k256/src/arithmetic/projective.rs b/k256/src/arithmetic/projective.rs
index 1f4fde5a..1ec28094 100644
--- a/k256/src/arithmetic/projective.rs
+++ b/k256/src/arithmetic/projective.rs
@@ -253,6 +253,12 @@ impl From<ProjectivePoint> for AffinePoint {
}
}
+impl From<&ProjectivePoint> for AffinePoint {
... | 2 | 131 | 115 |
2384c41058921f9754f05f63a41289dbd6c4ae8f | Tony Arcieri | 2022-01-12T19:54:37 | k256: `IDENTITY` and `GENERATOR` point constants (#511)
Adds inherent constants to `AffinePoint` and `ProjectivePoint`
representing the identity and generator points.
This should make it possible to write `const fn`s that produce things
like precomputed basepoint tables (see #508).
Deprecates the previous inhe... | diff --git a/k256/bench/scalar.rs b/k256/bench/scalar.rs
index 5f5abe49..f3d41c0b 100644
--- a/k256/bench/scalar.rs
+++ b/k256/bench/scalar.rs
@@ -28,14 +28,14 @@ fn test_scalar_y() -> Scalar {
}
fn bench_point_mul<'a, M: Measurement>(group: &mut BenchmarkGroup<'a, M>) {
- let p = ProjectivePoint::generator();
+... | 7 | 164 | 136 |
fb38001be19433885ef79e063de3a5df63862699 | Tony Arcieri | 2022-01-12T18:58:46 | p256: `IDENTITY` and `GENERATOR` point constants (#510)
Adds inherent constants to `AffinePoint` and `ProjectivePoint`
representing the identity and generator points.
This should make it possible to write `const fn`s that produce things
like precomputed basepoint tables (see #508).
Deprecates the previous inhe... | diff --git a/p256/src/arithmetic/affine.rs b/p256/src/arithmetic/affine.rs
index e348d2a4..7821f000 100644
--- a/p256/src/arithmetic/affine.rs
+++ b/p256/src/arithmetic/affine.rs
@@ -38,25 +38,28 @@ impl AffineArithmetic for NistP256 {
#[derive(Clone, Copy, Debug)]
#[cfg_attr(docsrs, doc(cfg(feature = "arithmetic")))... | 2 | 106 | 89 |
3683c7ec8dedae89cfcdb752283625640352f144 | Tony Arcieri | 2022-01-12T18:35:43 | p256: make `AffinePoint::generator` closer to const-friendly (#509)
This is a stepping stone towards solving #508.
Replaces the implementation of `AffinePoint::generator` with one that
uses Rust literal syntax to construct the field elements which represent
the base point's affine coordinates.
Coordinates are ... | diff --git a/p256/src/arithmetic/affine.rs b/p256/src/arithmetic/affine.rs
index 67cce660..e348d2a4 100644
--- a/p256/src/arithmetic/affine.rs
+++ b/p256/src/arithmetic/affine.rs
@@ -7,7 +7,6 @@ use crate::{CompressedPoint, EncodedPoint, FieldBytes, NistP256, Scalar};
use core::ops::{Mul, Neg};
use elliptic_curve::{
... | 1 | 21 | 15 |
ba1c026c846d06b1c0da7b8ce70bfdd7b952668c | daxpedda | 2022-01-10T16:07:17 | Implement `ReduceNonZero<U256>` for `p256::Scalar` (#507) | diff --git a/p256/src/arithmetic/scalar.rs b/p256/src/arithmetic/scalar.rs
index c492cf92..aad94ea4 100644
--- a/p256/src/arithmetic/scalar.rs
+++ b/p256/src/arithmetic/scalar.rs
@@ -11,7 +11,7 @@ use elliptic_curve::{
bigint::{prelude::*, Limb, U256},
generic_array::arr,
group::ff::{Field, PrimeField},
... | 1 | 10 | 1 |
b4ebe62b1ed79111b68985393e031fc1c24f3911 | Bogdan Opanchuk | 2022-01-04T15:16:02 | k256: add impl of `ReduceNonZero<U256>` for `Scalar` (#501) | diff --git a/k256/src/arithmetic/scalar.rs b/k256/src/arithmetic/scalar.rs
index adb2aa29..54ed21cd 100644
--- a/k256/src/arithmetic/scalar.rs
+++ b/k256/src/arithmetic/scalar.rs
@@ -589,6 +589,15 @@ impl Reduce<U512> for Scalar {
}
}
+impl ReduceNonZero<U256> for Scalar {
+ fn from_uint_reduced_nonzero(w: U... | 3 | 107 | 7 |
f60fc7fb9db7d73bfead1d10350ed85872c00b54 | Tony Arcieri | 2021-12-23T18:30:49 | k256+p256: impl `ff::Field` trait for `FieldElement` (#498)
Allows for writing code which is generic over field elements, such as
the optimized SWU implementation added in RustCrypto/traits#854 | diff --git a/k256/src/arithmetic/affine.rs b/k256/src/arithmetic/affine.rs
index 09031a14..c51b6dc2 100644
--- a/k256/src/arithmetic/affine.rs
+++ b/k256/src/arithmetic/affine.rs
@@ -1,9 +1,12 @@
//! Affine points
+#![allow(clippy::op_ref)]
+
use super::{FieldElement, ProjectivePoint, CURVE_EQUATION_B};
use crate:... | 7 | 273 | 81 |
c082b422be00e675070546ddc0d22f016b3b3dc5 | Tony Arcieri | 2021-12-19T19:08:35 | p384: factor `Scalar::mul` into an inherent method (#494)
An inherent method is easier to constify, although that isn't possible
until `Scalar::montgomery_reduce` is `const fn`, which requires a
`const fn` implementation of conditionally subtracting the modulus. | diff --git a/p384/src/arithmetic/scalar.rs b/p384/src/arithmetic/scalar.rs
index dc49de54..5fb85d06 100644
--- a/p384/src/arithmetic/scalar.rs
+++ b/p384/src/arithmetic/scalar.rs
@@ -148,6 +148,71 @@ impl Scalar {
self.0.to_be_bytes()
}
+ /// Multiply a scalar by another scalar.
+ #[cfg(target_poi... | 1 | 67 | 62 |
6fcf10fd8cd357703fbe8cf2cbbb1eff474eea87 | Tony Arcieri | 2021-12-19T18:56:29 | p384: add basic tests for `Scalar` arithmetic (#493)
Currently not passing and flagged with `#[ignore]`.
Also moves `montgomery_reduce` into the `Scalar` type as a static method | diff --git a/p384/Cargo.toml b/p384/Cargo.toml
index e1d1f424..9100e2f5 100644
--- a/p384/Cargo.toml
+++ b/p384/Cargo.toml
@@ -22,7 +22,7 @@ sha2 = { version = "0.9", optional = true, default-features = false }
hex-literal = "0.3"
[features]
-default = ["arithmetic", "pkcs8", "std"]
+default = ["pkcs8", "std"]
ari... | 2 | 129 | 82 |
09ae780cbdc82d6e0dc92aa9428837ff05f75ee5 | Tony Arcieri | 2021-12-19T18:46:46 | p384: add `FieldElement::{to_canonical, to_montgomery}` (#492)
Adds wrappers for fiat-crypto's `fiat_p384_from_montgomery` and
`fiat_p384_to_montgomery`, using them to translate field elements into
and out of the Montgomery domain when decoding or encoding them from big
endian-serialized canonical form.
Also ens... | diff --git a/p256/src/arithmetic/affine.rs b/p256/src/arithmetic/affine.rs
index ff03cc2f..6a2e0caa 100644
--- a/p256/src/arithmetic/affine.rs
+++ b/p256/src/arithmetic/affine.rs
@@ -184,13 +184,13 @@ impl DecompactPoint<NistP256> for AffinePoint {
let montgomery_y = (x * &x * &x + &(CURVE_EQUATION_A * &x)... | 4 | 50 | 26 |
c77e0c40a89f859fd4d18a0228ddd448920c7b0f | Tony Arcieri | 2021-12-19T18:09:11 | p384: add `AffinePoint` (#491)
Partial implementation of `AffinePoint`, with coordinates internally
represented using `FieldElement` type which wraps fiat-crypto's base
field arithmetic.
With this in place, `FieldElement` can be removed from the public API
without any warnings about dead code.
Note: the imple... | diff --git a/Cargo.lock b/Cargo.lock
index 513c018f..6ed450aa 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -591,6 +591,7 @@ version = "0.9.0"
dependencies = [
"ecdsa",
"elliptic-curve",
+ "hex-literal",
"sec1",
"sha2",
]
diff --git a/p256/src/arithmetic/affine.rs b/p256/src/arithmetic/affine.rs
index 7c7c86d8.... | 7 | 511 | 19 |
7d34b9e7fff5908bcc400207a18fa76dd8f045f4 | Tony Arcieri | 2021-12-04T19:45:57 | k256+p256: use revised `LinearCombination` trait (#478)
See RustCrypto/traits#835 | diff --git a/Cargo.lock b/Cargo.lock
index 80824f60..47920edf 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -310,9 +310,9 @@ dependencies = [
[[package]]
name = "ecdsa"
-version = "0.13.2"
+version = "0.13.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "c53b3bbf1444521719a1d36fb4aaac... | 9 | 30 | 37 |
ad7bbc5d04d048ebe5ec81ebdf9501d415de372b | Tony Arcieri | 2021-12-04T18:11:03 | Cargo.lock: bump dependencies (#477) | diff --git a/Cargo.lock b/Cargo.lock
index a7646165..80824f60 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -310,9 +310,9 @@ dependencies = [
[[package]]
name = "ecdsa"
-version = "0.13.1"
+version = "0.13.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b5e40959e82eac077dc03476895600... | 1 | 4 | 4 |
9af31a3b2e6ff48cc82158a40bf47efed3fecb45 | Tony Arcieri | 2021-12-04T17:31:30 | k256+p256: impl `LinearCombination` trait (#476)
Adds impls of traits for linear combinations added in
RustCrypto/traits#833:
- `k256` uses an optimized implementation.
- `p256` uses the default unoptimized implementation. | diff --git a/Cargo.lock b/Cargo.lock
index 6cf4ab9b..a7646165 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -328,9 +328,9 @@ checksum = "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457"
[[package]]
name = "elliptic-curve"
-version = "0.11.3"
+version = "0.11.4"
source = "registry+https://github.com/... | 9 | 42 | 32 |
6942b220b8ab92abe3f276f07a2e7220f88ff26b | Tony Arcieri | 2021-12-03T21:23:33 | k256: impl `ReduceNonZero<U512>` for `Scalar` (#474)
Provides an impl of the `ReduceNonZero` trait added in
RustCrypto/elliptic-curves#827, which provides a reduction from a
512-bit (64-byte) input, i.e. a "wide" reduction from an integer twice
the size of the curve's order, to a `Scalar` which is guaranteed to be
... | diff --git a/Cargo.lock b/Cargo.lock
index 8b55a36d..6cf4ab9b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -328,9 +328,9 @@ checksum = "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457"
[[package]]
name = "elliptic-curve"
-version = "0.11.2"
+version = "0.11.3"
source = "registry+https://github.com/... | 5 | 90 | 33 |
5d10bcc69b77919b7348d8961126b8f4f4d9390b | Tony Arcieri | 2021-12-03T19:42:57 | k256: use `ecdsa::hazmat::rfc6979_generate_k` (#473)
The extraction of the RFC6979 implementation in the `ecdsa` crate into
the `rfc6979` crate resulted in a suboptimal API for general use.
This commit uses a helper function added in `ecdsa` v0.13.1 which
simplifies the API. | diff --git a/Cargo.lock b/Cargo.lock
index 2fee9380..8b55a36d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -21,9 +21,9 @@ checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a"
[[package]]
name = "base64ct"
-version = "1.2.0"
+version = "1.3.0"
source = "registry+https://github.com/rust-lang/... | 2 | 19 | 49 |
eae1ff4297905c556651afefe8e4facc86540a3f | Tony Arcieri | 2021-12-03T16:56:47 | k256: impl `Reduce<U512>` for `Scalar` (#472)
Adds a second impl of the `Reduce` trait for `Scalar` (where the first
was `U256`).
This provides a simple thunk to `WideScalar::reduce`. | diff --git a/k256/src/arithmetic/scalar.rs b/k256/src/arithmetic/scalar.rs
index 8d124952..eb32518c 100644
--- a/k256/src/arithmetic/scalar.rs
+++ b/k256/src/arithmetic/scalar.rs
@@ -9,7 +9,7 @@ pub(crate) use self::wide::WideScalar;
use crate::{FieldBytes, Secp256k1, ORDER};
use core::ops::{Add, AddAssign, Mul, MulA... | 6 | 19 | 8 |
0069b864b87af31517fb091dd653642f5b7ecbe4 | Tony Arcieri | 2021-12-01T00:29:22 | Cargo.lock: bump dependencies (#470) | diff --git a/Cargo.lock b/Cargo.lock
index 3e1a514e..2fee9380 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -141,9 +141,9 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
[[package]]
name = "clap"
-version = "2.33.3"
+version = "2.34.0"
source = "registry+https://github.com/rust-lang/... | 1 | 10 | 10 |
12686972ebb0d977e0db461fb5dde3c3fa96f1d5 | Tony Arcieri | 2021-11-22T16:12:59 | p256 v0.10.0-pre.1 (#469) | diff --git a/Cargo.lock b/Cargo.lock
index 8908abe6..3e1a514e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -573,7 +573,7 @@ checksum = "624a8340c38c1b80fd549087862da4ba43e08858af025b236e509b6649fc13d5"
[[package]]
name = "p256"
-version = "0.10.0-pre"
+version = "0.10.0-pre.1"
dependencies = [
"blobby",
"ecdsa"... | 3 | 3 | 3 |
9472b8d186a5683e5349cd63cade2b34f69bd371 | Tony Arcieri | 2021-11-22T15:55:49 | k256 v0.10.0-pre.1 (#468) | diff --git a/Cargo.lock b/Cargo.lock
index 207c1f05..8908abe6 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -460,7 +460,7 @@ dependencies = [
[[package]]
name = "k256"
-version = "0.10.0-pre"
+version = "0.10.0-pre.1"
dependencies = [
"blobby",
"cfg-if",
diff --git a/k256/Cargo.toml b/k256/Cargo.toml
index f7e8e... | 3 | 3 | 3 |
af25e191c183cd24a21a8e48bcda9afe05fade2b | Tony Arcieri | 2021-11-20T15:04:31 | Bump `elliptic-curve` crate dependency to v0.11 (#466) | diff --git a/Cargo.lock b/Cargo.lock
index 0bb79f88..4360b73c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -311,7 +311,7 @@ dependencies = [
[[package]]
name = "ecdsa"
version = "0.13.0-pre"
-source = "git+https://github.com/RustCrypto/signatures.git#62a3f860f800f7c17ff3f868827e0780c838abba"
+source = "git+https://gi... | 7 | 11 | 11 |
e75679e229eaa207c7a8076e012e856698f0c3c8 | Tony Arcieri | 2021-11-19T20:51:36 | p256: add serde `Serialize`/`Deserialize` impls (#465)
Adds impls of `serde` traits for the following types:
- `AffinePoint`
- `Scalar` | diff --git a/p256/Cargo.toml b/p256/Cargo.toml
index 861a0ab0..2b8534f8 100644
--- a/p256/Cargo.toml
+++ b/p256/Cargo.toml
@@ -40,7 +40,7 @@ digest = ["ecdsa-core/digest", "ecdsa-core/hazmat"]
ecdh = ["arithmetic", "elliptic-curve/ecdh"]
ecdsa = ["arithmetic", "ecdsa-core/sign", "ecdsa-core/verify", "sha256"]
jwk = ... | 3 | 88 | 2 |
388b62bf00ace0d35d3e347c6f5085226ee2adfc | Tony Arcieri | 2021-11-19T17:33:15 | k256: add serde `Serialize`/`Deserialize` impls (#464)
Adds impls of `serde` traits for the following types:
- `AffinePoint`
- `Scalar`
- `ecdsa::VerifyingKey` | diff --git a/Cargo.lock b/Cargo.lock
index 3e92a4c2..0bb79f88 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -328,7 +328,7 @@ checksum = "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457"
[[package]]
name = "elliptic-curve"
version = "0.11.0-pre"
-source = "git+https://github.com/RustCrypto/traits.git#8... | 7 | 127 | 7 |
79dac2d67e4535100ac666ffb70b7ff1d429a3e2 | Tony Arcieri | 2021-11-18T03:36:52 | Update `ecdsa` crate and leverage generic ECDSA implementations (#462)
This updates the crates in this repo to leverage the following generic
implementations recently added to the `ecdsa` crate:
- Sign: RustCrypto/signatures#396
- Verify: RustCrypto/signatures#397
The `p256` crate is able to directly utilize t... | diff --git a/Cargo.lock b/Cargo.lock
index eb3671e7..a5d66998 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -245,9 +245,9 @@ dependencies = [
[[package]]
name = "crypto-bigint"
-version = "0.3.0"
+version = "0.3.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "476ecdba12db8402a1664482... | 12 | 110 | 125 |
06a8d43cb7dfb1f71bb33e2937137dc721a48993 | Tony Arcieri | 2021-11-18T02:21:59 | k256: remove deprecated `SigningKey::verify_key` method (#461)
It has been renamed to `SigningKey::verifying_key` instead. | diff --git a/k256/src/ecdsa/recoverable.rs b/k256/src/ecdsa/recoverable.rs
index 491a6f55..754b6e56 100644
--- a/k256/src/ecdsa/recoverable.rs
+++ b/k256/src/ecdsa/recoverable.rs
@@ -22,7 +22,7 @@
//!
//! // Signing
//! let signing_key = SigningKey::random(&mut OsRng); // Serialize with `::to_bytes()`
-//! let verif... | 2 | 1 | 7 |
2dc76fb2e36bc9ff48fc447ca6f130f4f7caeccb | Tony Arcieri | 2021-11-17T17:22:26 | Use released RustCrypto/formats crates (#460)
Removes the git-based dependencies | diff --git a/Cargo.lock b/Cargo.lock
index 09122c13..eb3671e7 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -25,11 +25,6 @@ version = "1.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "392c772b012d685a640cdad68a5a21f4a45e696f85a2c2c907aab2fe49a91e19"
-[[package]]
-name = "base64ct"
-... | 2 | 24 | 27 |
acd7cf730d00a69a45f40d08f968d22cce08b4a6 | Tony Arcieri | 2021-11-16T21:09:49 | Update `pkcs8` crate (#459)
Updates to the latest git version of the `pkcs8` crate, which uses
`TryFrom` to handle the final step of decoding keys | diff --git a/Cargo.lock b/Cargo.lock
index e0b0ac06..09122c13 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -28,7 +28,7 @@ checksum = "392c772b012d685a640cdad68a5a21f4a45e696f85a2c2c907aab2fe49a91e19"
[[package]]
name = "base64ct"
version = "1.2.0"
-source = "git+https://github.com/RustCrypto/formats.git#3d1aaeed5d22c... | 3 | 35 | 25 |
231c650433efd2fbb2e71ed855c931db7d0c81c5 | Tony Arcieri | 2021-11-14T21:58:24 | Bump dependencies (#458)
Updates to the latest `elliptic-curve` and RustCrypto/formats crates | diff --git a/Cargo.lock b/Cargo.lock
index 9dd44fea..e0b0ac06 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -21,14 +21,14 @@ checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a"
[[package]]
name = "base64ct"
-version = "1.1.1"
+version = "1.2.0"
source = "registry+https://github.com/rust-lan... | 5 | 40 | 41 |
90412fe7bf002dce1cb7cb8cc4c689895b85068c | Tony Arcieri | 2021-10-21T22:21:13 | Remove `TryFrom`/`TryInto` imports (#454)
Now that we've upgraded to Rust 2021 edition, these are now available
via the prelude, making explicit imports redundant. | diff --git a/k256/src/ecdsa/recoverable.rs b/k256/src/ecdsa/recoverable.rs
index 30de1509..491a6f55 100644
--- a/k256/src/ecdsa/recoverable.rs
+++ b/k256/src/ecdsa/recoverable.rs
@@ -35,10 +35,7 @@
//! # }
//! ```
-use core::{
- convert::{TryFrom, TryInto},
- fmt::{self, Debug},
-};
+use core::fmt::{self, Deb... | 3 | 1 | 7 |
a585b24f0a00fa8a1207f141e008fc5e1c98e64a | Tony Arcieri | 2021-10-18T03:39:29 | Bump `pkcs8` crate; update encoding traits (#452)
Updates `pkcs8` and related crates to use the new trait names after they
were renamed in RustCrypto/formats#121. | diff --git a/Cargo.lock b/Cargo.lock
index f9d27319..dfad7767 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -28,7 +28,7 @@ checksum = "e6b4d9b1225d28d360ec6a231d65af1fd99a2a095154c8040689617290569c5c"
[[package]]
name = "base64ct"
version = "1.1.1"
-source = "git+https://github.com/RustCrypto/formats.git#98d7a2896d671... | 4 | 28 | 25 |
139ef38f3bd35bde6d96c5e496ccf9d3f6132209 | Tony Arcieri | 2021-10-09T20:48:52 | Use prerelease format parsers (#450)
Pull in the prerelease format parsers so we can properly integration
test them for the elliptic curve use case. | diff --git a/Cargo.lock b/Cargo.lock
index d24c1afa..490a3d9a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -25,6 +25,11 @@ version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "40a96587c05c810ddbb79e2674d519cff1379517e7b91d166dff7a7cc0e9af6e"
+[[package]]
+name = "base64ct"
+... | 2 | 39 | 22 |
c9a4d35f01f9b9708769a95a36515fbd90d07810 | Tony Arcieri | 2021-10-09T18:52:23 | k256: impl `Drop` for `ecdsa::SigningKey` (#449)
Adds a `Drop` handler which calls `zeroize()` on the `NonZeroScalar`
which the `SigningKey` newtype wraps. | diff --git a/k256/src/ecdsa/sign.rs b/k256/src/ecdsa/sign.rs
index ee2a9309..e31336a8 100644
--- a/k256/src/ecdsa/sign.rs
+++ b/k256/src/ecdsa/sign.rs
@@ -19,6 +19,7 @@ use elliptic_curve::{
ops::{Invert, Reduce},
rand_core::{CryptoRng, RngCore},
subtle::{Choice, ConstantTimeEq},
+ zeroize::Zeroize,
... | 1 | 7 | 0 |
daa50d5ec469cb70d60f101475863354e269fef7 | Tony Arcieri | 2021-10-09T18:26:18 | Cargo.lock: bump dependencies (#448) | diff --git a/Cargo.lock b/Cargo.lock
index 3bae53d7..d24c1afa 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -289,9 +289,9 @@ dependencies = [
[[package]]
name = "der"
-version = "0.4.3"
+version = "0.4.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2adca118c71ecd9ae094d4b68257b3fdfc... | 1 | 10 | 10 |
b66283cf1f1108d9a5568441f641a9bb3279ebf2 | Tony Arcieri | 2021-10-02T19:31:35 | k256+p256: handle identity point in `GroupEncoding` (#446)
`GroupEncoding` uses a fixed-width `Repr` whereas SEC1 is variable-width
with respect to compressed points versus the identity.
This change allows 33-bytes of zeroes to be used as the identity.
Technically that's not a valid SEC1 encoding: the SEC1 encodi... | diff --git a/k256/src/arithmetic/affine.rs b/k256/src/arithmetic/affine.rs
index 4f9fd972..06196eb8 100644
--- a/k256/src/arithmetic/affine.rs
+++ b/k256/src/arithmetic/affine.rs
@@ -132,11 +132,15 @@ impl GroupEncoding for AffinePoint {
type Repr = CompressedPoint;
fn from_bytes(bytes: &Self::Repr) -> CtOp... | 4 | 55 | 22 |
3b1d44aec6f5d44f0b7340fe77c789ce6a30335b | Tony Arcieri | 2021-10-02T18:54:18 | k256+p256: make `FromEncodedPoint` return a `CtOption` (#445)
Corresponding changes for:
https://github.com/RustCrypto/traits/pull/782
Internally these were already returning `CtOption` anyway. It should
also simplify the implementation of `GroupEncoding`. | diff --git a/Cargo.lock b/Cargo.lock
index 2c3d9895..3bae53d7 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -308,7 +308,7 @@ dependencies = [
[[package]]
name = "ecdsa"
version = "0.13.0-pre"
-source = "git+https://github.com/RustCrypto/signatures.git#010da678be92aa557a26154b6a5d5345dcc0dd92"
+source = "git+https://gi... | 5 | 59 | 72 |
9a93c977c8429f41ce99e32aea32e4555682ed66 | daxpedda | 2021-09-30T18:14:55 | Fix `to_bytes()` for `ProjectivePoint::identity()` (#443) | diff --git a/p256/src/arithmetic/projective.rs b/p256/src/arithmetic/projective.rs
index 05d26ad8..24fc7619 100644
--- a/p256/src/arithmetic/projective.rs
+++ b/p256/src/arithmetic/projective.rs
@@ -75,7 +75,11 @@ impl GroupEncoding for ProjectivePoint {
}
fn to_bytes(&self) -> Self::Repr {
- Compres... | 1 | 12 | 2 |
2d91c1674595818e0904812d4f604d912d8ec9a3 | Tony Arcieri | 2021-09-23T19:52:32 | k256+p256: replace `ecdsa::hazmat::FromDigest` with `Reduce` (#438)
The `FromDigest` trait has been removed from the `ecdsa` crate, in favor
of using the `Reduce` trait:
https://github.com/RustCrypto/signatures/pull/372
This is the corresponding set of changes to the above upstream PR to the
`ecdsa` crate whic... | diff --git a/Cargo.lock b/Cargo.lock
index a789a0cb..2c3d9895 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -308,7 +308,7 @@ dependencies = [
[[package]]
name = "ecdsa"
version = "0.13.0-pre"
-source = "git+https://github.com/RustCrypto/signatures.git#c730a0fe33c0ab65974e76f70991466e8d862ed2"
+source = "git+https://gi... | 4 | 9 | 41 |
e922692856cfe6ca893cc65c9f8a08a275f79137 | Tony Arcieri | 2021-09-22T21:27:35 | Use the `sec1` v0.1 crate release (#437)
Bumps `elliptic-curve` and `ecdsa` git hashes and removes patch
dependencies for `der` and `sec1`. | diff --git a/Cargo.lock b/Cargo.lock
index 31310a55..a789a0cb 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -100,9 +100,9 @@ dependencies = [
[[package]]
name = "bstr"
-version = "0.2.16"
+version = "0.2.17"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "90682c8d613ad3373e66de8c6411e0a... | 2 | 15 | 14 |
05986ad5130f34689ef7a42397dd2545b6f16101 | Tony Arcieri | 2021-09-20T16:27:18 | k256+p256: impl `Reduce` trait on `Scalar` types (#436)
Adds trait impls to `k256::Scalar` and `p256::Scalar` for the newly
introduced `Reduce` trait, replacing the previous inherent methods:
https://github.com/RustCrypto/traits/pull/768 | diff --git a/k256/src/arithmetic/scalar.rs b/k256/src/arithmetic/scalar.rs
index b67afea6..d4e001f9 100644
--- a/k256/src/arithmetic/scalar.rs
+++ b/k256/src/arithmetic/scalar.rs
@@ -12,6 +12,7 @@ use elliptic_curve::{
bigint::{limb, nlimbs, ArrayEncoding, Encoding, Limb, U256},
generic_array::arr,
group... | 6 | 41 | 31 |
10ee318f3e8de2a3956d025753fc9d39c5a8b8b7 | Tony Arcieri | 2021-09-20T15:42:58 | Updates for `sec1` crate (#435)
These code changes are necessary to support a migration to the `sec1`
crate, which extracted types like `EncodedPoint` into a separate
reusable crate.
Relevant `elliptic-curve` PR:
https://github.com/RustCrypto/traits/pull/771 | diff --git a/Cargo.lock b/Cargo.lock
index 96bef0a1..31310a55 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -151,7 +151,7 @@ dependencies = [
[[package]]
name = "const-oid"
version = "0.6.1"
-source = "git+https://github.com/rustcrypto/formats#cc06abfcff56356cee6457162321be21369ab435"
+source = "git+https://github.com... | 9 | 15 | 27 |
9f5675d0a5297703e5d9a1490a62c60cb8700cbf | Tony Arcieri | 2021-09-18T02:17:18 | Bump `elliptic-curve` crate; add `sec1` crate patches (#434)
Updates `elliptic-curve` to a new version which uses the (unreleased)
`sec1 crate.
See RustCrypto/traits#765 | diff --git a/Cargo.lock b/Cargo.lock
index 4f045acf..96bef0a1 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -21,9 +21,9 @@ checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a"
[[package]]
name = "base64ct"
-version = "1.0.0"
+version = "1.1.0"
source = "registry+https://github.com/rust-lang/... | 2 | 76 | 64 |
df712902d4ed1c0f5a7664edac875a3e9e155b53 | Tony Arcieri | 2021-09-14T01:28:48 | k256: remove `Scalar::conditional_add_bit` (#431)
The case it's actually being used for in practice is much simpler and
can be easily expressed using the current functionality. | diff --git a/k256/src/arithmetic/scalar.rs b/k256/src/arithmetic/scalar.rs
index 054ba9c2..b67afea6 100644
--- a/k256/src/arithmetic/scalar.rs
+++ b/k256/src/arithmetic/scalar.rs
@@ -353,16 +353,6 @@ impl Scalar {
Self(U256::from_be_slice(bytes))
}
- /// If `flag` evaluates to `true`, adds `(1 << bit... | 3 | 2 | 12 |
f594fd4c773a2e237348b5b180913f7d69d06fb5 | Tony Arcieri | 2021-09-12T22:09:37 | k256: use `U512` as the internal type for `WideScalar` (#430)
This is a step towards unifying the 32-bit and 64-bit implementations | diff --git a/k256/src/arithmetic/scalar/wide32.rs b/k256/src/arithmetic/scalar/wide32.rs
index b90cfd6c..a7be0803 100644
--- a/k256/src/arithmetic/scalar/wide32.rs
+++ b/k256/src/arithmetic/scalar/wide32.rs
@@ -2,9 +2,8 @@
use super::{Scalar, MODULUS};
use crate::ORDER;
-use core::convert::TryInto;
use elliptic_cu... | 2 | 85 | 97 |
24e9a979cc92b6f62d8277b360cfa7452964f4ab | Tony Arcieri | 2021-09-12T21:34:39 | k256: remove `pub(super)` from `WideScalar`'s `.0` field (#429)
This is no longer needed as the function needing access has been moved
to the `WideScalar` type. | diff --git a/k256/src/arithmetic/scalar/wide32.rs b/k256/src/arithmetic/scalar/wide32.rs
index f52ddd7c..b90cfd6c 100644
--- a/k256/src/arithmetic/scalar/wide32.rs
+++ b/k256/src/arithmetic/scalar/wide32.rs
@@ -21,7 +21,7 @@ const NEG_MODULUS: [u32; 8] = [
];
#[derive(Clone, Copy, Debug, Default)]
-pub(crate) struc... | 2 | 2 | 2 |
ce12ffa9c51abc0beae9af67fb31c103905805d1 | Tony Arcieri | 2021-09-12T21:24:39 | k256: factor `mul_shift_var(time)` into `wide` module (#428)
This, combined with a small fixup to `conditional_add_bit`, ensures that
all of the `Scalar`-related word size-specific gating is relegated to
the `wide32.rs` vs `wide64.rs` modules.
Ideally these could be replaced with a common `U512`-based
implementa... | diff --git a/k256/src/arithmetic/mul.rs b/k256/src/arithmetic/mul.rs
index 17cc4d80..d2459b8b 100644
--- a/k256/src/arithmetic/mul.rs
+++ b/k256/src/arithmetic/mul.rs
@@ -65,7 +65,10 @@
//! In experiments, I was not able to detect any case where they would go outside the 128 bit bound,
//! but I cannot be sure that i... | 4 | 178 | 209 |
67273fb6349d4a86c6bc366cf95766ee1c1ca0fb | Tony Arcieri | 2021-09-12T18:34:28 | k256: remove addressed TODO comment (#427) | diff --git a/k256/src/arithmetic/scalar.rs b/k256/src/arithmetic/scalar.rs
index cbbb4290..93482f26 100644
--- a/k256/src/arithmetic/scalar.rs
+++ b/k256/src/arithmetic/scalar.rs
@@ -240,7 +240,6 @@ impl Scalar {
}
/// Returns self + rhs mod n.
- // TODO(tarcieri): use `UInt::add_mod`
pub const fn a... | 1 | 0 | 1 |
714fd981736f846a06ce53cec88f4b0f3a5967fc | Tony Arcieri | 2021-09-12T17:49:39 | k256+p256: use `UInt::add_mod` for scalar addition (#426)
`crypto-bigint` v0.2.7 fixed a bug in `UInt::add_mod`, and the
`elliptic-curve` crate has been updated to depend on this version at a
minimum.
This means we can now use it to implement scalar addition. | diff --git a/Cargo.lock b/Cargo.lock
index 310e971c..4f045acf 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -245,8 +245,9 @@ dependencies = [
[[package]]
name = "crypto-bigint"
-version = "0.2.5"
-source = "git+https://github.com/RustCrypto/utils.git#b4a5373699aa2ec28304558e525c3dc60065367a"
+version = "0.2.7"
+sourc... | 4 | 11 | 62 |
6816fc58e02354108b19be4846889984015e1ecc | Tony Arcieri | 2021-09-09T00:22:25 | p256: impl `Scalar::mul` using `U256::mul_wide` (#423) | diff --git a/p256/src/arithmetic/scalar.rs b/p256/src/arithmetic/scalar.rs
index 0ca13a18..5ad5c5da 100644
--- a/p256/src/arithmetic/scalar.rs
+++ b/p256/src/arithmetic/scalar.rs
@@ -29,7 +29,7 @@ type U64x4 = [u64; 4];
/// Constant representing the modulus
/// n = FFFFFFFF 00000000 FFFFFFFF FFFFFFFF BCE6FAAD A7179... | 1 | 36 | 57 |
b4798493bd9c5e8ca464f95df75159eafd51d107 | Tony Arcieri | 2021-09-08T21:52:00 | k256: factor away `Scalar::from_overflow` (#422)
This was a private method used to construct a `Scalar` from a
`WideScalar`.
Instead, the previous logic is reimplemented in terms of `UInt`, with
the implementation factored into the `WideScalar::reduce` methods(s). | diff --git a/k256/src/arithmetic.rs b/k256/src/arithmetic.rs
index 4a165fd8..0163e2bd 100644
--- a/k256/src/arithmetic.rs
+++ b/k256/src/arithmetic.rs
@@ -5,7 +5,9 @@ mod field;
mod mul;
pub(crate) mod projective;
pub(crate) mod scalar;
-mod util;
+
+#[cfg(test)]
+mod dev;
pub use field::FieldElement;
pub use mu... | 7 | 47 | 138 |
fb4ea2b9fb44087484ee2b17d16486dba14d1052 | Tony Arcieri | 2021-09-08T21:12:54 | k256: use `UInt` to compute `Scalar::neg`; make `const fn` (#421) | diff --git a/k256/src/arithmetic/scalar.rs b/k256/src/arithmetic/scalar.rs
index b783d985..e440913d 100644
--- a/k256/src/arithmetic/scalar.rs
+++ b/k256/src/arithmetic/scalar.rs
@@ -235,14 +235,8 @@ impl Scalar {
}
/// Negates the scalar.
- pub fn negate(&self) -> Self {
- let (res, _) = sbb_arra... | 1 | 2 | 8 |
fbfbb01ec44aa0a03573a0bca24544bf683cc7aa | Tony Arcieri | 2021-09-08T21:03:55 | k256: use `UInt` to compute `Scalar::sub`; make `const fn` (#420) | diff --git a/k256/src/arithmetic/scalar.rs b/k256/src/arithmetic/scalar.rs
index b8e60c64..b783d985 100644
--- a/k256/src/arithmetic/scalar.rs
+++ b/k256/src/arithmetic/scalar.rs
@@ -4,10 +4,7 @@
#[cfg_attr(target_pointer_width = "64", path = "scalar/wide64.rs")]
mod wide;
-use crate::{
- arithmetic::util::{adc,... | 3 | 11 | 67 |
cc5eb8ae3f6906cf173e585844c4aa803993332a | Tony Arcieri | 2021-09-08T20:49:43 | k256: use `UInt` to compute `Scalar::add`; make `const fn` (#419)
This uses the same approach as the `p256` crate | diff --git a/k256/src/arithmetic/scalar.rs b/k256/src/arithmetic/scalar.rs
index a5ffbb86..b8e60c64 100644
--- a/k256/src/arithmetic/scalar.rs
+++ b/k256/src/arithmetic/scalar.rs
@@ -212,20 +212,6 @@ impl Scalar {
/// Multiplicative identity.
pub const ONE: Self = Self(U256::ONE);
- /// Attempts to parse... | 1 | 52 | 50 |
e04f31d8c1e7f4034a2eceedba89dab61498492a | Tony Arcieri | 2021-09-08T19:59:52 | Bump `crypto-bigint` and `elliptic-curve` (#418) | diff --git a/Cargo.lock b/Cargo.lock
index c37e4945..b60149dc 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -307,7 +307,7 @@ dependencies = [
[[package]]
name = "ecdsa"
version = "0.13.0-pre"
-source = "git+https://github.com/RustCrypto/signatures.git#afdf1938cc25c4b91aa3ae4952d2d84852a2bc47"
+source = "git+https://gi... | 6 | 11 | 11 |
949fe2f970f4ac4d9185285d1e9a02a847c8bd8d | Tony Arcieri | 2021-09-08T15:01:08 | k256: simplify `Scalar::from_bytes_reduced` (#417)
Uses `U256` to simplify the implementation and use a common one between
32-bit and 64-bit platforms. | diff --git a/k256/src/arithmetic/scalar.rs b/k256/src/arithmetic/scalar.rs
index 90c0adbd..a5ffbb86 100644
--- a/k256/src/arithmetic/scalar.rs
+++ b/k256/src/arithmetic/scalar.rs
@@ -8,12 +8,9 @@ use crate::{
arithmetic::util::{adc, sbb},
FieldBytes, Secp256k1, ORDER,
};
-use core::{
- convert::TryInto,
-... | 1 | 13 | 51 |
5025a46a526b24693f92ab8997d3e16a0147dd25 | Tony Arcieri | 2021-09-08T13:38:45 | k256+p256: scalar conversion bounds (#416)
Adds the scalar conversion bounds from RustCrypto/traits#740 | diff --git a/Cargo.lock b/Cargo.lock
index 17231271..c37e4945 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -324,7 +324,7 @@ checksum = "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457"
[[package]]
name = "elliptic-curve"
version = "0.11.0-pre"
-source = "git+https://github.com/RustCrypto/traits.git#5... | 3 | 27 | 3 |
4ef2a5e77a97c33388e4f2cc0e7410daba1cd754 | Tony Arcieri | 2021-09-08T02:58:26 | p256: impl `DefaultIsZeroes` for `ProjectivePoint` (#414)
Compatibility updates for RustCrypto/traits#738 | diff --git a/Cargo.lock b/Cargo.lock
index 11f39d07..fcbf1ec8 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -307,7 +307,7 @@ dependencies = [
[[package]]
name = "ecdsa"
version = "0.13.0-pre"
-source = "git+https://github.com/RustCrypto/signatures.git#2d8b5982c0dab25d610787cad55ceeb8bdfe7b0d"
+source = "git+https://gi... | 2 | 7 | 4 |
7b7adb9eb657095ec7121109886e9cb105c27fa0 | Tony Arcieri | 2021-09-08T02:19:01 | Use `PrimeCurve` trait (#413)
Switches from `weierstrass::Curve` to the `PrimeCurve` trait added in
RustCrypto/traits#737. | diff --git a/Cargo.lock b/Cargo.lock
index 4a76cb8a..11f39d07 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -307,7 +307,7 @@ dependencies = [
[[package]]
name = "ecdsa"
version = "0.13.0-pre"
-source = "git+https://github.com/RustCrypto/signatures.git#5961aaa58d44b24fb3dac2665a9b9f3ce9a3f759"
+source = "git+https://gi... | 11 | 20 | 22 |
75bfa191d0a9bbeb3a8295c4e2dc0afde6aa3de2 | Tony Arcieri | 2021-09-08T00:10:02 | p256: refactor `scalar` module (#412)
Changes the ordering of code within the `scalar` module to place related
functions closer together. | diff --git a/p256/src/arithmetic/scalar.rs b/p256/src/arithmetic/scalar.rs
index f540a6e0..4b30a4db 100644
--- a/p256/src/arithmetic/scalar.rs
+++ b/p256/src/arithmetic/scalar.rs
@@ -217,47 +217,6 @@ impl PrimeFieldBits for Scalar {
}
}
-impl From<u64> for Scalar {
- fn from(k: u64) -> Self {
- Scalar... | 1 | 187 | 188 |
20d1ceef695de321b0e3fccb7a928bbc8fd689c2 | Tony Arcieri | 2021-09-07T23:31:25 | p256: use `U256` to impl inner subtraction (#411)
Replaces the previous `sub_inner` function with a `sub_order` function
specialized to subtracting the scalar modulus. | diff --git a/p256/src/arithmetic/scalar.rs b/p256/src/arithmetic/scalar.rs
index 4c30f848..f540a6e0 100644
--- a/p256/src/arithmetic/scalar.rs
+++ b/p256/src/arithmetic/scalar.rs
@@ -6,12 +6,9 @@ use crate::{
arithmetic::util::{adc, mac, sbb},
FieldBytes, NistP256, SecretKey,
};
-use core::{
- convert::Tr... | 1 | 22 | 54 |
a488a65e022da386b116fd53be61e2436d1c8ad5 | Tony Arcieri | 2021-09-07T22:31:23 | p256: better utilize `UInt` in `Scalar` impls (#410)
- Iterate directly over limbs in `mul` implementation
- Promote `Scalar::ZERO` and `Scalar::ONE` to inherent constants
- Replace some hardcoded constants with `const fn` calculations | diff --git a/p256/src/arithmetic/projective.rs b/p256/src/arithmetic/projective.rs
index 0d06f7c2..698e60a8 100644
--- a/p256/src/arithmetic/projective.rs
+++ b/p256/src/arithmetic/projective.rs
@@ -7,6 +7,7 @@ use core::{
ops::{Add, AddAssign, Mul, MulAssign, Neg, Sub, SubAssign},
};
use elliptic_curve::{
+ ... | 3 | 40 | 56 |
39b6fa626ef683c8a00a96a43b66ad5980b31753 | Tony Arcieri | 2021-09-07T16:18:26 | p256: use `U256` as the internal representation of `Scalar` (#408)
This is a minimally invasive change to use `crypto_bigint::U256` as the
internal representation of `p256::Scalar`.
There are several places that various functions are still using a
`U64x4` type which could be made to work over 8 x 32-bit limbs ins... | diff --git a/Cargo.lock b/Cargo.lock
index c3442dff..4a76cb8a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -246,7 +246,7 @@ dependencies = [
[[package]]
name = "crypto-bigint"
version = "0.2.5"
-source = "git+https://github.com/RustCrypto/utils.git#8fa1b4fb22789fb5afd51bc1fad08ebf95789965"
+source = "git+https://gith... | 4 | 106 | 126 |
ac0ad658d630d6c125a49931741c69211f94b095 | Tony Arcieri | 2021-09-03T19:56:24 | Replace `ScalarBytes<C>` with `ScalarCore<C>`; mandatory `zeroize` (#406)
Corresponding changes for:
- RustCrypto/traits#732
- RustCrypto/signatures#356
This is an initial step towards having a generic `Scalar<C>` type which
is reusable over elliptic curves.
As part of these changes, `zeroize` was made a ma... | diff --git a/Cargo.lock b/Cargo.lock
index 9ce56b9f..56e9444a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -245,9 +245,8 @@ dependencies = [
[[package]]
name = "crypto-bigint"
-version = "0.2.4"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "cc209804a22c34a98fe26a32d997ac64d4284816f65... | 31 | 87 | 174 |
1ec292c43a60b27196f949b02a6418dcb2008e69 | Tony Arcieri | 2021-09-03T01:56:02 | k256: make `ecdsa::Signature::normalize_s` non-mutating (#405)
Corresponding changes for RustCrypto/signatures#355 | diff --git a/Cargo.lock b/Cargo.lock
index e066528d..9ce56b9f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -308,7 +308,7 @@ dependencies = [
[[package]]
name = "ecdsa"
version = "0.13.0-pre"
-source = "git+https://github.com/RustCrypto/signatures.git#ec279220173f4a43d870a2f08a593662463eaaaf"
+source = "git+https://gi... | 6 | 17 | 21 |
5fc407cbb3ec508a288754e6d3d66a346bb80ed0 | Tony Arcieri | 2021-09-02T23:27:03 | k256: use `PrimeField::pow_vartime` when computing `Scalar::sqrt` (#403)
I had previously attempted to do this in #400 but had trouble tracking
down why it wasn't working. It seems the lower two limbs were shifted
shifted 8-bits, i.e. a copy-paste error from Sage.
I computed the correct limbs using `ff_derive`, a... | diff --git a/k256/src/arithmetic/scalar.rs b/k256/src/arithmetic/scalar.rs
index 29287975..2bf8665c 100644
--- a/k256/src/arithmetic/scalar.rs
+++ b/k256/src/arithmetic/scalar.rs
@@ -113,339 +113,13 @@ impl Field for Scalar {
/// https://eprint.iacr.org/2012/685.pdf (page 12, algorithm 5)
#[allow(clippy::many... | 2 | 8 | 333 |
eda585406b4c59db9290a0b2fd8c31847d6f1f69 | Tony Arcieri | 2021-08-31T20:31:19 | k256: implement `Scalar::sqrt` (#400)
Implements Tonelli-Shank's algorithm for q mod 16 = 1 as synthesized
using the `ff_derive` crate, similar to #392 which implements it for the
`p256`.
Like `p256`, as part of implementing this it was discovered that
`root_of_unity()` was incorrect. Here it is (re)calculated w... | diff --git a/k256/src/arithmetic/scalar.rs b/k256/src/arithmetic/scalar.rs
index 9bf29749..706a34a2 100644
--- a/k256/src/arithmetic/scalar.rs
+++ b/k256/src/arithmetic/scalar.rs
@@ -113,9 +113,372 @@ impl Field for Scalar {
Scalar::invert(self)
}
- // TODO(tarcieri): stub! See: https://github.com/Ru... | 1 | 379 | 6 |
ed9b74580209083ea94a9e27ddac63d38d1e433b | Tony Arcieri | 2021-08-24T18:05:45 | k256: use `crypto-bigint` for `scalar::MODULUS` (#396)
This commit begins the process of starting to retrofit representing the
scalar modulus as a `crypto_bigint::UInt`.
It isn't a perfect fit in the current form as the `force-32-bit` cargo
feature complicates things. It would probably make sense to get rid of
i... | diff --git a/k256/src/arithmetic/scalar.rs b/k256/src/arithmetic/scalar.rs
index 0ccc2fb5..a9dffcc2 100644
--- a/k256/src/arithmetic/scalar.rs
+++ b/k256/src/arithmetic/scalar.rs
@@ -5,18 +5,22 @@ use cfg_if::cfg_if;
cfg_if! {
if #[cfg(any(target_pointer_width = "32", feature = "force-32-bit"))] {
mod sc... | 4 | 20 | 23 |
fe737c56add103e4e8ff270d0c05ffdb6107b8d6 | Tony Arcieri | 2021-07-28T19:32:15 | p256: implement `Scalar::sqrt` (#392)
Implements Tonelli-Shank's algorithm for q mod 16 = 1 as synthesized
using the `ff_derive` crate, then modified to use `Self::pow_vartime`
(with a fixed exponent, where it is only variable time with respect to
the exponent)
As part of implementing this, it was discovered tha... | diff --git a/p256/src/arithmetic/scalar.rs b/p256/src/arithmetic/scalar.rs
index 365536c7..199c92d0 100644
--- a/p256/src/arithmetic/scalar.rs
+++ b/p256/src/arithmetic/scalar.rs
@@ -151,9 +151,45 @@ impl Field for Scalar {
Scalar::invert(self)
}
- // TODO(tarcieri); stub! See: https://github.com/Rus... | 1 | 53 | 7 |
0909467513659019809a0e7b27bdfd177413aed4 | Marc Nijdam | 2021-07-26T18:39:31 | p256: implement point compaction support (#357)
Implements support for point compaction as described in
https://datatracker.ietf.org/doc/html/draft-jivsov-ecc-compact-05 | diff --git a/p256/src/arithmetic/affine.rs b/p256/src/arithmetic/affine.rs
index e761933f..f1578203 100644
--- a/p256/src/arithmetic/affine.rs
+++ b/p256/src/arithmetic/affine.rs
@@ -4,12 +4,14 @@ use super::{FieldElement, ProjectivePoint, CURVE_EQUATION_A, CURVE_EQUATION_B, M
use crate::{CompressedPoint, EncodedPoint... | 3 | 118 | 16 |
cf8d9e7802120e8184b719ad066acd12abd980c2 | Bogdan Opanchuk | 2021-07-21T22:10:25 | Fix a bug in overflow check during 32-bit multiplication (#388)
- Add a forgotten overflow condition for 32-bit field element implementation
- Make overflow check regression tests more specific | diff --git a/k256/src/arithmetic/field/field_10x26.rs b/k256/src/arithmetic/field/field_10x26.rs
index e58d9b46..9f24f5ad 100644
--- a/k256/src/arithmetic/field/field_10x26.rs
+++ b/k256/src/arithmetic/field/field_10x26.rs
@@ -175,15 +175,16 @@ impl FieldElement10x26 {
/// Checks if the field element is greater or... | 2 | 92 | 4 |
3640681acbb00027ffcab783e153c42a49194e0c | Tony Arcieri | 2021-07-19T19:12:03 | k256: fix edge case in `Scalar::is_high` (#385)
Per BIP62, the valid range for "low" scalars is:
https://github.com/bitcoin/bips/blob/master/bip-0062.mediawiki#Low_S_values_in_signatures
> The value S in signatures must be between 0x1 and 0x7FFFFFFF FFFFFFFF
> FFFFFFFF FFFFFFFF 5D576E73 57A4501D DFE92F46 681B20... | diff --git a/k256/src/arithmetic/scalar.rs b/k256/src/arithmetic/scalar.rs
index fba2ffbf..0ccc2fb5 100644
--- a/k256/src/arithmetic/scalar.rs
+++ b/k256/src/arithmetic/scalar.rs
@@ -607,16 +607,20 @@ mod tests {
let high: bool = Scalar::zero().is_high().into();
assert!(!high);
+ // 1 is not ... | 5 | 31 | 13 |
938fbad09e061e81de5f81f4676f9c924318ebd1 | Tony Arcieri | 2021-07-18T14:37:35 | Cargo.lock: bump dependencies (#382) | diff --git a/Cargo.lock b/Cargo.lock
index 41088d7f..f8abdceb 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -124,9 +124,9 @@ checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610"
[[package]]
name = "cast"
-version = "0.2.6"
+version = "0.2.7"
source = "registry+https://github.com/rust-lang/cr... | 1 | 22 | 49 |
937a924f4a1f07b4b5ae2afb2f20fa68ad7a1c55 | Bogdan Opanchuk | 2021-07-18T14:19:28 | Optimized linear combination of points (#380)
Add `lincomb()` as an alias for a 2-point linear combination | diff --git a/k256/bench/scalar.rs b/k256/bench/scalar.rs
index 6be3901d..091b691e 100644
--- a/k256/bench/scalar.rs
+++ b/k256/bench/scalar.rs
@@ -6,7 +6,7 @@ use criterion::{
use hex_literal::hex;
use k256::{
elliptic_curve::{generic_array::arr, group::ff::PrimeField},
- ProjectivePoint, Scalar,
+ lincomb... | 6 | 192 | 51 |
5ad27b3467c3bcbd95273d6f04d7df446d2bc4b8 | Tony Arcieri | 2021-06-23T22:52:16 | k256: derive `Clone` for `ecdsa::SigningKey` (#374) | diff --git a/k256/src/ecdsa/sign.rs b/k256/src/ecdsa/sign.rs
index 7cae3fbd..a6257e51 100644
--- a/k256/src/ecdsa/sign.rs
+++ b/k256/src/ecdsa/sign.rs
@@ -32,6 +32,7 @@ use core::str::FromStr;
/// ECDSA/secp256k1 signing key
#[cfg_attr(docsrs, doc(cfg(feature = "ecdsa")))]
+#[derive(Clone)]
pub struct SigningKey {... | 1 | 1 | 0 |
f8890d3c2a2af845b481a3243d63b5552ccb14fa | Tony Arcieri | 2021-06-22T06:48:31 | Bump `elliptic-curve` dependency to v0.10.3 (#371) | diff --git a/Cargo.lock b/Cargo.lock
index f2dd2d0c..d4efe196 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -156,9 +156,9 @@ checksum = "44c32f031ea41b4291d695026c023b95d59db2d8a2c7640800ed56bc8f510f22"
[[package]]
name = "cpufeatures"
-version = "0.1.4"
+version = "0.1.5"
source = "registry+https://github.com/rust-... | 2 | 32 | 29 |
4370442a37e56ecb1fa292a9225e6b3e2c7c419f | Tony Arcieri | 2021-06-20T19:50:03 | k256: add ECDSA benchmarks (#370)
Adds basic benchmarks for signing and verification | diff --git a/k256/Cargo.toml b/k256/Cargo.toml
index 008e90c7..92ab6692 100644
--- a/k256/Cargo.toml
+++ b/k256/Cargo.toml
@@ -64,6 +64,12 @@ zeroize = ["elliptic-curve/zeroize"]
features = ["ecdh", "ecdsa", "sha256", "keccak256"]
rustdoc-args = ["--cfg", "docsrs"]
+[[bench]]
+name = "ecdsa"
+path = "bench/ecdsa.rs... | 3 | 94 | 26 |
30dac26476f01b4a3266fc44bb66a4245fd5cdad | Tony Arcieri | 2021-06-20T19:03:47 | k256: factor apart benchmarks (#369)
This is a slightly better alternative to #368 in that we can gate
feature-dependent benchmarks on individual bench modules.
(Note: the larger goal here is to add ECDSA benchmarks... this is just
moving things around to make that easier) | diff --git a/k256/Cargo.toml b/k256/Cargo.toml
index 19416a3e..008e90c7 100644
--- a/k256/Cargo.toml
+++ b/k256/Cargo.toml
@@ -65,6 +65,12 @@ features = ["ecdh", "ecdsa", "sha256", "keccak256"]
rustdoc-args = ["--cfg", "docsrs"]
[[bench]]
-name = "bench"
-path = "bench/bench.rs"
+name = "field"
+path = "bench/field... | 4 | 165 | 166 |
cebc594e7ab937958ea2341084fd3c7668adfe17 | Tony Arcieri | 2021-06-20T16:50:37 | k256: make field benchmarks optional (#368)
Enables them via conditional compilation when the `expose-field` crate
feature is enabled. | diff --git a/k256/Cargo.toml b/k256/Cargo.toml
index c96cab7a..19416a3e 100644
--- a/k256/Cargo.toml
+++ b/k256/Cargo.toml
@@ -68,4 +68,3 @@ rustdoc-args = ["--cfg", "docsrs"]
name = "bench"
path = "bench/bench.rs"
harness = false
-required-features = ["expose-field"]
diff --git a/k256/bench/bench.rs b/k256/bench/be... | 2 | 17 | 2 |
259daeeb9f780f244cb6ca952201c35de15d58cd | Tony Arcieri | 2021-06-15T02:55:45 | k256: rename `SigningKey::verify_key()` -> `::verifying_key()` (#363)
The previous name is retained as a deprecated alias.
This better patches the `VerifyingKey` type name. | diff --git a/k256/src/ecdsa/sign.rs b/k256/src/ecdsa/sign.rs
index d969ed04..7cae3fbd 100644
--- a/k256/src/ecdsa/sign.rs
+++ b/k256/src/ecdsa/sign.rs
@@ -54,13 +54,19 @@ impl SigningKey {
Ok(Self { inner })
}
- /// Get the [`VerifyingKey`] which corresponds to this [`SigningKey`]
- pub fn verify_... | 1 | 10 | 4 |
68b949a0afc2802e7a85c66347996b380ea7a088 | Tony Arcieri | 2021-06-14T19:49:08 | p256: minor cleanups (#361)
- Place `Scalar::invert` and `Scalar::invert_vartime` next to each other
- Consolidate the `shr1` free function into `Scalar::shr1` | diff --git a/p256/src/arithmetic/scalar.rs b/p256/src/arithmetic/scalar.rs
index 303a792d..365536c7 100644
--- a/p256/src/arithmetic/scalar.rs
+++ b/p256/src/arithmetic/scalar.rs
@@ -279,15 +279,6 @@ fn cmp_vartime(left: &U256, right: &U256) -> i32 {
0
}
-fn shr1(u256: &mut U256) {
- let mut bit: u64 = 0;
- ... | 1 | 21 | 26 |
4fa72c038fdeb6cecc8263be13f39a30846fa273 | Tony Arcieri | 2021-06-14T19:26:33 | k256: impl Eq/PartialEq/ConstantTimeEq for SigningKey (#359)
The `Eq`/`PartialEq` impls use `ConstantTimeEq` internally.
This is useful for writing tests that need to compare keys. | diff --git a/Cargo.lock b/Cargo.lock
index dea0d907..6329acd4 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -323,9 +323,9 @@ checksum = "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457"
[[package]]
name = "elliptic-curve"
-version = "0.10.1"
+version = "0.10.2"
source = "registry+https://github.com/... | 3 | 18 | 3 |
08a3f6f71b45fad7529b384130d3d8439cab4920 | Tony Arcieri | 2021-06-14T17:24:00 | k256: impl Debug for SigningKey (#358)
Adds an opaque `Debug` impl | diff --git a/k256/src/ecdsa/sign.rs b/k256/src/ecdsa/sign.rs
index e551371d..479656aa 100644
--- a/k256/src/ecdsa/sign.rs
+++ b/k256/src/ecdsa/sign.rs
@@ -2,7 +2,10 @@
use super::{recoverable, Error, Signature, VerifyingKey};
use crate::{FieldBytes, NonZeroScalar, ProjectivePoint, PublicKey, Scalar, Secp256k1, Secr... | 1 | 51 | 41 |
9411fc2726b45f5ad93132e6ed6c9027ca468c7a | Tony Arcieri | 2021-06-09T23:14:26 | k256: impl `Copy` for `ecdsa::VerifyingKey` (#355) | diff --git a/Cargo.lock b/Cargo.lock
index fe471046..087e4d55 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -305,9 +305,9 @@ dependencies = [
[[package]]
name = "ecdsa"
-version = "0.12.0"
+version = "0.12.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "1a6cc9051fd9ca5710db0141855d83... | 3 | 7 | 7 |
dff5a67e863785751479d77f4b65e0a3e2642086 | Tony Arcieri | 2021-06-08T16:00:39 | k256+p256: impl PrimeCurve traits (#350)
Implements traits from the `group` crate for prime order curves:
- AffinePoint
- GroupEncoding
- PrimeCurveAffine
- ProjectivePoint
- GroupEncoding
- PrimeGroup
- PrimeCurve | diff --git a/k256/src/arithmetic/affine.rs b/k256/src/arithmetic/affine.rs
index ccdcdc04..f513c204 100644
--- a/k256/src/arithmetic/affine.rs
+++ b/k256/src/arithmetic/affine.rs
@@ -1,10 +1,11 @@
//! Affine points
use super::{FieldElement, ProjectivePoint, CURVE_EQUATION_B};
-use crate::{EncodedPoint, FieldBytes, ... | 7 | 279 | 102 |
7b7b0e7a27bc5063a0875276000eba5a72ec9e34 | Tony Arcieri | 2021-06-08T01:01:49 | k256+p256: stub out point compaction support (#348)
Adds stubs which make these crates code-compatible with these changes:
https://github.com/RustCrypto/traits/pull/659
No actual support is provided though. Points with 0x05 "SEC1" tags
simply fail to decode. However, this opens the door to eventually
implement... | diff --git a/Cargo.lock b/Cargo.lock
index 4827a251..ae6253cc 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -28,7 +28,7 @@ checksum = "d0d27fb6b6f1e43147af148af49d49329413ba781aa0d5e10979831c210173b5"
[[package]]
name = "base64ct"
version = "1.0.0"
-source = "git+https://github.com/rustcrypto/utils.git#3fc828a86a31b2b... | 3 | 11 | 9 |
05ed13afa0f619dc3fd806966806392d74951bb8 | Tony Arcieri | 2021-06-07T22:12:24 | k256+p256: implement AffineArithmetic trait (#347)
Implements a newly added trait in the `elliptic-curve` crate which uses
an associated type to encode a baseline set of trait bounds on curve
points with affine coordinates:
https://github.com/RustCrypto/traits/pull/658 | diff --git a/Cargo.lock b/Cargo.lock
index 870b9b32..4827a251 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -28,7 +28,7 @@ checksum = "d0d27fb6b6f1e43147af148af49d49329413ba781aa0d5e10979831c210173b5"
[[package]]
name = "base64ct"
version = "1.0.0"
-source = "git+https://github.com/rustcrypto/utils.git#99ef0f56020ab16... | 5 | 30 | 8 |
3d4b9058b7bcbe315c29b9130d47623c8d7b99f2 | Tony Arcieri | 2021-05-28T22:48:04 | k256+p256: improve rustdoc for `Scalar` traits (#344) | diff --git a/k256/src/arithmetic/scalar.rs b/k256/src/arithmetic/scalar.rs
index 652a90a9..14a06a98 100644
--- a/k256/src/arithmetic/scalar.rs
+++ b/k256/src/arithmetic/scalar.rs
@@ -40,7 +40,27 @@ pub type NonZeroScalar = elliptic_curve::NonZeroScalar<Secp256k1>;
/// secp256k1 field element serialized as bits.
pub t... | 2 | 54 | 13 |
8de18374203f72e15b9cf93b0aa29000e614a9fd | Tony Arcieri | 2021-05-25T01:02:02 | k256: derive Ord on VerifyingKey (#343) | diff --git a/Cargo.lock b/Cargo.lock
index 9e599970..025fcea0 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -297,9 +297,9 @@ dependencies = [
[[package]]
name = "ecdsa"
-version = "0.11.0"
+version = "0.11.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "6b568b5e72165dd8913ac2aad6a60c... | 3 | 4 | 4 |
58ea64af613128512bd1c84a400ccc91270e24ee | Tony Arcieri | 2021-05-25T00:33:26 | Cargo.lock: bump dependencies (#342) | diff --git a/Cargo.lock b/Cargo.lock
index a473a2ec..9e599970 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -48,9 +48,9 @@ checksum = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693"
[[package]]
name = "bitvec"
-version = "0.20.2"
+version = "0.20.4"
source = "registry+https://github.com/rust-lang/... | 1 | 93 | 75 |
db9c0ef493f73bc3dacd84e69afbf54f739585ec | Frank Denis | 2021-05-09T14:25:28 | p256/k256: fix mixed coordinate addition with the point at infinity (#337)
The mixed point additions are not complete; they assume that the
point in affine coordinates is not the point at infinity.
Handle that case, if only for consistency with non-mixed addition. | diff --git a/k256/src/arithmetic/projective.rs b/k256/src/arithmetic/projective.rs
index 5eb80b70..ef9ef73d 100644
--- a/k256/src/arithmetic/projective.rs
+++ b/k256/src/arithmetic/projective.rs
@@ -186,11 +186,13 @@ impl ProjectivePoint {
.mul_single(CURVE_EQUATION_B_SINGLE)
.normalize_weak()... | 2 | 24 | 4 |
e7c840cd87876f58ba4fcf20d11786a5601519a9 | Tony Arcieri | 2021-04-29T20:21:47 | Bump `ecdsa` crate dependency to v0.11 (#330)
Release notes: https://github.com/RustCrypto/signatures/pull/288 | diff --git a/Cargo.lock b/Cargo.lock
index 90f76388..5d64fb17 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -243,9 +243,9 @@ dependencies = [
[[package]]
name = "crypto-mac"
-version = "0.10.0"
+version = "0.11.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4857fd85a0c34b3c3297875b7... | 6 | 13 | 13 |
b1cedabf2191f1a20378486bb6f8d84854622210 | Tony Arcieri | 2021-04-21T23:14:01 | Bump `ecdsa` dependency to v0.11.0-pre.6 (#329) | diff --git a/Cargo.lock b/Cargo.lock
index 16ddf7a3..90f76388 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -294,9 +294,9 @@ dependencies = [
[[package]]
name = "ecdsa"
-version = "0.11.0-pre.4"
+version = "0.11.0-pre.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "9cae6ee8d621666ce4... | 13 | 16 | 32 |
b41ecdb724a54ad51c886452d2497310da82cde2 | Tony Arcieri | 2021-04-21T15:24:00 | Add `Order` constants to all curve implementations (#328)
Allows checking that a scalar field element is in range generically
without a curve arithmetic implementation. | diff --git a/Cargo.lock b/Cargo.lock
index 54ab8bb2..16ddf7a3 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -312,13 +312,13 @@ checksum = "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457"
[[package]]
name = "elliptic-curve"
-version = "0.9.6"
+version = "0.9.7"
source = "registry+https://github.com/... | 14 | 225 | 15 |
3781f5db003f65e96ec2d4a60eddec7eae3b96b3 | Tony Arcieri | 2021-04-09T15:23:06 | k256+p256: make `ecdsa` a default feature (#325)
We've gotten enough complaints from people who had trouble figuring out
feature activations for `ecdsa` it's probably easier to just turn it on
by default and let people who don't want it figure out how to shut it
off if they so desire. | diff --git a/k256/Cargo.toml b/k256/Cargo.toml
index 9a453a4a..be2cf3f5 100644
--- a/k256/Cargo.toml
+++ b/k256/Cargo.toml
@@ -40,7 +40,7 @@ proptest = "1.0"
rand_core = { version = "0.6", features = ["getrandom"] }
[features]
-default = ["arithmetic", "pkcs8", "std"]
+default = ["arithmetic", "ecdsa", "pkcs8", "sh... | 3 | 3 | 3 |
b0ae94d32cafb1d1eb981a762ba0b1a4f63bb9e0 | Tony Arcieri | 2021-04-02T15:16:10 | k256+p256: fix DigestPrimitive feature gating (#324)
The previous feature gating prevented a `DigestPrimitive` impl from
being added in the event that the `sha256` feature was enabled, but the
`ecdsa` feature was not.
This is still a useful feature combination as it can still be used by
external signers even whe... | diff --git a/k256/Cargo.toml b/k256/Cargo.toml
index 4746c544..9a453a4a 100644
--- a/k256/Cargo.toml
+++ b/k256/Cargo.toml
@@ -42,7 +42,7 @@ rand_core = { version = "0.6", features = ["getrandom"] }
[features]
default = ["arithmetic", "pkcs8", "std"]
arithmetic = ["elliptic-curve/arithmetic"]
-digest = ["ecdsa-core/... | 4 | 7 | 5 |
cbbd886d5ee0d13f79e018e0a4dcb095bb0ef8d1 | Tony Arcieri | 2021-04-02T14:19:37 | Bump `ecdsa` to v0.11.0-pre.4 (#322) | diff --git a/Cargo.lock b/Cargo.lock
index 23e6d633..54ab8bb2 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -273,15 +273,6 @@ dependencies = [
"memchr",
]
-[[package]]
-name = "der"
-version = "0.2.10"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ce93ba4502a73722aa4b955d97f4b1bd26f4... | 13 | 181 | 87 |
7c95626a4fef33b903dfc6dfa8b1e7f5625c135f | Tony Arcieri | 2021-03-22T15:39:44 | Bump `pkcs8` to v0.6 (#319) | diff --git a/Cargo.lock b/Cargo.lock
index 87140619..8e1709a1 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1,5 +1,7 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
+version = 3
+
[[package]]
name = "atty"
version = "0.2.14"
@@ -46,9 +48,9 @@ checksum = "cf1de2fe8c75bc1... | 8 | 69 | 59 |
8dfa32d7a52d008e14a4383198a4b7988f73aeb3 | Saber Haj Rabiee | 2021-03-02T18:41:10 | added missing `From` traits for `VerifyingKey` (#315)
implemented `From` traits for `VerifyingKey` and `PublicKey` | diff --git a/k256/src/ecdsa/verify.rs b/k256/src/ecdsa/verify.rs
index 52081bf7..7172ba18 100644
--- a/k256/src/ecdsa/verify.rs
+++ b/k256/src/ecdsa/verify.rs
@@ -1,7 +1,9 @@
//! ECDSA verifier
use super::{recoverable, Error, Signature};
-use crate::{AffinePoint, CompressedPoint, EncodedPoint, ProjectivePoint, Scal... | 1 | 30 | 5 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.