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 |
|---|---|---|---|---|---|---|---|
24bca78c658278a610e89cb95976ce97eb3f0885 | Tony Arcieri | 2023-02-01T17:22:27 | Use `AffineCoordinates` trait (#734)
Switches to the newly consolidated `AffineCoordinates` trait.
See RustCrypto/traits#1237 | diff --git a/Cargo.lock b/Cargo.lock
index c1e005f4..804b8cd2 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -331,8 +331,7 @@ dependencies = [
[[package]]
name = "ecdsa"
version = "0.16.0-pre.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fcd6964e28e4802aed67abfaddd5e5430f368c54cc3e49... | 4 | 12 | 18 |
1f43726deea4b65cc4b3a89dc79cdb2ade8d536d | daxpedda | 2023-02-01T15:01:00 | Fix P-384 hash2curve implementation (#733) | diff --git a/p384/src/arithmetic/hash2curve.rs b/p384/src/arithmetic/hash2curve.rs
index 9d935700..32cc1dfa 100644
--- a/p384/src/arithmetic/hash2curve.rs
+++ b/p384/src/arithmetic/hash2curve.rs
@@ -18,7 +18,7 @@ impl FromOkm for FieldElement {
type Length = U72;
fn from_okm(data: &GenericArray<u8, Self::Le... | 1 | 9 | 9 |
1ab86e179dc7d1b1edf1392eaf2647a6ba7b6fc8 | Tony Arcieri | 2023-02-01T14:21:57 | Add `FieldBytesEncoding` trait impls (#732)
The `elliptic-curve` v0.13.0-pre.3 release refactored encoding onto a
`FieldBytesEncoding` trait which provides curve-specific conversions
between `Uint` and `FieldBytes`.
This commit adds these trait impls and otherwise cleans up
serialization-related code to use the ... | diff --git a/Cargo.lock b/Cargo.lock
index b62c5885..c1e005f4 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -330,8 +330,9 @@ dependencies = [
[[package]]
name = "ecdsa"
-version = "0.16.0-pre"
-source = "git+https://github.com/RustCrypto/signatures.git#4af28dd9fa18411b7c8ac09f83ddcfedabe94e29"
+version = "0.16.0-pre.... | 32 | 229 | 231 |
32384b2652940eefaa96e71bc6e34164657c2647 | Tony Arcieri | 2023-01-27T15:00:01 | primeorder: algorithm specialization using `equation_a::Is*` ZSTs (#728)
Extracts a `Double` trait (which should probably go in
`elliptic_curve::ops`) which allows for multiple overlapping impls based
on specific properties of the curve's a-coefficient.
The previous inherent `double()` method is now gated on
`eq... | diff --git a/p256/src/arithmetic.rs b/p256/src/arithmetic.rs
index 3e34dcad..693c63da 100644
--- a/p256/src/arithmetic.rs
+++ b/p256/src/arithmetic.rs
@@ -11,7 +11,7 @@ use crate::NistP256;
use elliptic_curve::{
AffineArithmetic, PrimeCurveArithmetic, ProjectiveArithmetic, ScalarArithmetic,
};
-use primeorder::P... | 8 | 127 | 42 |
0077508e4b9c0496b3ca6c0902251ea6076602b0 | Tony Arcieri | 2023-01-22T16:45:05 | Cargo.lock: bump dependencies (#724) | diff --git a/Cargo.lock b/Cargo.lock
index 0e89eb1c..aebef3e0 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -23,7 +23,7 @@ version = "0.2.14"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8"
dependencies = [
- "hermit-abi",
+... | 1 | 84 | 76 |
28c5a85b824bdfcd1e1326139589e8f201882a36 | Tony Arcieri | 2023-01-22T16:02:42 | primeorder: impl `From/ToEncodedPoint` for `ProjectivePoint` (#722)
Closes #720 | diff --git a/primeorder/src/projective.rs b/primeorder/src/projective.rs
index e1ab5fd8..db76fcd4 100644
--- a/primeorder/src/projective.rs
+++ b/primeorder/src/projective.rs
@@ -19,7 +19,10 @@ use elliptic_curve::{
},
ops::LinearCombination,
rand_core::RngCore,
- sec1::{CompressedPoint, ModulusSize, ... | 1 | 28 | 1 |
f7eeac4561ffdac7ec092520660a19ba2bed56fd | Tony Arcieri | 2023-01-16T01:51:40 | Bump `ecdsa` dependency to v0.15 (#713)
Release notes: https://github.com/RustCrypto/signatures/pull/620 | diff --git a/Cargo.lock b/Cargo.lock
index 79e7ee06..329ce75d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -332,9 +332,9 @@ dependencies = [
[[package]]
name = "ecdsa"
-version = "0.15.0-rc.1"
+version = "0.15.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "13191c3401bb08c4d972fad3e... | 6 | 13 | 13 |
1a03b8a8bc561ad68aeccffc151a59ab5a180aad | Tony Arcieri | 2023-01-13T21:48:53 | Use `doc_auto_cfg` (#711)
Replaces manual `cfg(doc(...))` annotations by automatically generating
them instead using `doc_auto_cfg`. | diff --git a/bp256/src/lib.rs b/bp256/src/lib.rs
index d2a5bf88..615c063f 100644
--- a/bp256/src/lib.rs
+++ b/bp256/src/lib.rs
@@ -1,5 +1,5 @@
#![no_std]
-#![cfg_attr(docsrs, feature(doc_cfg))]
+#![cfg_attr(docsrs, feature(doc_auto_cfg))]
#![doc = include_str!("../README.md")]
#![doc(
html_logo_url = "https://r... | 27 | 7 | 84 |
2c1ec0ad8942212ee89fdfabb9ea169cfb072919 | Nicolas Stalder | 2023-01-12T16:17:05 | Constructors for scalars from u128 (#709) | diff --git a/k256/src/arithmetic/scalar.rs b/k256/src/arithmetic/scalar.rs
index 37552f7e..e0647fa4 100644
--- a/k256/src/arithmetic/scalar.rs
+++ b/k256/src/arithmetic/scalar.rs
@@ -361,7 +361,7 @@ impl DefaultIsZeroes for Scalar {}
impl From<u32> for Scalar {
fn from(k: u32) -> Self {
- Self::from(k as... | 5 | 58 | 4 |
84871c318ab4c9740f4a6bfc4b2eff1dfd2866b5 | Tony Arcieri | 2023-01-09T00:50:00 | k256: factor `mul_by_generator` into `ProjectivePoint` (#706)
Makes `ProjectivePoint::mul_by_generator` an inherent static method
instead of a free function.
This avoids the need to import it separately from `ProjectivePoint`. | diff --git a/k256/benches/scalar.rs b/k256/benches/scalar.rs
index cdbe40cd..8b01477a 100644
--- a/k256/benches/scalar.rs
+++ b/k256/benches/scalar.rs
@@ -6,7 +6,7 @@ use criterion::{
use hex_literal::hex;
use k256::{
elliptic_curve::{generic_array::arr, group::ff::PrimeField, ops::LinearCombination},
- mul_b... | 5 | 29 | 31 |
a15923c5c7dd98da9304ec37eed3e895ecd3bc19 | Bogdan Opanchuk | 2023-01-08T23:41:14 | k256: add optimized multiplication by generator (based on precomputed tables) (#697) | diff --git a/Cargo.lock b/Cargo.lock
index 90afd0c6..a726bbf2 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -8,6 +8,15 @@ version = "0.1.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4b46cbb362ab8752921c97e041f5e366ee6297bd428a31275b9fcf1e380f7299"
+[[package]]
+name = "atomic-polyfi... | 7 | 103 | 22 |
5b982965c4d87ae021f37aff3b04776807b6bed9 | Tony Arcieri | 2023-01-08T14:16:37 | k256: impl `From<SecretKey>` for `schnorr::SigningKey` (#704)
Leverage infallible conversions to enable direct conversion from
`k256::SecretKey` to `k256::schnorr::SigningKey`. | diff --git a/k256/src/schnorr/signing.rs b/k256/src/schnorr/signing.rs
index f3b0ed11..9ef9034c 100644
--- a/k256/src/schnorr/signing.rs
+++ b/k256/src/schnorr/signing.rs
@@ -1,7 +1,9 @@
//! Taproot Schnorr signing key.
use super::{tagged_hash, Signature, VerifyingKey, AUX_TAG, CHALLENGE_TAG, NONCE_TAG};
-use crate... | 1 | 16 | 1 |
1f77f2fcbb3b4c84e00ff3638c7c2dd80340a597 | Tony Arcieri | 2023-01-08T05:08:28 | k256: impl `From<NonZeroScalar>` for `schnorr::SigningKey` (#703)
Leverage various infallible conversions to eliminate the use of
`unwrap()` and allow infallible conversions from `NonZeroScalar` to
`SigningKey`. | diff --git a/k256/src/schnorr/signing.rs b/k256/src/schnorr/signing.rs
index a0af257c..f3b0ed11 100644
--- a/k256/src/schnorr/signing.rs
+++ b/k256/src/schnorr/signing.rs
@@ -31,40 +31,15 @@ pub struct SigningKey {
impl SigningKey {
/// Generate a cryptographically random [`SigningKey`].
- // TODO(tarcieri):... | 2 | 32 | 32 |
e275ccedea85c8daddb9bd22ba65ab6e2796dfa7 | Tony Arcieri | 2023-01-08T03:21:25 | k256: rename Schnorr `signing`/`verifying` modules (#700)
Renames modules as follows:
- `sign` => `signing`
- `verify` => `verifying`
This better matches the `SigningKey` and `VerifyingKey` type names. | diff --git a/k256/src/schnorr.rs b/k256/src/schnorr.rs
index 7db59cb2..8379b522 100644
--- a/k256/src/schnorr.rs
+++ b/k256/src/schnorr.rs
@@ -62,10 +62,10 @@
#![allow(non_snake_case, clippy::many_single_char_names)]
-mod sign;
-mod verify;
+mod signing;
+mod verifying;
-pub use self::{sign::SigningKey, verify::... | 3 | 3 | 3 |
5ac97bdbd9b7fb4b48cfb294fec9bd5047aaffd5 | Tony Arcieri | 2023-01-08T02:56:04 | Bump `ecdsa` to v0.15.0-rc.1 (#699) | diff --git a/Cargo.lock b/Cargo.lock
index a81f3717..90afd0c6 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -317,9 +317,9 @@ dependencies = [
[[package]]
name = "ecdsa"
-version = "0.15.0-rc.0"
+version = "0.15.0-rc.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "90f57e7dbc612145dc84... | 9 | 24 | 28 |
8ac64a55f6eac2364524fc6cd7738130afa99aa5 | Tony Arcieri | 2023-01-04T22:15:26 | ecdsa v0.15.0-rc.0 (#698) | diff --git a/Cargo.lock b/Cargo.lock
index a595e97d..a81f3717 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -317,9 +317,9 @@ dependencies = [
[[package]]
name = "ecdsa"
-version = "0.15.0-pre.1"
+version = "0.15.0-rc.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "deb984c19733374d04f... | 6 | 13 | 13 |
d3f304bc2663d0ff0c49f7d9fecc7fa53c7b7f1e | Tony Arcieri | 2022-12-29T20:33:27 | p256+p384 v0.12.0-pre.1 (#695) | diff --git a/Cargo.lock b/Cargo.lock
index 6b454971..a595e97d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -628,7 +628,7 @@ checksum = "9ff7415e9ae3fff1225851df9e0d9e4e5479f947619774677a63572e55e80eff"
[[package]]
name = "p256"
-version = "0.12.0-pre.0"
+version = "0.12.0-pre.1"
dependencies = [
"blobby",
"crit... | 3 | 4 | 4 |
d69d01d01ebd8b1416eb3eb0365e9a320b85e82b | Tony Arcieri | 2022-12-29T20:11:16 | primeorder v0.0.2 (#696) | diff --git a/Cargo.lock b/Cargo.lock
index 3aa15578..6b454971 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -720,7 +720,7 @@ checksum = "eb9f9e6e233e5c4a35559a617bf40a4ec447db2e84c20b55a6f83167b7e57872"
[[package]]
name = "primeorder"
-version = "0.0.1"
+version = "0.0.2"
dependencies = [
"elliptic-curve",
"serd... | 4 | 4 | 4 |
a92061e3afe5c18f49b269d956bb17ab59b918b8 | Tony Arcieri | 2022-12-12T14:40:40 | Bump `ecdsa` dependency to v0.15.0-pre.1 (#694) | diff --git a/Cargo.lock b/Cargo.lock
index 4bf7e059..3aa15578 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -306,9 +306,9 @@ dependencies = [
[[package]]
name = "digest"
-version = "0.10.5"
+version = "0.10.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "adfbc57365a37acbd2ebf2b64d7e6... | 9 | 27 | 23 |
a98418f679f41a744ac943a92a6501d84b8e9978 | daxpedda | 2022-12-07T16:14:53 | Update P-256 VOPRF test vectors (#693) | diff --git a/p256/src/arithmetic/hash2curve.rs b/p256/src/arithmetic/hash2curve.rs
index ab0df557..e6b1f033 100644
--- a/p256/src/arithmetic/hash2curve.rs
+++ b/p256/src/arithmetic/hash2curve.rs
@@ -230,7 +230,7 @@ mod tests {
}
}
- /// Taken from <https://www.ietf.org/archive/id/draft-irtf-cfrg-vopr... | 1 | 7 | 7 |
28f725ac8817d22eb3cf9adf1bdd6dfab016bc3c | Tony Arcieri | 2022-12-06T02:11:40 | primeorder: rename `PrimeOrderCurve` => `PrimeCurveParams` (#692)
There's already a `PrimeCurve` marker trait defined by the
`elliptic-curve` crate, so the name `PrimeOrderCurve` is confusing.
The trait defines the curve parameters, such as the coefficients of the
curve equation and generator point, so `PrimeCurv... | diff --git a/p256/src/arithmetic.rs b/p256/src/arithmetic.rs
index 5ac95b72..28014e22 100644
--- a/p256/src/arithmetic.rs
+++ b/p256/src/arithmetic.rs
@@ -11,7 +11,7 @@ use crate::NistP256;
use elliptic_curve::{
AffineArithmetic, PrimeCurveArithmetic, ProjectiveArithmetic, ScalarArithmetic,
};
-use primeorder::P... | 5 | 87 | 87 |
2b819cbe2e23c36cfaaa5877695697409fd73fec | Tony Arcieri | 2022-11-20T23:00:17 | k256: add `schnorr::SigningKey::as_nonzero_scalar` (#690)
Adds an accessor for the inner `NonZeroScalar` value that represents a
Schnorr secret key. | diff --git a/k256/src/schnorr/sign.rs b/k256/src/schnorr/sign.rs
index 5426664b..c49de15a 100644
--- a/k256/src/schnorr/sign.rs
+++ b/k256/src/schnorr/sign.rs
@@ -75,6 +75,17 @@ impl SigningKey {
&self.verifying_key
}
+ /// Borrow the secret [`NonZeroScalar`] value for this key.
+ ///
+ /// # ⚠... | 1 | 11 | 0 |
2a9b0d79540012254f2120d5997311cf6f2c6b51 | Tony Arcieri | 2022-11-20T22:39:45 | k256: impl `Prehash*` and `KeypairRef` for Schnorr keys (#689)
Adds the following trait impls:
- `(Randomized)PrehashSigner` for `schnorr::SigningKey`
- `KeypairRef` for `schnorr::SigningKey`
- `PrehashVerifier` for `schnorr::VerifyingKey` | diff --git a/Cargo.lock b/Cargo.lock
index 27f28424..4bf7e059 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -529,6 +529,7 @@ dependencies = [
"serdect",
"sha2",
"sha3",
+ "signature",
]
[[package]]
diff --git a/k256/Cargo.toml b/k256/Cargo.toml
index 5809357a..f4154109 100644
--- a/k256/Cargo.toml
+++ b/k256/Ca... | 5 | 103 | 49 |
af0ef6f504da9dd53bca1e769ab8795a3df40d0b | Tony Arcieri | 2022-11-19T19:26:58 | p384 v0.12.0-pre.0 (#688) | diff --git a/Cargo.lock b/Cargo.lock
index d5fceb21..27f28424 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -643,7 +643,7 @@ dependencies = [
[[package]]
name = "p384"
-version = "0.12.0-pre"
+version = "0.12.0-pre.0"
dependencies = [
"blobby",
"criterion",
diff --git a/p384/Cargo.toml b/p384/Cargo.toml
index d4... | 2 | 2 | 2 |
49ebbc2f96621eb99f72fc4007eb455cc3964f14 | Tony Arcieri | 2022-11-08T03:08:09 | p256+p384: add `arithmetic` doc cfg (#683)
Add a rustdoc note that the `arithmetic` feature must be enabled for
types like `AffinePoint`, `NonZeroScalar`, and `ProjectivePoint`. | diff --git a/p256/src/arithmetic.rs b/p256/src/arithmetic.rs
index d2b1de79..5ac95b72 100644
--- a/p256/src/arithmetic.rs
+++ b/p256/src/arithmetic.rs
@@ -14,11 +14,14 @@ use elliptic_curve::{
use primeorder::PrimeOrderCurve;
/// Elliptic curve point in affine coordinates.
+#[cfg_attr(docsrs, doc(cfg(feature = "ari... | 4 | 13 | 0 |
79443f5216ca34f7c3ff2b85d7f4ae815350213f | Conrado Gouvea | 2022-11-07T16:29:26 | implement FromOkm for k256 Scalar (#673) | diff --git a/k256/src/arithmetic/hash2curve.rs b/k256/src/arithmetic/hash2curve.rs
index a4c8d6a4..defdedbe 100644
--- a/k256/src/arithmetic/hash2curve.rs
+++ b/k256/src/arithmetic/hash2curve.rs
@@ -1,3 +1,4 @@
+use elliptic_curve::bigint::{ArrayEncoding, U256};
use elliptic_curve::consts::{U4, U48};
use elliptic_cur... | 2 | 176 | 110 |
ad76e33724171b228294268565691baa520bd124 | Tony Arcieri | 2022-11-07T15:41:29 | p256 v0.12.0-pre.0 (#681) | diff --git a/Cargo.lock b/Cargo.lock
index ee1aad01..d5fceb21 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -627,7 +627,7 @@ checksum = "9ff7415e9ae3fff1225851df9e0d9e4e5479f947619774677a63572e55e80eff"
[[package]]
name = "p256"
-version = "0.12.0-pre"
+version = "0.12.0-pre.0"
dependencies = [
"blobby",
"criter... | 2 | 2 | 2 |
767211917fee72e262d7b18c5ba61bfc8422ed96 | Tony Arcieri | 2022-11-06T23:14:12 | Bump `ecdsa` to v0.15.0-pre.0 crate release (#676) | diff --git a/Cargo.lock b/Cargo.lock
index 32fe8f0e..961a9739 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -317,8 +317,9 @@ dependencies = [
[[package]]
name = "ecdsa"
-version = "0.15.0-pre"
-source = "git+https://github.com/RustCrypto/signatures.git#beb7271cb0b4a476d3285bb9f755824715536d77"
+version = "0.15.0-pre.... | 7 | 13 | 14 |
ec35dc731b7368f0d9a6c2de7b19f2d82949b44e | Tony Arcieri | 2022-11-06T00:12:24 | Bump `ecdsa` crate to v0.15.0-pre (#674)
This (unpublished) prerelease of the `ecdsa` crate impl's the
prospective `signature` v2 API from: RustCrypto/traits#1141 | diff --git a/Cargo.lock b/Cargo.lock
index 86608fad..ab527852 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -317,9 +317,8 @@ dependencies = [
[[package]]
name = "ecdsa"
-version = "0.14.8"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "413301934810f597c1d19ca71c8710e99a3f1ba28a0d2ebc01... | 17 | 118 | 126 |
a8e8be10f74952e3361d7a3fd8a56324c79497b4 | Sorah Fukumori | 2022-09-28T19:31:56 | p256,p384: test larger and smaller prehash operation (#666)
Add integration tests to verify the following scenarios:
- P-256 ECDSA signing/verification with SHA-384 (longer than field size)
- P-384 ECDSA signing/verification with SHA-256 (smaller than field size)
Verification scenarios use a test vector adopted... | diff --git a/p256/src/ecdsa.rs b/p256/src/ecdsa.rs
index 1c44af33..e06856cd 100644
--- a/p256/src/ecdsa.rs
+++ b/p256/src/ecdsa.rs
@@ -80,13 +80,21 @@ impl VerifyPrimitive<NistP256> for AffinePoint {}
#[cfg(all(test, feature = "ecdsa"))]
mod tests {
use crate::{
- ecdsa::{signature::Signer, SigningKey},
+... | 2 | 113 | 5 |
5702aad90704a4eea04be965d87e9e1e54cbe66e | Dirk Stolle | 2022-09-28T14:44:14 | chore: fix a few typos (#663) | diff --git a/k256/src/ecdsa.rs b/k256/src/ecdsa.rs
index 6ba66671..fe697ebb 100644
--- a/k256/src/ecdsa.rs
+++ b/k256/src/ecdsa.rs
@@ -51,7 +51,7 @@
//! let signing_key = SigningKey::random(&mut OsRng); // Serialize with `::to_bytes()`
//! let message = b"ECDSA proves knowledge of a secret number in the context of a ... | 3 | 3 | 3 |
c603ec58e8dd2c173076352b19dad9d942e3ba9b | Lloyd Fournier | 2022-09-26T03:06:45 | k256: make `ProjectivePoint` equality and `is_identity` faster (#650)
1. `ProjectivePoint::is_identity` was unnecessarily slow because it did
an equality check with identity rather than just checking z coordinate.
2. Equality check was much slower than necessary because it converted to
affine coords first. This a... | diff --git a/k256/src/arithmetic/projective.rs b/k256/src/arithmetic/projective.rs
index 18114df9..af1ad077 100644
--- a/k256/src/arithmetic/projective.rs
+++ b/k256/src/arithmetic/projective.rs
@@ -224,6 +224,24 @@ impl ProjectivePoint {
z: self.z,
}
}
+
+ /// Check whether `self` is equa... | 1 | 75 | 2 |
28b6d712c06f6c6ec587d339050783265b48b8fe | Tony Arcieri | 2022-09-19T21:58:26 | k256: add `ecdsa::recoverable::Signature::from_digest_bytes_trial_recovery` (#660)
Add a method which can compute an `ecdsa::recoverable::Signature` from a
non-recoverable `ecdsa::Signature` using a trial recovery method:
testing various recovery IDs until one successfully recovers the public
key correctly.
This... | diff --git a/k256/src/ecdsa/recoverable.rs b/k256/src/ecdsa/recoverable.rs
index 338c191b..cce32cc8 100644
--- a/k256/src/ecdsa/recoverable.rs
+++ b/k256/src/ecdsa/recoverable.rs
@@ -44,7 +44,7 @@ use crate::{
ecdsa::{
signature::{
digest::{Digest, FixedOutput},
- DigestVerifier,
+... | 1 | 16 | 3 |
278359ce6f267354d54a0db2987c31821c40ca84 | Tony Arcieri | 2022-09-15T22:31:51 | Cargo.lock: update dependencies (#657) | diff --git a/Cargo.lock b/Cargo.lock
index 362c42a9..7051e0ca 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -317,9 +317,9 @@ dependencies = [
[[package]]
name = "ecdsa"
-version = "0.14.6"
+version = "0.14.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "fd6f2ba6c133e1d5390e2351b10b17... | 1 | 12 | 12 |
d32dfb938ac005da80b946cda70b385a1cd169a5 | Tony Arcieri | 2022-09-14T16:14:30 | k256: impl `Keypair` for `SigningKey` (#654)
This trait provides a common API for obtaining the `VerifyingKey` for a
given signer type. | diff --git a/k256/src/ecdsa/sign.rs b/k256/src/ecdsa/sign.rs
index 5595f7f6..6c626187 100644
--- a/k256/src/ecdsa/sign.rs
+++ b/k256/src/ecdsa/sign.rs
@@ -11,7 +11,7 @@ use ecdsa_core::{
signature::{
digest::{Digest, FixedOutput},
hazmat::PrehashSigner,
- DigestSigner, RandomizedDigestSign... | 1 | 39 | 21 |
d5fa7a0a382f533e96cd7a0bd7c66948d0a21840 | Tony Arcieri | 2022-09-14T15:53:18 | k256: impl `PrehashSigner` and `PrehashVerifier` traits (#653)
Impls these traits for ECDSA `SigningKey` and `VerifyingKey`. | diff --git a/k256/src/ecdsa/sign.rs b/k256/src/ecdsa/sign.rs
index fb94eb03..5595f7f6 100644
--- a/k256/src/ecdsa/sign.rs
+++ b/k256/src/ecdsa/sign.rs
@@ -10,6 +10,7 @@ use ecdsa_core::{
hazmat::SignPrimitive,
signature::{
digest::{Digest, FixedOutput},
+ hazmat::PrehashSigner,
Digest... | 2 | 70 | 27 |
407e549c7cb7354186462cb0191b9bd865c61891 | Tony Arcieri | 2022-09-14T14:24:14 | Cargo.lock: bump dependencies (#651) | diff --git a/Cargo.lock b/Cargo.lock
index 83edfb86..5ff5a5fd 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -33,15 +33,15 @@ checksum = "349a06037c7bf932dd7e7d1f653678b2038b9ad46a74102f1fc7bd7872678cce"
[[package]]
name = "base64ct"
-version = "1.5.0"
+version = "1.5.2"
source = "registry+https://github.com/rust-lan... | 1 | 99 | 93 |
2ea1294a8842779dc2e2b6e8e25670fa09cce983 | Bogdan Opanchuk | 2022-08-10T19:52:51 | k256: bump the precision of precomputed division for the scalar decomposition (#639) | diff --git a/k256/src/arithmetic/mul.rs b/k256/src/arithmetic/mul.rs
index 74c0fc34..a8454b03 100644
--- a/k256/src/arithmetic/mul.rs
+++ b/k256/src/arithmetic/mul.rs
@@ -28,42 +28,11 @@
//! Cryptography on Sensor Networks Using the MSP430X Microcontroller" (Gouvea, Oliveira, Lopez),
//! Section 4.3 (here we use a so... | 1 | 113 | 39 |
d88e8a56cc09609043e0f79c0a354cea49837112 | Bogdan Opanchuk | 2022-08-10T01:30:50 | k256: get rid of eager computation in `mul_shift_vartime()` (#638)
* Fix a typo in `mul_shift_vartime()` logic
Fortunately since it was an internal method only used with shift=272,
it never made any difference.
* Get rid of eager computation in `mul_shift_vartime()` in places where it is shift-dependent
It i... | diff --git a/k256/src/arithmetic/scalar/wide32.rs b/k256/src/arithmetic/scalar/wide32.rs
index 838860ae..4af8cdc1 100644
--- a/k256/src/arithmetic/scalar/wide32.rs
+++ b/k256/src/arithmetic/scalar/wide32.rs
@@ -132,96 +132,100 @@ impl WideScalar {
pub(crate) fn mul_shift_vartime(a: &Scalar, b: &Scalar, shift: usiz... | 2 | 129 | 125 |
efa2e633de91b0546383b08195aca96d947af593 | Tony Arcieri | 2022-08-05T00:21:46 | weierstrass: add `impl_field_element!` (#637)
Imports this macro from the `elliptic-curve` crate:
https://docs.rs/elliptic-curve/0.12.3/elliptic_curve/macro.impl_field_element.html
It's used for defining the boilerplate of a `FieldElement` type backed
by a set of arithmetic ops, in a way that everything can be ... | diff --git a/p256/src/arithmetic/field.rs b/p256/src/arithmetic/field.rs
index 714619c5..79d17f26 100644
--- a/p256/src/arithmetic/field.rs
+++ b/p256/src/arithmetic/field.rs
@@ -31,7 +31,7 @@ const R_2: U256 =
#[derive(Clone, Copy, Debug)]
pub struct FieldElement(pub(crate) U256);
-elliptic_curve::impl_field_eleme... | 5 | 447 | 3 |
d1ea1a30a4c2d66497ab67681c2295202416d977 | Tony Arcieri | 2022-08-04T16:46:03 | p256: initial 32-bit scalar backend (#636)
This applies a similar treatment from #635 to the scalar backend,
clearing the way to implement a proper 32-bit backend for both the base
and scalar fields. | diff --git a/p256/src/arithmetic.rs b/p256/src/arithmetic.rs
index d1a4ed19..312a6866 100644
--- a/p256/src/arithmetic.rs
+++ b/p256/src/arithmetic.rs
@@ -9,7 +9,7 @@ pub(crate) mod util;
use self::{field::FieldElement, scalar::Scalar};
use crate::NistP256;
use elliptic_curve::{
- bigint::U256, AffineArithmetic, ... | 8 | 439 | 279 |
cea8f60ff76ba4f447a5169b9fb44f788b1217c4 | Tony Arcieri | 2022-08-04T04:10:47 | p256: use `impl_field_element!` macro (#635)
Uses the same macro as `p384` to define the `FieldElement` type.
Isolates core arithmetic functionality in a `p256_64.rs` module, with
the goal of eventually producing a 32-bit implementation as well.
Also adds a `p256_32.rs` module which provides a skeleton of a 32-... | diff --git a/p256/src/arithmetic.rs b/p256/src/arithmetic.rs
index 830e8253..d1a4ed19 100644
--- a/p256/src/arithmetic.rs
+++ b/p256/src/arithmetic.rs
@@ -31,8 +31,9 @@ impl WeierstrassCurve for NistP256 {
.sub(&FieldElement::ONE)
.sub(&FieldElement::ONE);
- const EQUATION_B: FieldElement =
- ... | 4 | 436 | 485 |
f1878f985211937b25308401ba64154256f3d308 | Tony Arcieri | 2022-08-04T01:54:12 | p256: use `U256` as the inner type for `FieldElement` (#634)
Incremental work towards making the `FieldElement` types between `p256`
and `p384` more consistent, as well as laying the groundwork for a
proper 32-bit backend. | diff --git a/p256/benches/field.rs b/p256/benches/field.rs
index 43ece839..de89987f 100644
--- a/p256/benches/field.rs
+++ b/p256/benches/field.rs
@@ -7,14 +7,14 @@ use hex_literal::hex;
use p256::FieldElement;
fn test_field_element_x() -> FieldElement {
- FieldElement::from_bytes(
+ FieldElement::from_sec1(
... | 5 | 208 | 264 |
6a4579460180a47c4d131743421ed09a32584a7f | Bogdan Opanchuk | 2022-08-02T02:35:28 | Implement ZeroizeOnDrop for k256::ecdsa::SigningKey and k256::schnorr::SigningKey (#630) | diff --git a/k256/src/ecdsa/sign.rs b/k256/src/ecdsa/sign.rs
index dcf1796d..fb94eb03 100644
--- a/k256/src/ecdsa/sign.rs
+++ b/k256/src/ecdsa/sign.rs
@@ -19,7 +19,7 @@ use elliptic_curve::{
ops::{Invert, Reduce},
rand_core::{CryptoRng, RngCore},
subtle::{Choice, ConstantTimeEq, CtOption},
- zeroize::... | 2 | 12 | 1 |
c48ae6654ed9ece63a9a80a80c0f96efacb076e8 | Tony Arcieri | 2022-07-30T22:10:47 | k256: add RFC6979 test vector (#628)
Adds a test vector for usage of HMAC-DRBG-SHA-256 for RFC6979 when
producing Ethereum-style recoverable ECDSA signatures, using test
vectors adapted from this discussion:
https://github.com/RustCrypto/elliptic-curves/pull/552#issuecomment-1185890038 | diff --git a/k256/src/ecdsa/recoverable.rs b/k256/src/ecdsa/recoverable.rs
index ed3c5f29..338c191b 100644
--- a/k256/src/ecdsa/recoverable.rs
+++ b/k256/src/ecdsa/recoverable.rs
@@ -316,23 +316,26 @@ impl From<Id> for ecdsa_core::RecoveryId {
}
}
-#[cfg(all(test, feature = "ecdsa", feature = "sha256"))]
+#[cfg... | 1 | 31 | 7 |
ecc87f0e6e3d630dcc4f04bc050687140838d871 | Tony Arcieri | 2022-07-30T21:30:11 | p384: re-export low-level `diffie_hellman` function (#627) | diff --git a/p384/src/ecdh.rs b/p384/src/ecdh.rs
index 1d808464..622bfaa4 100644
--- a/p384/src/ecdh.rs
+++ b/p384/src/ecdh.rs
@@ -36,6 +36,8 @@
//! assert_eq!(alice_shared.raw_secret_bytes(), bob_shared.raw_secret_bytes());
//! ```
+pub use elliptic_curve::ecdh::diffie_hellman;
+
use crate::{AffinePoint, NistP384... | 1 | 2 | 0 |
e1d2d1eaefcd3b26590250a5808b1403e4c29d4a | Tony Arcieri | 2022-07-01T16:28:56 | Bump `elliptic-curve` to v0.12.2 (#616)
Fixes deprecation warnings | diff --git a/Cargo.lock b/Cargo.lock
index 68f592ad..b016787b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -245,9 +245,9 @@ dependencies = [
[[package]]
name = "crypto-bigint"
-version = "0.4.7"
+version = "0.4.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ac961631d66e80ac7ac2ac01... | 10 | 35 | 35 |
3efb7f25376854c4c2e07b78e67d66161066a705 | Conrado Gouvea | 2022-06-24T22:38:02 | Remove mention of `None` in `to_affine` docs (#611)
Since `to_affine` doesn't return an `Option`, the mention of `None` in the documentation doesn't seem to make sense anymore. | diff --git a/p256/src/arithmetic/projective.rs b/p256/src/arithmetic/projective.rs
index 76678f74..28f46d13 100644
--- a/p256/src/arithmetic/projective.rs
+++ b/p256/src/arithmetic/projective.rs
@@ -68,7 +68,7 @@ impl ProjectivePoint {
Self::GENERATOR
}
- /// Returns the affine representation of this... | 1 | 1 | 1 |
d2f1a2e1d3df49eac84e4fd508a7ad59825e6f6d | Agost Biro | 2022-06-24T19:16:18 | k256: relax `DigestSigner` trait bounds (#613)
These bounds were previously required by the generic `hmac::Hmac` type used
by RFC6979 to compute ECDSA's `k` value, however the `rfc6979` crate has
since moved to `SimpleHmac` which means these bounds are no-longer required | diff --git a/k256/src/ecdsa/sign.rs b/k256/src/ecdsa/sign.rs
index a2cf77f0..dcf1796d 100644
--- a/k256/src/ecdsa/sign.rs
+++ b/k256/src/ecdsa/sign.rs
@@ -9,12 +9,7 @@ use core::{
use ecdsa_core::{
hazmat::SignPrimitive,
signature::{
- digest::{
- block_buffer::Eager,
- core_api:... | 1 | 5 | 46 |
9d740720dcccebe1b0f422433718c3053d6fe0b0 | daxpedda | 2022-06-20T21:00:01 | p256: update VOPRF test vectors (#599) | diff --git a/p256/src/arithmetic/hash2curve.rs b/p256/src/arithmetic/hash2curve.rs
index 68d1f44b..f5c50b40 100644
--- a/p256/src/arithmetic/hash2curve.rs
+++ b/p256/src/arithmetic/hash2curve.rs
@@ -248,39 +248,66 @@ fn hash_to_curve() {
}
}
+/// Taken from <https://www.ietf.org/archive/id/draft-irtf-cfrg-voprf... | 1 | 39 | 12 |
4a8e9d6cba2c0702ee7e91b37d0d4e1004b5d092 | Tony Arcieri | 2022-06-12T18:51:21 | p384: secP384r1 -> secp384r1 | diff --git a/p384/src/arithmetic/projective.rs b/p384/src/arithmetic/projective.rs
index befa8e6b..2da22232 100644
--- a/p384/src/arithmetic/projective.rs
+++ b/p384/src/arithmetic/projective.rs
@@ -33,7 +33,7 @@ impl PrimeCurveArithmetic for NistP384 {
type CurveGroup = ProjectivePoint;
}
-/// A point on the s... | 1 | 1 | 1 |
d8da0e4daebfe06b95ae332201b7ec363c12e01b | Tony Arcieri | 2022-06-12T18:15:14 | p384: impl `serde::{Serialize, Deserialize}` for `Scalar` (#604)
Leverages the generic serde trait impls on `ScalarCore` | diff --git a/p256/src/arithmetic/scalar.rs b/p256/src/arithmetic/scalar.rs
index a7d8ab7f..5cf64c7c 100644
--- a/p256/src/arithmetic/scalar.rs
+++ b/p256/src/arithmetic/scalar.rs
@@ -67,7 +67,7 @@ impl ScalarArithmetic for NistP256 {
/// - `double`, `square`, and `invert` operations
/// - Bounds for [`Add`], [`Su... | 2 | 60 | 2 |
0e869253144bd12937a9779b276d4501c9b2c992 | Tony Arcieri | 2022-06-12T15:23:57 | p256: use generic prime order formulas (#602)
Uses the generic implementation of Renes-Costello-Batina 2015 added to
the `elliptic-curve` crate:
https://github.com/RustCrypto/traits/pull/1022
This is effectively the same changes as #601 made to `p384`, but for the
`p256` crate. | diff --git a/p256/Cargo.toml b/p256/Cargo.toml
index e11e601b..ce8b301c 100644
--- a/p256/Cargo.toml
+++ b/p256/Cargo.toml
@@ -17,7 +17,7 @@ edition = "2021"
rust-version = "1.57"
[dependencies]
-elliptic-curve = { version = "0.12", default-features = false, features = ["hazmat", "sec1"] }
+elliptic-curve = { versi... | 3 | 37 | 92 |
fb44d7565b8c78c64d8fdcbac1bc29988645f602 | Tony Arcieri | 2022-06-12T14:06:55 | p384: use generic prime order formulas (#601)
Uses the generic implementation of Renes-Costello-Batina 2015 added to
the `elliptic-curve` crate:
https://github.com/RustCrypto/traits/pull/1022 | diff --git a/Cargo.lock b/Cargo.lock
index 690171bf..8ce391fe 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -330,9 +330,9 @@ checksum = "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457"
[[package]]
name = "elliptic-curve"
-version = "0.12.0"
+version = "0.12.1"
source = "registry+https://github.com/... | 6 | 25 | 517 |
d3386b765ca61cf38e8807bfae319c662b35e663 | Tony Arcieri | 2022-06-09T23:30:08 | p256: criterion benchmarks (#597)
Adapts the benchmarks added in the `p384` crate in #588 to the `p256`
crate, with the goal of using them to measure the performance impact of
switching to fiat-crypto's arithmetic implementations. | diff --git a/Cargo.lock b/Cargo.lock
index 5f7551ad..690171bf 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -608,6 +608,7 @@ name = "p256"
version = "0.11.0"
dependencies = [
"blobby",
+ "criterion",
"ecdsa",
"elliptic-curve",
"hex-literal",
diff --git a/p256/Cargo.toml b/p256/Cargo.toml
index b197ff48..e11e601... | 7 | 146 | 2 |
458112ad4816bb35e0b2296a5a7c6eb666f75972 | Tony Arcieri | 2022-06-09T00:29:55 | p384: extract `impl_field_invert!` macro (#596)
In preparation for switching `p256` to fiat crypto, this commit splits
the `impl_field_element!` macro, extracting a separate
`impl_field_invert!` macro that can be used independently of the rest.
This allows `impl_field_element!` to be used with `p256`, but providi... | diff --git a/p384/src/arithmetic/field.rs b/p384/src/arithmetic/field.rs
index a10172df..03eef3eb 100644
--- a/p384/src/arithmetic/field.rs
+++ b/p384/src/arithmetic/field.rs
@@ -28,7 +28,7 @@ use self::field_impl::*;
use crate::FieldBytes;
use core::ops::{AddAssign, MulAssign, Neg, SubAssign};
use elliptic_curve::{... | 3 | 93 | 66 |
afe6bf087eff781019423346675d3c62ecff1845 | Tony Arcieri | 2022-06-08T02:44:45 | p256: move `FieldElement` inherent impl block to top of file (#595)
In preparation for a `fiat-crypto` refactor, and for consistency with
the other field implementations. | diff --git a/p256/src/arithmetic/field.rs b/p256/src/arithmetic/field.rs
index 09cbb05b..8a53ab6b 100644
--- a/p256/src/arithmetic/field.rs
+++ b/p256/src/arithmetic/field.rs
@@ -49,78 +49,6 @@ const R2: FieldElement = FieldElement([
#[derive(Clone, Copy, Debug)]
pub struct FieldElement(pub(crate) [u64; LIMBS]);
-i... | 1 | 72 | 72 |
f3ae7d5fd362def04d07e042d448e5912049137f | Johannes | 2022-06-03T18:00:55 | p256/p384: Update/add RFC 6979 test vectors (#591) | diff --git a/p256/src/ecdsa.rs b/p256/src/ecdsa.rs
index 12f2d6d5..1c44af33 100644
--- a/p256/src/ecdsa.rs
+++ b/p256/src/ecdsa.rs
@@ -102,6 +102,14 @@ mod tests {
f7cb1c942d657c41d436c7a1b6e29f65f3e900dbb9aff4064dc4ab2f843acda8"
)[..]
);
+ let signature = signer.sign(... | 2 | 37 | 1 |
0dbf9395a1ecd04cc705c0ae8816369be314d416 | Tony Arcieri | 2022-06-03T16:40:23 | p384: use canonical form constants (#592)
Now that conversions to/from the Montgomery domain are `const fn` (#590)
it's possible to define constants in their canonical form, rather than
converting them into the Montgomery domain first.
This makes the code clearer and easier to audit. | diff --git a/p384/src/arithmetic.rs b/p384/src/arithmetic.rs
index 88318e56..6ffbcb7b 100644
--- a/p384/src/arithmetic.rs
+++ b/p384/src/arithmetic.rs
@@ -19,15 +19,14 @@ use self::{
projective::ProjectivePoint,
scalar::Scalar,
};
-use crate::U384;
/// a = -3 (0xfffffffffffffffffffffffffffffffffffffffffff... | 5 | 55 | 58 |
d32f8d77f40015246029fee659b57d616ad431d0 | Tony Arcieri | 2022-06-03T00:18:48 | p384: comment fixup | diff --git a/p384/src/arithmetic/field.rs b/p384/src/arithmetic/field.rs
index 4a891691..cfccb08e 100644
--- a/p384/src/arithmetic/field.rs
+++ b/p384/src/arithmetic/field.rs
@@ -36,7 +36,7 @@ use elliptic_curve::{
/// p = 2^{384} − 2^{128} − 2^{96} + 2^{32} − 1
pub(crate) const MODULUS: U384 = U384::from_be_hex("fff... | 1 | 1 | 1 |
ada7359ffaa25bb364d3aa290ca3df9564f46300 | Tony Arcieri | 2022-06-03T00:15:19 | p384: make core field ops `const fn` (#590)
Now that #589 is landed, it's possible to add `const fn` implementations
of all core field operations, including conersions to/from Montgomery
form as well as arithmetic operations: add, double, sub, mul, neg, square | diff --git a/Cargo.lock b/Cargo.lock
index 5e8840ff..5c09ef0d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -245,9 +245,9 @@ dependencies = [
[[package]]
name = "crypto-bigint"
-version = "0.4.3"
+version = "0.4.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "78a4e0fb04deabeb711eb20b... | 2 | 39 | 10 |
c15c227baf1f0d17aec07bba7d8baee6c5ebb046 | Tony Arcieri | 2022-06-02T15:46:41 | p384: criterion benchmarks (#588)
I'd like to use these to measure performance changes if the
`fiat-crypto` field implementations are converted to `const fn`,
specifically leveraging criterion's support to track percentages by
which performance has increased/decreased.
Adapted from the benchmarks in the `k256` c... | diff --git a/Cargo.lock b/Cargo.lock
index ee31ae26..5e8840ff 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -31,15 +31,6 @@ version = "1.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "dea908e7347a8c64e378c17e30ef880ad73e3b4498346b055c2c00ea342f3179"
-[[package]]
-name = "benchmark-s... | 7 | 144 | 71 |
f179ec24c92fb7e5e24aedba1bb7eb4ac5f9decd | Tony Arcieri | 2022-06-02T15:05:50 | k256: fix `benches/` directory name (#587)
Renamed from `bench/`. Using the standard name means paths can be
inferred instead of explicitly specified in Cargo.toml. | diff --git a/k256/Cargo.toml b/k256/Cargo.toml
index 8f305215..0a7e24c5 100644
--- a/k256/Cargo.toml
+++ b/k256/Cargo.toml
@@ -63,17 +63,14 @@ rustdoc-args = ["--cfg", "docsrs"]
[[bench]]
name = "ecdsa"
-path = "bench/ecdsa.rs"
harness = false
required-features = ["ecdsa", "sha256"]
[[bench]]
name = "field"
-... | 4 | 0 | 3 |
8dd78db663cde9a0b3617656467b0a0b817a65dc | Tony Arcieri | 2022-06-01T02:04:15 | p384: `impl_sec1_field_element!` macro (#586)
Extracts a macro which wraps up the boilerplate for hooking up
SEC1-encodable field element types, namely `FieldElement` and `Scalar`,
to a backend implementation provided by `fiat-crypto`.
The long term goal is to extract this macro into the `elliptic-curve`
crate a... | diff --git a/p384/src/arithmetic.rs b/p384/src/arithmetic.rs
index 551113e4..88318e56 100644
--- a/p384/src/arithmetic.rs
+++ b/p384/src/arithmetic.rs
@@ -20,10 +20,6 @@ use self::{
scalar::Scalar,
};
use crate::U384;
-use elliptic_curve::bigint;
-
-/// Number of limbs used to represent a field element.
-const L... | 5 | 506 | 607 |
29a611fba5487007e5eaac7a4d81222dc5d14cbb | Tony Arcieri | 2022-05-31T20:47:00 | p384: remove `BlindedScalar` (#584)
It isn't properly implemented, and really it should be extracted from
`p256` into a generic implementation in the `elliptic-curve` crate,
rather than copied and pasted from crate-to-crate. | diff --git a/p384/src/arithmetic/scalar.rs b/p384/src/arithmetic/scalar.rs
index ac219cb5..079dc299 100644
--- a/p384/src/arithmetic/scalar.rs
+++ b/p384/src/arithmetic/scalar.rs
@@ -2,8 +2,6 @@
#![allow(clippy::unusual_byte_groupings)]
-pub(crate) mod blinded;
-
#[cfg_attr(target_pointer_width = "32", path = "sc... | 3 | 1 | 75 |
ef2995a44a5c821621e7cc95a90dd19148197b66 | Tony Arcieri | 2022-05-31T20:33:32 | p384: additional field fixups (#583)
- Ensure `FieldElement` is always in Montgomery form, changing
`to_canonical` to return a `U384`.
- Remove duplicated `sqrt` implementation.
- Remove `DecompactPoint` impl on `AffinePoint`. We don't currently have
test vectors so there's no way of knowing it's correct. | diff --git a/p384/src/arithmetic/affine.rs b/p384/src/arithmetic/affine.rs
index 83188d34..59abc0de 100644
--- a/p384/src/arithmetic/affine.rs
+++ b/p384/src/arithmetic/affine.rs
@@ -12,7 +12,7 @@ use elliptic_curve::{
sec1::{self, FromEncodedPoint, ToCompactEncodedPoint, ToEncodedPoint},
subtle::{Choice, Con... | 3 | 25 | 86 |
7c404a33bde0b83aae6579232ec96469cb4a9aca | Tony Arcieri | 2022-05-31T19:21:06 | p384: `Scalar` fixups after `U384` conversion (#582)
Some follow-up work for #581:
- Better organize code and simplify conversions
- Have `Scalar::to_non_mont` return a U384. This is more type safe as
it ensures `Scalar`'s internal representation is always Montgomery. | diff --git a/p384/src/arithmetic/scalar.rs b/p384/src/arithmetic/scalar.rs
index a771eba5..e9239f8f 100644
--- a/p384/src/arithmetic/scalar.rs
+++ b/p384/src/arithmetic/scalar.rs
@@ -20,7 +20,7 @@ use super::LIMBS;
use crate::{FieldBytes, NistP384, SecretKey, U384};
use core::ops::{Add, AddAssign, Mul, MulAssign, Neg... | 1 | 135 | 118 |
9aca8a931a116ad168e3c0095ebf138305c6030a | Tony Arcieri | 2022-05-31T18:11:41 | p384: use `U384` as the internal representation of `Scalar` (#581)
Similar to #578, this changes the internal representation of `Scalar`
from a raw `u32`/`u64` array to `U384`.
This simplifies defining constants, since `U384` has a `const fn` hex
parser.
It also eliminates the need to define the costants diffe... | diff --git a/p384/src/arithmetic/scalar.rs b/p384/src/arithmetic/scalar.rs
index 622a5184..a771eba5 100644
--- a/p384/src/arithmetic/scalar.rs
+++ b/p384/src/arithmetic/scalar.rs
@@ -20,12 +20,15 @@ use super::LIMBS;
use crate::{FieldBytes, NistP384, SecretKey, U384};
use core::ops::{Add, AddAssign, Mul, MulAssign, N... | 1 | 138 | 209 |
74f0e6f8ad0ec3cc9b15cc0aa1bc9bc6c69c3aef | Tony Arcieri | 2022-05-31T17:36:25 | p384: refactor `MODULUS` and macros (#580)
- Makes `MODULUS` a toplevel constant instead of an inherent one, and
also makes it a `U384` instead of a `FieldElement`, since it isn't
technically a valid field element.
- Factors arithmetic macros into their own module in preparation for
using them to impl `Scala... | diff --git a/p384/src/arithmetic.rs b/p384/src/arithmetic.rs
index 51d2080d..551113e4 100644
--- a/p384/src/arithmetic.rs
+++ b/p384/src/arithmetic.rs
@@ -5,12 +5,20 @@
//!
//! See section D.1.2.4: Curve P-384.
+#[macro_use]
+mod macros;
+
pub(crate) mod affine;
pub(crate) mod field;
pub(crate) mod projective;
... | 4 | 70 | 49 |
cc7e13e35a316dafeeaf2477208ceb47b3c35dc6 | Tony Arcieri | 2022-05-31T15:55:10 | p384: `FieldElement` cleanups (#579)
Leverages the new `AsRef` and `AsMut` impls on `crypto_bigint::UInt` to
simplify passing the limbs array to fiat-crypto functions.
Uses a macro to write the arithmetic ops impls. | diff --git a/Cargo.lock b/Cargo.lock
index 3bd6a20a..ee31ae26 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -260,9 +260,9 @@ dependencies = [
[[package]]
name = "crypto-bigint"
-version = "0.4.2"
+version = "0.4.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "de3e45371ac6a1370324b085... | 2 | 85 | 96 |
3ba5aae57c2cff683980802d5159a946097132ad | Tony Arcieri | 2022-05-31T13:06:49 | p384: use `U384` as the internal representation of `FieldElement` (#578)
This simplifies defining constants, since `U384` has a `const fn` hex
parser.
It also eliminates the need to define the costants differently on 32-bit
vs 64-bit platforms. | diff --git a/p384/src/arithmetic.rs b/p384/src/arithmetic.rs
index 26035614..51d2080d 100644
--- a/p384/src/arithmetic.rs
+++ b/p384/src/arithmetic.rs
@@ -5,58 +5,25 @@
//!
//! See section D.1.2.4: Curve P-384.
-#![allow(clippy::unusual_byte_groupings)]
pub(crate) mod affine;
pub(crate) mod field;
pub(crate) mod... | 4 | 79 | 214 |
c32879ede3180013be6820ab45ba68d03ce19b23 | Tony Arcieri | 2022-05-30T22:37:08 | p384: field cleanups (#577)
- Make `FieldElement::MODULUS` an inherent constant
- Replace some bespoke logic with U384 | diff --git a/p384/src/arithmetic.rs b/p384/src/arithmetic.rs
index c0d595ab..26035614 100644
--- a/p384/src/arithmetic.rs
+++ b/p384/src/arithmetic.rs
@@ -11,14 +11,11 @@ pub(crate) mod field;
pub(crate) mod projective;
pub(crate) mod scalar;
-use affine::AffinePoint;
-use elliptic_curve::bigint::nlimbs;
-use field... | 4 | 42 | 153 |
c8b6cf6bbd16a50bbd7a9ade653dbae426e85dde | Tony Arcieri | 2022-05-30T17:36:39 | p384: 32-bit fixups (#575)
Fixes transcription errors in precomputed Montgomery form constants, and
adds tests that the precomputed constants are correct.
32-bit inversions are still unimplemented so it's not yet possible to
add CI for these tests yet. | diff --git a/Cargo.toml b/Cargo.toml
index 96a9e9b2..c3cc4795 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -7,3 +7,6 @@ members = [
"p256",
"p384",
]
+
+[profile.dev]
+opt-level = 2
diff --git a/p384/src/arithmetic/affine.rs b/p384/src/arithmetic/affine.rs
index c47b920a..8d2d70ec 100644
--- a/p384/src/arithm... | 4 | 79 | 59 |
bf04c410e726935e8b0e0ee070f20b3a79e31adb | Tony Arcieri | 2022-05-27T19:15:33 | p384: better todo message for unimplemented inversions | diff --git a/p384/src/arithmetic/field.rs b/p384/src/arithmetic/field.rs
index 5c882c04..bfe27f3c 100644
--- a/p384/src/arithmetic/field.rs
+++ b/p384/src/arithmetic/field.rs
@@ -316,7 +316,7 @@ impl FieldElement {
/// Inversion.
#[cfg(target_pointer_width = "32")]
pub fn invert(&self) -> CtOption<Self> ... | 2 | 2 | 2 |
7e7959843f3c398dc7b2c2df378e2d7be3e6ae46 | Tony Arcieri | 2022-05-27T16:53:19 | p384: remove dbg comment (#572) | diff --git a/p384/src/arithmetic/projective.rs b/p384/src/arithmetic/projective.rs
index 0bf10534..139d6e24 100644
--- a/p384/src/arithmetic/projective.rs
+++ b/p384/src/arithmetic/projective.rs
@@ -724,8 +724,6 @@ mod tests {
.map(|(k, x, y)| (Scalar::from_repr(k.into()).unwrap(), (x, y))),
... | 1 | 0 | 2 |
1f356669bbb59f358a5f76e5cfee38b058e92bd6 | Tony Arcieri | 2022-05-27T16:19:35 | p384: scalar multiplication test vectors (#570)
Tests scalar multiplication using vectors from:
http://point-at-infinity.org/ecc/nisttv | diff --git a/p384/src/arithmetic/projective.rs b/p384/src/arithmetic/projective.rs
index 7128ae23..0bf10534 100644
--- a/p384/src/arithmetic/projective.rs
+++ b/p384/src/arithmetic/projective.rs
@@ -597,9 +597,9 @@ impl TryFrom<&ProjectivePoint> for PublicKey {
#[cfg(test)]
mod tests {
- use super::{AffinePoint,... | 4 | 283 | 94 |
38ea14646a026fcdd1866da793970ba233ba040e | Tony Arcieri | 2022-05-27T15:53:45 | p384: return `CtOption` from `Scalar::from_*_bytes` (#571)
...and adds `Scalar::from_*_slice` which returns `Result`.
`<Scalar as PrimeField>::from_repr` now calls `Scalar::from_be_bytes`.
This approach permits constant-time overflow checking for applications
which would benefit from it, and is consistent with ... | diff --git a/p384/src/arithmetic/scalar.rs b/p384/src/arithmetic/scalar.rs
index 762f4911..2805f302 100644
--- a/p384/src/arithmetic/scalar.rs
+++ b/p384/src/arithmetic/scalar.rs
@@ -21,7 +21,7 @@ use elliptic_curve::{
generic_array::arr,
ops::Reduce,
rand_core::RngCore,
- subtle::{Choice, Conditional... | 1 | 36 | 38 |
b52b87d160add8d8f3ce561108d394cd8e4cb00c | Johannes | 2022-05-27T13:05:20 | p384: Initial inclusion of FIPS 186-4 CAVP test vectors for ECDSA (#569) | diff --git a/p384/src/arithmetic/projective.rs b/p384/src/arithmetic/projective.rs
index a311e637..7128ae23 100644
--- a/p384/src/arithmetic/projective.rs
+++ b/p384/src/arithmetic/projective.rs
@@ -598,7 +598,7 @@ impl TryFrom<&ProjectivePoint> for PublicKey {
#[cfg(test)]
mod tests {
use super::{AffinePoint, P... | 6 | 278 | 102 |
6203ef9dd544e3f7d8fd3a87091b26d4a9b45ded | Johannes | 2022-05-27T12:59:53 | p384: `FieldElement::invert()` should check if self was non-zero (#568)
- `FieldElement::invert()` should set resulting `CtOption.is_some` based on if self is non-zero
- `Scalar::invert` should set `is_some` based on if self was non-zero | diff --git a/p384/src/arithmetic/field.rs b/p384/src/arithmetic/field.rs
index 3168fde6..77467488 100644
--- a/p384/src/arithmetic/field.rs
+++ b/p384/src/arithmetic/field.rs
@@ -303,7 +303,7 @@ impl FieldElement {
fiat_p384_selectznz(&mut v_, s, &v, &v_opp);
let mut fe: Fe = Default::default();
... | 3 | 5 | 7 |
d929a5e2216fb83ff5c99253557f8ee8fb779c47 | Tony Arcieri | 2022-05-27T01:55:24 | p384: initial test vectors for group operations (#567)
Adds basic test vectors for repeated additions of the generator.
Sourced from:
http://point-at-infinity.org/ecc/nisttv | diff --git a/p384/src/arithmetic/projective.rs b/p384/src/arithmetic/projective.rs
index ae0b4738..4cd89f7f 100644
--- a/p384/src/arithmetic/projective.rs
+++ b/p384/src/arithmetic/projective.rs
@@ -594,3 +594,120 @@ impl TryFrom<&ProjectivePoint> for PublicKey {
AffinePoint::from(point).try_into()
}
}
+... | 3 | 214 | 1 |
4c348efcb87c2165c90244a82a402be27efbe29e | Tony Arcieri | 2022-05-26T16:42:55 | Fix typo: "deocdes" => "decodes" | diff --git a/k256/src/ecdh.rs b/k256/src/ecdh.rs
index f01483dc..2ab73bc0 100644
--- a/k256/src/ecdh.rs
+++ b/k256/src/ecdh.rs
@@ -26,7 +26,7 @@
//!
//! let alice_shared = alice_secret.diffie_hellman(&bob_public);
//!
-//! // Bob deocdes Alice's serialized public key and computes the same shared secret
+//! // Bob d... | 2 | 2 | 2 |
f7f0c214866ab54513ca943a19d8d1756aabe043 | Frank Denis | 2022-05-26T02:29:38 | p256 invert(), sqrt(): replace exponentiations with addition chains (#564)
invert() using pow_vartime: 256 squarings, 128 multiplications
addition chain : 255 squarings, 12 multiplications
sqrt() using pow_vartime: 256 squarings, 129 multiplications
addition chain : 253 squarings, 7 mul... | diff --git a/p256/src/arithmetic/field.rs b/p256/src/arithmetic/field.rs
index 25a18cb4..09cbb05b 100644
--- a/p256/src/arithmetic/field.rs
+++ b/p256/src/arithmetic/field.rs
@@ -406,6 +406,15 @@ impl FieldElement {
self.mul(self)
}
+ /// Returns self^(2^n) mod p
+ fn sqn(&self, n: usize) -> Self ... | 1 | 32 | 12 |
2e65d12d32f5f27ab1d0e074e5e406d7e7de9f27 | Frank Denis | 2022-05-25T21:50:50 | p256: use a 4-bit window for scalar multiplication (#563)
Immediately improves performance even on a variable base:
- 35% faster on x86_64
- 37% faster on M1
- 37% faster on WebAssembly (Wasmtime)
- 39% faster on WebAssembly (Wasmedge) | diff --git a/p256/src/arithmetic/projective.rs b/p256/src/arithmetic/projective.rs
index bc800b5c..596114b9 100644
--- a/p256/src/arithmetic/projective.rs
+++ b/p256/src/arithmetic/projective.rs
@@ -9,7 +9,6 @@ use core::{
ops::{Add, AddAssign, Mul, MulAssign, Neg, Sub, SubAssign},
};
use elliptic_curve::{
- ... | 2 | 28 | 14 |
cdab4f2c3566cc6be1d50eb5680491605dc5e41f | Tony Arcieri | 2022-05-24T20:38:19 | k256: enable `schnorr` feature by default (#561)
And also enable it on docs.rs when generating rustdoc
It has no additional dependencies beyond what is required by default, so
there's little reason to leave it off-by-default. | diff --git a/k256/Cargo.toml b/k256/Cargo.toml
index e3be0a92..d560cd42 100644
--- a/k256/Cargo.toml
+++ b/k256/Cargo.toml
@@ -39,7 +39,7 @@ proptest = "1.0"
rand_core = { version = "0.6", features = ["getrandom"] }
[features]
-default = ["arithmetic", "ecdsa", "pkcs8", "std"]
+default = ["arithmetic", "ecdsa", "pk... | 1 | 2 | 2 |
689ccf27b7127f4713e36195c2414c7cff06595a | Tony Arcieri | 2022-05-24T18:31:58 | k256: document `schnorr` module (#558)
Adds general information about the scheme as well as a rustdoc example
of how to use it | diff --git a/k256/src/schnorr.rs b/k256/src/schnorr.rs
index 0f4ee0a8..d0ad6d32 100644
--- a/k256/src/schnorr.rs
+++ b/k256/src/schnorr.rs
@@ -1,6 +1,64 @@
//! Taproot Schnorr signatures as defined in [BIP340].
//!
+//! # About
+//!
+//! [Schnorr signatures] are a simple group-based digital signature scheme with
+//!... | 3 | 92 | 17 |
95148c20e802e42d39668536b5b8c03b60156af5 | Tony Arcieri | 2022-05-24T17:09:24 | k256: impl `signature` traits for `schnorr::*Key` (#557)
The traits provide standard, high-level interfaces for
signing/verification.
They also take care of computing a (SHA-256) digest from an input
message. | diff --git a/k256/Cargo.toml b/k256/Cargo.toml
index e89e47b7..699a3441 100644
--- a/k256/Cargo.toml
+++ b/k256/Cargo.toml
@@ -51,7 +51,7 @@ jwk = ["elliptic-curve/jwk"]
keccak256 = ["digest", "sha3"]
pem = ["ecdsa-core/pem", "elliptic-curve/pem", "pkcs8"]
pkcs8 = ["ecdsa-core/pkcs8", "elliptic-curve/pkcs8"]
-schnor... | 5 | 333 | 226 |
a63a9551f238b43d2d750b5947f4a3f33bd15519 | Tony Arcieri | 2022-05-21T22:13:02 | k256+p256: re-export low-level `diffie_hellman` function (#556)
Exports `diffie_hellman` within the `ecdh` module.
This is a low-level Diffie-Hellman function which can be used for static
D-H where necessary. | diff --git a/k256/src/ecdh.rs b/k256/src/ecdh.rs
index dfa7dcc0..f01483dc 100644
--- a/k256/src/ecdh.rs
+++ b/k256/src/ecdh.rs
@@ -36,6 +36,8 @@
//! assert_eq!(alice_shared.raw_secret_bytes(), bob_shared.raw_secret_bytes());
//! ```
+pub use elliptic_curve::ecdh::diffie_hellman;
+
use crate::{AffinePoint, Secp256k... | 2 | 4 | 0 |
e02a3e5a28a1bcbf31fe6c889380a1319d818a12 | Tony Arcieri | 2022-05-10T00:51:18 | k256: use SHA-256 for computing RFC6979 for `recoverable::Signature` (#552)
For whatever reason when the Ethereum developers decided to use
Keccak256 as the digest function for ECDSA itself, they still used
SHA-256 as the digest function for RFC6979, possibly because they didn't
realize they needed to change the di... | diff --git a/k256/Cargo.toml b/k256/Cargo.toml
index c67de712..5731848f 100644
--- a/k256/Cargo.toml
+++ b/k256/Cargo.toml
@@ -39,12 +39,12 @@ proptest = "1.0"
rand_core = { version = "0.6", features = ["getrandom"] }
[features]
-default = ["arithmetic", "ecdsa", "pkcs8", "sha256", "std"]
+default = ["arithmetic", ... | 2 | 17 | 4 |
1f7960b9f0f8b93a2c2aebdbf1fab346b3b44f58 | Tony Arcieri | 2022-05-09T19:44:22 | Fix `documentation` links in Cargo.toml (#551) | diff --git a/bp256/Cargo.toml b/bp256/Cargo.toml
index c09fccf7..6d915d34 100644
--- a/bp256/Cargo.toml
+++ b/bp256/Cargo.toml
@@ -4,7 +4,7 @@ version = "0.4.0"
description = "Brainpool P-256 (brainpoolP256r1 and brainpoolP256t1) elliptic curves"
authors = ["RustCrypto Developers"]
license = "Apache-2.0 OR MIT"
-doc... | 5 | 5 | 5 |
f381d51b0cb532398b2c9c306d23f9d0cabc44a0 | Tony Arcieri | 2022-05-09T17:28:15 | Remove `html_root_url` from lib.rs files (#547)
It's no longer recommended. See rust-lang/api-guidelines#229 | diff --git a/bp256/Cargo.toml b/bp256/Cargo.toml
index ead0d34b..c09fccf7 100644
--- a/bp256/Cargo.toml
+++ b/bp256/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "bp256"
-version = "0.4.0" # Also update html_root_url in lib.rs when bumping this
+version = "0.4.0"
description = "Brainpool P-256 (brainpoolP256r1 and bra... | 10 | 10 | 15 |
da17578803db7d7af78efc533f5d8bdeb0ba746c | Tony Arcieri | 2022-05-09T14:18:04 | Bump `elliptic-curve` to v0.12; `ecdsa` to v0.14 (#544)
Updates to the final releases of these two crates | diff --git a/Cargo.lock b/Cargo.lock
index 80bdd165..57f7ce04 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -244,9 +244,9 @@ dependencies = [
[[package]]
name = "crypto-bigint"
-version = "0.4.0-pre.1"
+version = "0.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ae6297ed3c636678b7... | 8 | 42 | 41 |
078363da500b04a031bcefb41bd25363b7ce1df7 | Tony Arcieri | 2022-05-08T04:05:42 | Bump `elliptic-curve` => v0.12.0-pre.4; `ecdsa` => v0.14.0-pre.5 (#543) | diff --git a/Cargo.lock b/Cargo.lock
index 7a6156df..80bdd165 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -27,9 +27,9 @@ checksum = "349a06037c7bf932dd7e7d1f653678b2038b9ad46a74102f1fc7bd7872678cce"
[[package]]
name = "base64ct"
-version = "1.3.3"
+version = "1.5.0"
source = "registry+https://github.com/rust-lang/... | 24 | 171 | 140 |
c878f0bb814f760c75707919d693d965a4849f70 | Tony Arcieri | 2022-03-29T15:34:27 | Have `pkcs8` feature activate `ecdsa/pkcs8` (#538)
This enables PKCS#8 support for the generic `SigningKey` and
`VerifyingKey` types from the `ecdsa` crate when the `pkcs8` feature of
any of the elliptic curve crates is enabled. | diff --git a/bp256/Cargo.toml b/bp256/Cargo.toml
index 7e6d702a..c974b274 100644
--- a/bp256/Cargo.toml
+++ b/bp256/Cargo.toml
@@ -23,7 +23,7 @@ sha2 = { version = "0.10", optional = true, default-features = false }
[features]
default = ["pkcs8", "std"]
pem = ["elliptic-curve/pem", "pkcs8"]
-pkcs8 = ["elliptic-curve... | 5 | 6 | 6 |
4a7c67986c22c6540471c45baa0ff681c97e1d3b | Tony Arcieri | 2022-03-17T02:09:35 | k256: remove remaining usages of `*_verify_key_*` (#537)
The type was renamed from `VerifyKey` to `VerifyingKey` quite awhile
ago, however there are still a handful of method names defined on
`k256::ecdsa::recoverable::VerifyingKey` that didn't get updated
accordingly:
- `recover_verify_key` => `recover_verifyin... | diff --git a/k256/src/ecdsa.rs b/k256/src/ecdsa.rs
index 27e77940..6ba66671 100644
--- a/k256/src/ecdsa.rs
+++ b/k256/src/ecdsa.rs
@@ -59,8 +59,8 @@
//! // Verification
//! use k256::{EncodedPoint, ecdsa::{VerifyingKey, signature::Verifier}};
//!
-//! let verify_key = VerifyingKey::from(&signing_key); // Serialize w... | 3 | 14 | 14 |
75381fdefceeca619eb787dcd0a118ac3f9f4789 | Tony Arcieri | 2022-03-17T00:05:18 | k256: fallible `AffinePoint` to `VerifyingKey` conversion (#535)
The inner type of `VerifyingKey` is a `PublicKey`, which is itself a
wrapper for an inner curve-specific `AffinePoint` which ensures that the
inner point is *NOT* the additive identity / point at infinity.
Therefore, any conversion from an `AffinePo... | diff --git a/Cargo.lock b/Cargo.lock
index 5ed97ab5..7a6156df 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -311,9 +311,9 @@ dependencies = [
[[package]]
name = "ecdsa"
-version = "0.14.0-pre.1"
+version = "0.14.0-pre.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "734abc41546cac3773... | 12 | 215 | 57 |
ca4903241440eaf3b160298d07a08763a52461b2 | Bogdan Opanchuk | 2022-03-15T20:47:17 | k256: normalize before calling is_odd() in sng0() (#533) | diff --git a/k256/src/arithmetic/hash2curve.rs b/k256/src/arithmetic/hash2curve.rs
index d546df7a..a4c8d6a4 100644
--- a/k256/src/arithmetic/hash2curve.rs
+++ b/k256/src/arithmetic/hash2curve.rs
@@ -42,7 +42,7 @@ impl FromOkm for FieldElement {
impl Sgn0 for FieldElement {
fn sgn0(&self) -> Choice {
- se... | 1 | 1 | 1 |
855da3cb12a0801b0e8531781b936212e455bfae | Bogdan Opanchuk | 2022-03-14T20:03:26 | k256: Do not normalize the argument in `FieldElementImpl::is_odd()` (#530)
- `FieldElementImpl::is_odd()` now checks for normalization instead of performing it
- `AffinePoint::decompress()` normalizes `y` coordinate (`beta` in the code) before checking if it is odd
- `Scalar::try_sign_prehashed` normalizes `R.y` bef... | diff --git a/k256/src/arithmetic/affine.rs b/k256/src/arithmetic/affine.rs
index fc5a4b2e..bd0ca171 100644
--- a/k256/src/arithmetic/affine.rs
+++ b/k256/src/arithmetic/affine.rs
@@ -151,6 +151,7 @@ impl DecompressPoint<Secp256k1> for AffinePoint {
let beta = alpha.sqrt();
beta.map(|beta| {
... | 4 | 31 | 2 |
ad2f198738f78ab82f64bf1bc3c66d1a9c2adcaf | Tony Arcieri | 2022-01-20T15:42:48 | p256 v0.11.0-pre.0 (#523) | diff --git a/Cargo.lock b/Cargo.lock
index eda30741..5ed97ab5 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -486,7 +486,7 @@ dependencies = [
[[package]]
name = "k256"
-version = "0.11.0-pre"
+version = "0.11.0-pre.0"
dependencies = [
"blobby",
"cfg-if",
@@ -593,7 +593,7 @@ checksum = "0ab1bc2a289d34bd04a330323a... | 3 | 4 | 4 |
5594f2532d48a0d8b181645cdde16ccbd5828303 | Tony Arcieri | 2022-01-20T15:28:12 | k256 v0.11.0-pre.0 (#522) | diff --git a/k256/Cargo.toml b/k256/Cargo.toml
index 81bc0e88..9968e004 100644
--- a/k256/Cargo.toml
+++ b/k256/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "k256"
-version = "0.11.0-pre" # Also update html_root_url in lib.rs when bumping this
+version = "0.11.0-pre.0" # Also update html_root_url in lib.rs when bumpin... | 2 | 2 | 2 |
28570524ccf1e67fad623b42bb1dfa8ab706f55a | Tony Arcieri | 2022-01-20T15:15:55 | Bump versions to prereleases (#521)
Now that #515 which upgrades to prereleases of the `elliptic-curve` and
`ecdsa` crates has been merged, bump the version numbers of all crates
to prereleases to indicate breaking changes have been made. | diff --git a/Cargo.lock b/Cargo.lock
index 3254c10a..eda30741 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -81,7 +81,7 @@ dependencies = [
[[package]]
name = "bp256"
-version = "0.3.0"
+version = "0.4.0-pre"
dependencies = [
"ecdsa",
"elliptic-curve",
@@ -91,7 +91,7 @@ dependencies = [
[[package]]
name = "b... | 11 | 15 | 15 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.