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 |
|---|---|---|---|---|---|---|---|
a5859dc933bbd3329fe63f0dd38813f96a2e5104 | Arthur Gautier | 2025-05-31T02:37:27 | chore(deps): bump `crypto-bigint` to `0.7.0-pre.4` (#1217) | diff --git a/Cargo.lock b/Cargo.lock
index b8d39c69..9d15d655 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -318,9 +318,9 @@ checksum = "43da5946c66ffcc7745f48db692ffbb10a83bfe0afd96235c5c2a4fb23994929"
[[package]]
name = "crypto-bigint"
-version = "0.7.0-pre.3"
+version = "0.7.0-pre.4"
source = "registry+https://gi... | 2 | 5 | 5 |
9cb74bcb8115a4f83d6cb3f5f02a17a39ff47076 | Simon Warta | 2025-05-30T15:24:24 | Add re-export p256::ecdsa::RecoveryId (#1216) | diff --git a/p256/src/ecdsa.rs b/p256/src/ecdsa.rs
index aab7c7d8..7ee983f7 100644
--- a/p256/src/ecdsa.rs
+++ b/p256/src/ecdsa.rs
@@ -39,7 +39,10 @@
//! # }
//! ```
-pub use ecdsa_core::signature::{self, Error};
+pub use ecdsa_core::{
+ RecoveryId,
+ signature::{self, Error},
+};
use super::NistP256;
use... | 1 | 4 | 1 |
09b0861022a3a711b72b314cae2957bcb7c762b4 | daxpedda | 2025-05-29T22:08:58 | Implement `De/Serialize` for `ProjectivePoint` (#1214) | diff --git a/p256/src/lib.rs b/p256/src/lib.rs
index 54fe7e12..8dc1f163 100644
--- a/p256/src/lib.rs
+++ b/p256/src/lib.rs
@@ -21,6 +21,7 @@
//! `Deserialize` are impl'd for the following types:
//!
//! - [`AffinePoint`]
+//! - [`ProjectivePoint`]
//! - [`Scalar`]
//! - [`ecdsa::VerifyingKey`]
//!
diff --git a/p3... | 4 | 42 | 0 |
8b62e29ae2acc92d1ef6d0404e263a2d055a6ef8 | Tony Arcieri | 2025-05-29T18:42:28 | Release `pre.3` prereleases (#1213)
Cuts new prereleases of: `k256`, `p256`, `p384`, `p521` | diff --git a/Cargo.lock b/Cargo.lock
index a36e209b..b8d39c69 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -583,7 +583,7 @@ dependencies = [
[[package]]
name = "k256"
-version = "0.14.0-pre.2"
+version = "0.14.0-pre.3"
dependencies = [
"blobby",
"cfg-if",
@@ -727,7 +727,7 @@ dependencies = [
[[package]]
nam... | 5 | 8 | 8 |
2c4c5c2fbc8e5bd9742483f02acc2fc7b1c3cddb | Tony Arcieri | 2025-05-29T18:23:02 | primeorder v0.14.0-pre.3 (#1212) | diff --git a/Cargo.lock b/Cargo.lock
index 9834e73a..a36e209b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -852,7 +852,7 @@ dependencies = [
[[package]]
name = "primeorder"
-version = "0.14.0-pre.2"
+version = "0.14.0-pre.3"
dependencies = [
"elliptic-curve",
"serdect",
diff --git a/bign256/Cargo.toml b/bign256... | 11 | 17 | 17 |
a01aa4392155c800b45719c9fa4cc21cca27c3f8 | Tony Arcieri | 2025-05-29T18:02:33 | primefield v0.14.0-pre.1 (#1211) | diff --git a/Cargo.lock b/Cargo.lock
index de3dc4ed..9834e73a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -841,7 +841,7 @@ dependencies = [
[[package]]
name = "primefield"
-version = "0.14.0-pre.0"
+version = "0.14.0-pre.1"
dependencies = [
"crypto-bigint",
"ff",
diff --git a/bign256/Cargo.toml b/bign256/Cargo... | 11 | 12 | 12 |
ac1fcd880b9ffa805db7ef2bfb33afe9095ad541 | Tony Arcieri | 2025-05-29T17:42:06 | Bump `digest` dependency to v0.11.0-rc.0 (#1210)
Also bumps:
- `ecdsa` v0.17.0-rc.0
- `elliptic-curve` v0.14.0-rc.2
- `signature` v3.0.0-rc.0 | diff --git a/Cargo.lock b/Cargo.lock
index 59b8509a..de3dc4ed 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -60,8 +60,9 @@ checksum = "d9aa1eef3994e2ccd304a78fe3fea4a73e5792007f85f09b79bb82143ca5f82b"
[[package]]
name = "belt-hash"
-version = "0.2.0-pre.5"
-source = "git+https://github.com/RustCrypto/hashes.git#d9ad0... | 13 | 79 | 90 |
222b1c27df3b2aea7cc49e0991efb2bdccadc9d7 | Andrew Whitehead | 2025-05-28T20:50:06 | Update for MapToCurve changes (#1206)
Signed-off-by: Andrew Whitehead <cywolf@gmail.com> | diff --git a/Cargo.lock b/Cargo.lock
index e189253d..79a22bba 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -331,7 +331,7 @@ dependencies = [
[[package]]
name = "crypto-common"
version = "0.2.0-rc.2"
-source = "git+https://github.com/RustCrypto/traits.git#857f6de047cffa855e6634e4fe61d3b023aca1fd"
+source = "git+https:... | 6 | 58 | 89 |
99bbeac36f5c087b519a509c050f1ced6543a403 | daxpedda | 2025-05-28T18:54:24 | Update to new `BatchInvert` changes (#1207) | diff --git a/Cargo.lock b/Cargo.lock
index c12235dd..e189253d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -331,7 +331,7 @@ dependencies = [
[[package]]
name = "crypto-common"
version = "0.2.0-rc.2"
-source = "git+https://github.com/RustCrypto/traits.git#1cae37d25c5bc6c59570d5136ccb710e1914b07a"
+source = "git+https:... | 8 | 19 | 25 |
048e5e4cd4c03100476b2ed071fdf95c28f35534 | daxpedda | 2025-05-28T18:12:43 | Add `BatchInvert` tests (#1205) | diff --git a/Cargo.lock b/Cargo.lock
index 31301fdb..c12235dd 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -382,7 +382,7 @@ checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719"
[[package]]
name = "elliptic-curve"
version = "0.14.0-rc.1"
-source = "git+https://github.com/RustCrypto/traits.git#... | 4 | 98 | 7 |
19b98fe578f654bd775981505b3836c6befbb7ec | Tony Arcieri | 2025-05-28T15:58:21 | Update `digest` with newtype changes (#1204)
Updates which correspond to RustCrypto/traits#1799 | diff --git a/Cargo.lock b/Cargo.lock
index 26f2b0c8..31301fdb 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -61,8 +61,7 @@ checksum = "d9aa1eef3994e2ccd304a78fe3fea4a73e5792007f85f09b79bb82143ca5f82b"
[[package]]
name = "belt-hash"
version = "0.2.0-pre.5"
-source = "registry+https://github.com/rust-lang/crates.io-inde... | 2 | 24 | 22 |
6a6447c8e749f48cfef2062cd684602aa823f2ed | Tony Arcieri | 2025-05-27T17:44:12 | Bump `elliptic-curve` pin (#1202)
Ensure we're compatible with the latest upstream changes to the
`elliptic-curve` crate | diff --git a/Cargo.lock b/Cargo.lock
index 0b4ce6ca..26f2b0c8 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -385,7 +385,7 @@ checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719"
[[package]]
name = "elliptic-curve"
version = "0.14.0-rc.1"
-source = "git+https://github.com/RustCrypto/traits.git#... | 1 | 2 | 2 |
f47cc1a94b4265b6116fc3e15c09fc2a9cf37b03 | Tony Arcieri | 2025-05-26T22:59:46 | primefield: add `scalar_impls!` and `scalar_from_impls!` (#1201)
- Adds a `scalar_from_impls!` macro for writing all of the `From` impls
needed for a proper integration with the `elliptic-curve` crate
- Adds a `scalar_impls!` macro which calls `scalar_from_impls!` and
`scalar_mul_impls!`
Together these help elimi... | diff --git a/bign256/src/arithmetic/scalar.rs b/bign256/src/arithmetic/scalar.rs
index 47418b8b..d12e52a2 100644
--- a/bign256/src/arithmetic/scalar.rs
+++ b/bign256/src/arithmetic/scalar.rs
@@ -15,9 +15,9 @@
mod scalar_impl;
use self::scalar_impl::*;
-use crate::{BignP256, FieldBytes, NonZeroScalar, ORDER_HEX, Sec... | 18 | 126 | 571 |
b412e9a7d9b2d2c1ed7c36c361d14f1ecb3fab32 | Tony Arcieri | 2025-05-25T19:37:35 | primeorder: rename `test_projective_arithmetic!` macro (#1200)
It was previously the more verbose `impl_projective_arithmetic_tests!`.
This follows the convention in the `primefield` crate. | diff --git a/bign256/tests/projective.rs b/bign256/tests/projective.rs
index d0ed4e4d..b8545004 100644
--- a/bign256/tests/projective.rs
+++ b/bign256/tests/projective.rs
@@ -10,9 +10,9 @@ use elliptic_curve::{
group::{GroupEncoding, ff::PrimeField},
sec1::{self, ToEncodedPoint},
};
-use primeorder::{Double,... | 7 | 13 | 15 |
7e254364b3b600c2cab240d884d65927e01a8683 | daxpedda | 2025-05-22T19:19:34 | Implement `TryFrom<Scalar/Projective/AffinePoint>` for `NonIdentity/ZeroScalar` (#1193) | diff --git a/bign256/src/arithmetic/scalar.rs b/bign256/src/arithmetic/scalar.rs
index 0190797d..47418b8b 100644
--- a/bign256/src/arithmetic/scalar.rs
+++ b/bign256/src/arithmetic/scalar.rs
@@ -225,6 +225,15 @@ impl From<&SecretKey> for Scalar {
}
}
+/// The constant-time alternative is available at [`NonZeroS... | 16 | 156 | 6 |
65be261937a65321181c95f0a65a7fc48942ac33 | Tony Arcieri | 2025-05-22T02:20:30 | primeorder: add `scalar_mul_impls!` macro (#1198)
Adds a macro which writes a series of `Mul` impls for `Scalar` types for
both `AffinePoint` and `ProjectivePoint` as operands (and various
combinations of references thereof).
See also: RustCrypto/traits#1854 | diff --git a/bign256/src/arithmetic/scalar.rs b/bign256/src/arithmetic/scalar.rs
index 38a09277..0190797d 100644
--- a/bign256/src/arithmetic/scalar.rs
+++ b/bign256/src/arithmetic/scalar.rs
@@ -88,6 +88,8 @@ primefield::fiat_field_arithmetic!(
fiat_bign256_scalar_selectznz
);
+primeorder::scalar_mul_impls!(Big... | 15 | 233 | 14 |
692953f725f5feb4831897f15e2ffdf55b10a9e0 | daxpedda | 2025-05-21T12:55:51 | Update `VoprfParameters` (#1196)
Companion PR to RustCrypto/traits#1814 | diff --git a/Cargo.lock b/Cargo.lock
index 9bd29d0a..0b4ce6ca 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -385,7 +385,7 @@ checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719"
[[package]]
name = "elliptic-curve"
version = "0.14.0-rc.1"
-source = "git+https://github.com/RustCrypto/traits.git#... | 7 | 32 | 11 |
dcd11dc4f9631a39a9a098ce9d6d643de3536b86 | Tony Arcieri | 2025-05-19T17:46:43 | Bump `criterion` dependency to v0.6 (#1195) | diff --git a/Cargo.lock b/Cargo.lock
index d79220ee..9bd29d0a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -248,25 +248,22 @@ dependencies = [
[[package]]
name = "criterion"
-version = "0.5.1"
+version = "0.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f2b12d017a929603d80db1831c... | 11 | 25 | 31 |
4b90da6eddbfd0b9bad5f6fb8b64dd137221350f | daxpedda | 2025-05-17T16:38:59 | Implement `From<NonIdentity>` for `Projective/AffinePoint` (#1190) | diff --git a/k256/src/arithmetic/affine.rs b/k256/src/arithmetic/affine.rs
index d9446b2f..79245c34 100644
--- a/k256/src/arithmetic/affine.rs
+++ b/k256/src/arithmetic/affine.rs
@@ -8,7 +8,7 @@ use core::ops::{Mul, Neg};
use elliptic_curve::{
Error, Result,
group::{GroupEncoding, prime::PrimeCurveAffine},
-... | 4 | 34 | 4 |
a44020213f96013929500f97e89a9c20f47c6b65 | Tony Arcieri | 2025-05-15T17:50:30 | Fix warnings on Rust 1.87 (#1189)
There were several new warnings of this nature:
warning: `#[must_use]` has no effect when applied to a provided trait method
--> k256/src/arithmetic/scalar.rs:239:5
|
239 | #[must_use]
| ^^^^^^^^^^^ | diff --git a/k256/src/arithmetic/field.rs b/k256/src/arithmetic/field.rs
index 76ef6647..1bd7bd54 100644
--- a/k256/src/arithmetic/field.rs
+++ b/k256/src/arithmetic/field.rs
@@ -270,12 +270,10 @@ impl Field for FieldElement {
}
}
- #[must_use]
fn square(&self) -> Self {
self.square()
... | 6 | 0 | 11 |
040ad24bb6308d63ffdb64b0aab592c3c1fa5acd | daxpedda | 2025-05-15T17:21:48 | Implement `From<NonZeroScalar>` for `Scalar` (#1188) | diff --git a/bign256/src/arithmetic/scalar.rs b/bign256/src/arithmetic/scalar.rs
index b245162e..38a09277 100644
--- a/bign256/src/arithmetic/scalar.rs
+++ b/bign256/src/arithmetic/scalar.rs
@@ -15,7 +15,7 @@
mod scalar_impl;
use self::scalar_impl::*;
-use crate::{BignP256, FieldBytes, ORDER_HEX, SecretKey, U256};
... | 13 | 168 | 8 |
6ae815ab333144d067ff13a1aa87476d12d4e624 | dishmaker | 2025-05-08T13:27:56 | bp384: fix typo in arithmetic.rs (#1185) | diff --git a/bp384/src/arithmetic.rs b/bp384/src/arithmetic.rs
index 77992665..e9f068f2 100644
--- a/bp384/src/arithmetic.rs
+++ b/bp384/src/arithmetic.rs
@@ -1,4 +1,4 @@
-//! Field arithmetic for the brainpoolP256 elliptic curve.
+//! Field arithmetic for the brainpoolP384 elliptic curve.
pub(crate) mod field;
pub... | 1 | 1 | 1 |
e31132665d2d8440d806cb249c109e5f4b788708 | Arthur Gautier | 2025-05-05T02:27:34 | Revert signature 3 changes (#1181) | diff --git a/Cargo.lock b/Cargo.lock
index cef0b18c..e55d6a17 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -367,7 +367,7 @@ dependencies = [
[[package]]
name = "ecdsa"
version = "0.17.0-pre.9"
-source = "git+https://github.com/RustCrypto/signatures.git#6cce0281c22e5f9a90f1d38ce2b05e08c6f3db34"
+source = "git+https://... | 13 | 43 | 22 |
a7c8aa1f72c499693cddc1255d3e2df9fc94aa3c | Tony Arcieri | 2025-05-04T18:46:01 | p256: inline inner functions of Barrett reduction (#1182)
This results in a 15%-20% speedup:
scalar operations/invert
time: [16.393 µs 16.500 µs 16.600 µs]
change: [-15.781% -15.313% -14.861%] (p = 0.00 < 0.05)
Performance has i... | diff --git a/p256/src/arithmetic/scalar/scalar32.rs b/p256/src/arithmetic/scalar/scalar32.rs
index 57f9950c..55cc1de0 100644
--- a/p256/src/arithmetic/scalar/scalar32.rs
+++ b/p256/src/arithmetic/scalar/scalar32.rs
@@ -83,6 +83,7 @@ pub(super) const fn barrett_reduce(lo: U256, hi: U256) -> U256 {
U256::new([r[0], ... | 2 | 4 | 0 |
f8abff7e3d462e8fb2d6fff7c57b240e1f8cc3cf | Tony Arcieri | 2025-05-04T00:44:50 | p256: use `primefield` macros (#1180)
Write most of the `FieldElement` implementation in `p256` using the same
macros we're applying to other crates.
This somewhat mysteriously seems to cause the following performance
regression on a macOS/M2 target:
point operations/point-scalar mul
time... | diff --git a/p256/src/arithmetic/field.rs b/p256/src/arithmetic/field.rs
index 3832ce37..889fe183 100644
--- a/p256/src/arithmetic/field.rs
+++ b/p256/src/arithmetic/field.rs
@@ -7,17 +7,12 @@
mod field_impl;
use crate::{FieldBytes, NistP256};
-use core::{
- iter::{Product, Sum},
- ops::{Add, AddAssign, Mul, ... | 3 | 22 | 209 |
f259ec4ad3521e1d278f192a76ddda8d35b6b89c | Tony Arcieri | 2025-05-03T02:29:18 | p256: begin using `primefield` (#1179)
This represents an initial attempt to convert some of the functionality
of `FieldElement` to using macros from the `primefield` crate.
Changes have been made carefully and minimally along with benchmarking
to ensure this does not impact performance (unlike the last attempt to
do... | diff --git a/p256/Cargo.toml b/p256/Cargo.toml
index 9b8cd087..bed9ad9e 100644
--- a/p256/Cargo.toml
+++ b/p256/Cargo.toml
@@ -23,6 +23,7 @@ elliptic-curve = { version = "0.14.0-rc.0", default-features = false, features =
# optional dependencies
ecdsa-core = { version = "=0.17.0-pre.9", package = "ecdsa", optional = ... | 6 | 231 | 340 |
41edd653c8393fc60b0246224d9969037154c75d | Tony Arcieri | 2025-05-02T23:02:29 | primeorder: remove unnecessary `must_use` (#1177)
warning: `#[must_use]` has no effect when applied to a provided trait
method
--> primeorder/src/projective.rs:294:5
|
294 | #[must_use]
| ^^^^^^^^^^^ | diff --git a/primeorder/src/projective.rs b/primeorder/src/projective.rs
index e8b5e39c..5b5d3baf 100644
--- a/primeorder/src/projective.rs
+++ b/primeorder/src/projective.rs
@@ -291,7 +291,6 @@ where
self.ct_eq(&Self::IDENTITY)
}
- #[must_use]
fn double(&self) -> Self {
Double::double(... | 1 | 0 | 1 |
f50a0b45907ca04b721451cf10b0788c503fa1f4 | Tony Arcieri | 2025-05-02T20:44:00 | primefield: move more `From` impls into `field_element_type!` (#1178)
More boilerplate in the macro is less copy/paste | diff --git a/bign256/src/arithmetic/scalar.rs b/bign256/src/arithmetic/scalar.rs
index 5f5686c2..03915b09 100644
--- a/bign256/src/arithmetic/scalar.rs
+++ b/bign256/src/arithmetic/scalar.rs
@@ -205,30 +205,6 @@ impl From<&Scalar> for ScalarPrimitive<BignP256> {
}
}
-impl From<Scalar> for FieldBytes {
- fn f... | 8 | 24 | 168 |
c977736bf0416ed895f404597a08e6681dd0b639 | Tony Arcieri | 2025-05-02T19:54:03 | primefield: fix modulus bit size calculation (#1176)
Calculates the bit size of the modulus based on the byte length of
`FieldBytes` (as opposed to the size of a `Uint`, which may be larger
than the bit length of the modulus depending on e.g. platform word size)
This makes it possible to use the full `fiat_field_arit... | diff --git a/p224/src/arithmetic/field.rs b/p224/src/arithmetic/field.rs
index 8942cf45..1025e0cc 100644
--- a/p224/src/arithmetic/field.rs
+++ b/p224/src/arithmetic/field.rs
@@ -56,7 +56,7 @@ primefield::field_element_type!(
FieldBytesEncoding::<NistP224>::encode_field_bytes
);
-primefield::fiat_field_arithmet... | 3 | 50 | 149 |
25c0526c0a30536b57517bb40ed4590ac0a41aec | Tony Arcieri | 2025-05-02T19:03:41 | primeorder: remove `field` module (#1175)
The functionality has been fully migrated to the `primefield` crate,
which supports the latest version of `fiat-crypto`, and includes other
ergonomic improvements.
Having a `field` module in `primeorder` never actually made sense
anyway, it was just a convenient place to put ... | diff --git a/Cargo.lock b/Cargo.lock
index 6a834463..cef0b18c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -743,6 +743,7 @@ dependencies = [
"ecdsa",
"elliptic-curve",
"hex-literal",
+ "primefield",
"primeorder",
"proptest",
"rand_core 0.9.3",
diff --git a/p256/Cargo.toml b/p256/Cargo.toml
index 0f73ed43..9b... | 5 | 3 | 673 |
65960ce239cfbf084de0e99340fc9c30aa1ea2e1 | Tony Arcieri | 2025-05-02T16:39:03 | primefield: add `test_primefield!` macro (#1174)
Adds a macro which writes all of the currently provided macro-based
tests for types which impl `PrimeField`. | diff --git a/bign256/src/arithmetic/field.rs b/bign256/src/arithmetic/field.rs
index bdaea6dd..bdbd48c0 100644
--- a/bign256/src/arithmetic/field.rs
+++ b/bign256/src/arithmetic/field.rs
@@ -124,11 +124,6 @@ impl PrimeField for FieldElement {
#[cfg(test)]
mod tests {
use super::FieldElement;
- use elliptic_cu... | 17 | 79 | 179 |
31714e0b8f0f815b04971c6c7c6f7fbdb6554b7a | peiqing | 2025-05-02T14:41:41 | sm2: add comprehensive DSA tests (#1169)
Add new test file dsa_extended.rs with comprehensive tests for SM2 DSA:
- Test different message lengths
- Test signature tampering detection
- Test special message cases
- Add property-based tests for signature consistency | diff --git a/sm2/tests/dsa_extended.rs b/sm2/tests/dsa_extended.rs
new file mode 100644
index 00000000..f3917a01
--- /dev/null
+++ b/sm2/tests/dsa_extended.rs
@@ -0,0 +1,91 @@
+#![cfg(feature = "dsa")]
+
+use elliptic_curve::ops::Reduce;
+use proptest::prelude::*;
+use sm2::{
+ NonZeroScalar, Scalar, U256,
+ dsa:... | 1 | 91 | 0 |
60be73b193d265fd65c0ddc92a0da31f2612674c | Tony Arcieri | 2025-05-01T17:48:09 | primefield: `field_element_type!` now impls `Shr<usize>` (#1166) | diff --git a/bign256/src/arithmetic/scalar.rs b/bign256/src/arithmetic/scalar.rs
index 67c96769..bb14345a 100644
--- a/bign256/src/arithmetic/scalar.rs
+++ b/bign256/src/arithmetic/scalar.rs
@@ -16,7 +16,6 @@ mod scalar_impl;
use self::scalar_impl::*;
use crate::{BignP256, FieldBytes, ORDER_HEX, SecretKey, U256};
-... | 4 | 25 | 69 |
fbfc568dfc80951afcab27d544d48a76788cac49 | daxpedda | 2025-05-01T14:30:09 | Bump `elliptic-curve` crate dependency (#1164) | diff --git a/Cargo.lock b/Cargo.lock
index cc43d296..83735507 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -386,7 +386,7 @@ checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719"
[[package]]
name = "elliptic-curve"
version = "0.14.0-rc.1"
-source = "git+https://github.com/RustCrypto/traits.git#... | 5 | 82 | 61 |
29556dd390c35054ec5f94dc7e675e5a5e4cafa2 | Tony Arcieri | 2025-05-01T13:43:26 | primefield: `field_element_type!` now impls `Invert` (#1163)
The trait is sourced from `crypto-bigint` | diff --git a/bign256/src/arithmetic/field.rs b/bign256/src/arithmetic/field.rs
index 3a412fbc..bdaea6dd 100644
--- a/bign256/src/arithmetic/field.rs
+++ b/bign256/src/arithmetic/field.rs
@@ -34,7 +34,6 @@ use crate::{BignP256, FieldBytes, U256};
use elliptic_curve::{
FieldBytesEncoding,
ff::PrimeField,
- ... | 5 | 11 | 37 |
b732fb3dbbf8e0f8ac7ab3fd5aa96999665b96ef | Tony Arcieri | 2025-05-01T04:14:20 | Bump `elliptic-curve` crate dependency (#1162)
This pulls in a new release of `crypto-bigint` as well as bumping
`signature` to v3 prereleases | diff --git a/Cargo.lock b/Cargo.lock
index aaa7e3ab..cc43d296 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -319,8 +319,9 @@ checksum = "43da5946c66ffcc7745f48db692ffbb10a83bfe0afd96235c5c2a4fb23994929"
[[package]]
name = "crypto-bigint"
-version = "0.7.0-pre.1"
-source = "git+https://github.com/RustCrypto/crypto-big... | 5 | 11 | 11 |
e4bc4f3f92c8307bb842d832f4036c4007420aaa | Tony Arcieri | 2025-05-01T03:02:44 | primefield: decouple from `elliptic-curve` (#1161)
This commit removes the last pieces coupling `primefield` and
`elliptic-curve`.
Since an elliptic curve is over a finite field, it doesn't make sense
for the dependency to go the other way. | diff --git a/Cargo.lock b/Cargo.lock
index f6f0dcac..aaa7e3ab 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -846,6 +846,7 @@ dependencies = [
name = "primefield"
version = "0.14.0-pre.0"
dependencies = [
+ "crypto-bigint",
"ff",
"rand_core 0.9.3",
"subtle",
diff --git a/bign256/src/arithmetic/field.rs b/bign256/... | 9 | 51 | 25 |
c806ac0380a24e4f3d8f460958743bfb81d08577 | Tony Arcieri | 2025-05-01T01:37:35 | primefield: have `field_element_type!` impl `Debug` (#1160)
Uses a common `Debug` impl for all field element types | diff --git a/bign256/src/arithmetic/field.rs b/bign256/src/arithmetic/field.rs
index cf45f0fc..b3c76ad5 100644
--- a/bign256/src/arithmetic/field.rs
+++ b/bign256/src/arithmetic/field.rs
@@ -43,7 +43,7 @@ pub(crate) const MODULUS: U256 =
U256::from_be_hex("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF... | 5 | 9 | 19 |
1adfd72c82ee0b7d334b15b4aab6ab69a1e46113 | Tony Arcieri | 2025-05-01T01:03:57 | primefield: add `shr` methods/trait impls to macro (#1159)
Updates `primefield::field_element_type` to add `shr` methods and trait
impls, replacing the copy/pasted definition to one provided by the macro | diff --git a/bign256/src/arithmetic/scalar.rs b/bign256/src/arithmetic/scalar.rs
index bebf932a..382e2fa2 100644
--- a/bign256/src/arithmetic/scalar.rs
+++ b/bign256/src/arithmetic/scalar.rs
@@ -96,13 +96,6 @@ impl Scalar {
]);
CtOption::new(sqrt, (sqrt * sqrt).ct_eq(self))
}
-
- /// Right shi... | 3 | 43 | 14 |
8ff3052a330f0405e3becb645d442e105d42c287 | Tony Arcieri | 2025-04-30T02:09:05 | p256: remove unnecessary sub in scalar Barrett reduction (#1155)
Based on the following Barrett reduction bound analysis:
https://reports.zksecurity.xyz/reports/near-p256/#analysis-of-the-bound-of-barrett-reduction
...the duplicate subtractions are unnecessary, and it was recommended to
remove them:
https://reports... | diff --git a/p256/src/arithmetic/scalar/scalar32.rs b/p256/src/arithmetic/scalar/scalar32.rs
index f13a5892..57f9950c 100644
--- a/p256/src/arithmetic/scalar/scalar32.rs
+++ b/p256/src/arithmetic/scalar/scalar32.rs
@@ -79,7 +79,6 @@ pub(super) const fn barrett_reduce(lo: U256, hi: U256) -> U256 {
// Result is in r... | 2 | 0 | 2 |
870a92698b59b952d9688f07e049127fec30eec0 | Tony Arcieri | 2025-04-29T22:13:40 | p256: have `FieldElement::to_canonical` return `U256` (#1154)
The internal representation of `FieldElement` is Montgomery form, so it
doesn't make sense for canonicalization to return a `FieldElement`, but
rather an integer, i.e. `U256`.
Originally suggested in:
https://reports.zksecurity.xyz/reports/near-p256/#find... | diff --git a/p256/src/arithmetic/field.rs b/p256/src/arithmetic/field.rs
index 0887bedb..d73878da 100644
--- a/p256/src/arithmetic/field.rs
+++ b/p256/src/arithmetic/field.rs
@@ -60,7 +60,7 @@ impl FieldElement {
/// Returns the SEC1 encoding of this field element.
pub fn to_bytes(self) -> FieldBytes {
- ... | 1 | 3 | 3 |
902b4ec7c41f0bd43a3593f2d9914d22c17c2423 | Tony Arcieri | 2025-04-29T22:03:16 | p256: use `U256` for `MODULUS` of `FieldElement` (#1153)
Previously `FieldElement` was used, however `MODULUS` itself is not a
valid field element.
Originally suggested here:
https://reports.zksecurity.xyz/reports/near-p256/#finding-mix-type | diff --git a/p256/src/arithmetic/field.rs b/p256/src/arithmetic/field.rs
index f3636b2c..0887bedb 100644
--- a/p256/src/arithmetic/field.rs
+++ b/p256/src/arithmetic/field.rs
@@ -24,7 +24,7 @@ const MODULUS_HEX: &str = "ffffffff00000001000000000000000000000000fffffffffffff
/// Constant representing the modulus
/// ... | 4 | 9 | 9 |
5c4b637f147ec4976631200d985e271c654817c0 | Tony Arcieri | 2025-04-29T21:52:12 | k256: have `serde` feature activate `pkcs8` (#1152)
Closes #1098 | diff --git a/k256/Cargo.toml b/k256/Cargo.toml
index 49e00c8b..9c93fdcb 100644
--- a/k256/Cargo.toml
+++ b/k256/Cargo.toml
@@ -60,7 +60,7 @@ pem = ["ecdsa-core/pem", "elliptic-curve/pem", "pkcs8"]
pkcs8 = ["ecdsa-core/pkcs8", "elliptic-curve/pkcs8"]
precomputed-tables = ["arithmetic"]
schnorr = ["arithmetic", "sha25... | 1 | 1 | 1 |
4ad35b5c622bf98261ed2e0a405976855ff1a236 | dufucun | 2025-04-29T21:37:33 | chore: fix cargo clippy warning (#1143)
Signed-off-by: dufucun <dufuchun@sohu.com> | diff --git a/sm2/src/pke/decrypting.rs b/sm2/src/pke/decrypting.rs
index 71b320fe..62135eba 100644
--- a/sm2/src/pke/decrypting.rs
+++ b/sm2/src/pke/decrypting.rs
@@ -160,7 +160,7 @@ fn decrypt(
cipher: &[u8],
) -> Result<Vec<u8>> {
let q = U256::from_be_hex(FieldElement::MODULUS);
- let c1_len = (q.bits(... | 2 | 2 | 2 |
92f1a5cd3db6e0cb30c56f7639cfa56a21e35ed4 | daxpedda | 2025-04-24T23:29:20 | Implement `ReduceNonZero` for `p384::Scalar` and `p521::Scalar` (#1148) | diff --git a/p256/src/arithmetic/scalar.rs b/p256/src/arithmetic/scalar.rs
index 46633e53..8730f9fc 100644
--- a/p256/src/arithmetic/scalar.rs
+++ b/p256/src/arithmetic/scalar.rs
@@ -738,9 +738,12 @@ impl<'de> Deserialize<'de> for Scalar {
#[cfg(test)]
mod tests {
- use super::Scalar;
- use crate::{FieldBytes... | 3 | 159 | 8 |
0611cdf1390cfa97243b383e2ceb5a581cb732c5 | Arthur Gautier | 2025-04-23T21:37:09 | chore(deps): bump to `signature` 3 (#1147) | diff --git a/Cargo.lock b/Cargo.lock
index fdf01717..7fe42c29 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -318,8 +318,9 @@ checksum = "43da5946c66ffcc7745f48db692ffbb10a83bfe0afd96235c5c2a4fb23994929"
[[package]]
name = "crypto-bigint"
-version = "0.7.0-pre.0"
-source = "git+https://github.com/RustCrypto/crypto-big... | 16 | 28 | 48 |
5ecd4718f9ce0ba092bc34edb981d63f75ed74a3 | Arthur Gautier | 2025-04-18T15:15:10 | Remove `MulByGenerator` (#1145)
* use `Group::try_from_rng`
* MulByGenerator is now in `group::Group` | diff --git a/Cargo.lock b/Cargo.lock
index 367dd339..fdf01717 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -363,7 +363,7 @@ dependencies = [
[[package]]
name = "ecdsa"
version = "0.17.0-pre.9"
-source = "git+https://github.com/RustCrypto/signatures.git#8324be36081a8fdf85d3b50bd769ab59f71b0289"
+source = "git+https://... | 9 | 36 | 46 |
32343a78f1522aa5bd856556f114053d4bb938e0 | Tony Arcieri | 2025-03-15T17:18:13 | k256: use `std::sync::LazyLock` instead of `once_cell` (#1135)
When building with the `precomputed-tables` and `std` features, uses the
built-in implementation of `LazyLock` in lieu of `once_cell::sync::Lazy`
thus avoiding the extra crate dependency.
The `critical-section` feature is retained and uses
`once_cell::syn... | diff --git a/k256/Cargo.toml b/k256/Cargo.toml
index f5e6776f..70abd4bf 100644
--- a/k256/Cargo.toml
+++ b/k256/Cargo.toml
@@ -58,7 +58,7 @@ hash2curve = ["arithmetic", "elliptic-curve/hash2curve"]
jwk = ["elliptic-curve/jwk"]
pem = ["ecdsa-core/pem", "elliptic-curve/pem", "pkcs8"]
pkcs8 = ["ecdsa-core/pkcs8", "elli... | 3 | 12 | 4 |
2436c10dbcf0935045e6a29e2696d3991be70c94 | Tony Arcieri | 2025-03-14T18:36:21 | Cargo.lock: bump dependencies (#1136)
Bumps the following dependencies:
$ cargo update
Updating git repository `https://github.com/RustCrypto/crypto-bigint.git`
Updating git repository `https://github.com/RustCrypto/signatures.git`
Updating git repository `https://github.com/RustCrypto/traits.git`
... | diff --git a/Cargo.lock b/Cargo.lock
index 81309db4..367dd339 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -30,9 +30,9 @@ checksum = "4b46cbb362ab8752921c97e041f5e366ee6297bd428a31275b9fcf1e380f7299"
[[package]]
name = "anstyle"
-version = "1.0.8"
+version = "1.0.10"
source = "registry+https://github.com/rust-lang/... | 1 | 148 | 183 |
51547308027355f59feaf64b92fa1300d8a582f1 | Tony Arcieri | 2025-03-10T16:42:58 | k256: use `TryCryptoRng` for `generate_vartime` (#1132)
We can make this work by reversing the caller relationship with
`Field::try_from_rng` and having `generate_vartime` call that | diff --git a/k256/src/arithmetic/scalar.rs b/k256/src/arithmetic/scalar.rs
index c7138672..927f1411 100644
--- a/k256/src/arithmetic/scalar.rs
+++ b/k256/src/arithmetic/scalar.rs
@@ -16,7 +16,7 @@ use elliptic_curve::{
bigint::{Limb, U256, U512, Word, prelude::*},
ff::{self, Field, PrimeField},
ops::{Inv... | 1 | 12 | 13 |
c6b8af1aabf6b05d9455819ed1e47a58a892462b | Arthur Gautier | 2025-03-10T02:40:31 | use try_from_rng for signing and secret keys (#1130) | diff --git a/Cargo.lock b/Cargo.lock
index 8c30b1a7..81309db4 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -389,7 +389,7 @@ checksum = "60b1af1c220855b6ceac025d3f6ecdd2b7c4894bfe9cd9bda4fbb4bc7c0d4cf0"
[[package]]
name = "elliptic-curve"
version = "0.14.0-rc.1"
-source = "git+https://github.com/RustCrypto/traits.git#... | 17 | 50 | 31 |
f0ae3ae87dc935e563eb40be8c07fbbc53875270 | Arthur Gautier | 2025-03-09T23:11:19 | use release branch of ff (#1129) | diff --git a/Cargo.lock b/Cargo.lock
index c5a0c929..8c30b1a7 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2,6 +2,17 @@
# It is not intended for manual editing.
version = 4
+[[package]]
+name = "addchain"
+version = "0.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3b2e69442aa56... | 10 | 100 | 50 |
6033a21ca2ab24b21e59ea094c8683d555a4917b | Bogdan Opanchuk | 2025-02-08T00:55:10 | primeorder: use `PrimeField::NUM_BITS` to bound scalar size when multiplying (#1119) | diff --git a/primeorder/src/projective.rs b/primeorder/src/projective.rs
index 806b7afa..95016702 100644
--- a/primeorder/src/projective.rs
+++ b/primeorder/src/projective.rs
@@ -10,7 +10,7 @@ use core::{
};
use elliptic_curve::{
array::ArraySize,
- bigint::{ArrayEncoding, Bounded},
+ bigint::ArrayEncoding... | 1 | 3 | 3 |
0e59a7a1ff2c0662cde99b2c8278bc4f2390a0b5 | Tony Arcieri | 2025-01-22T17:45:08 | p384: remove default `ecdh` feature (#1112)
This default feature is inconsistent with all of the other curve
implementations in this repo, which don't enable the `ecdh` feature by
default.
We could go either way, enabling it in all the other curves, or just
disabling it here. This PR opts to do the latter, as it's si... | diff --git a/p384/Cargo.toml b/p384/Cargo.toml
index ba1ad4d2..ecda70e6 100644
--- a/p384/Cargo.toml
+++ b/p384/Cargo.toml
@@ -37,7 +37,7 @@ proptest = "1.5"
rand_core = { version = "0.6", features = ["getrandom"] }
[features]
-default = ["arithmetic", "ecdh", "ecdsa", "pem", "std"]
+default = ["arithmetic", "ecdsa... | 1 | 1 | 1 |
1bfea04d5605b303db0ee2463685ef0bdc7c9087 | Tony Arcieri | 2024-10-16T20:08:35 | Cargo.lock: bump dependencies (#1094)
Updates the following dependencies:
$ cargo update
Updating crates.io index
Locking 79 packages to latest compatible versions
Adding aho-corasick v1.1.3
Updating anstyle v1.0.0 -> v1.0.8
Updating autocfg v1.1.0 -> v1.4.0
Removing bitflags v1... | diff --git a/Cargo.lock b/Cargo.lock
index 563249b1..f4830856 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2,6 +2,15 @@
# It is not intended for manual editing.
version = 3
+[[package]]
+name = "aho-corasick"
+version = "1.1.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8e60d3430... | 1 | 232 | 407 |
30b2dafbe86a1aee5baa088e9425c6ea052f4102 | Tony Arcieri | 2024-09-22T15:04:53 | k256 v0.14.0-pre.2 (#1086) | diff --git a/k256/Cargo.toml b/k256/Cargo.toml
index cc6b9304..25b170fa 100644
--- a/k256/Cargo.toml
+++ b/k256/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "k256"
-version = "0.14.0-pre.1"
+version = "0.14.0-pre.2"
description = """
secp256k1 elliptic curve library written in pure Rust with support for ECDSA
signi... | 1 | 1 | 1 |
469ce6b0eee7290242bbcc788603699587a11dba | Tony Arcieri | 2024-09-22T14:47:59 | primeorder v0.14.0-pre.2 (#1085) | diff --git a/Cargo.lock b/Cargo.lock
index c5bd901e..5d3b38a2 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -885,7 +885,7 @@ version = "0.14.0-pre.0"
[[package]]
name = "primeorder"
-version = "0.14.0-pre.1"
+version = "0.14.0-pre.2"
dependencies = [
"elliptic-curve",
"serdect",
diff --git a/bign256/Cargo.toml b... | 11 | 17 | 17 |
1eb7832960932d9432d15d18c9f22a84daaf62b4 | Tony Arcieri | 2024-09-22T14:20:31 | Bump `serdect` to v0.3.0-rc.0 (#1084) | diff --git a/Cargo.lock b/Cargo.lock
index 78ff16fb..c5bd901e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -376,7 +376,7 @@ dependencies = [
"digest",
"elliptic-curve",
"rfc6979",
- "serdect 0.3.0-rc.0",
+ "serdect",
"signature",
"spki",
]
@@ -407,7 +407,7 @@ dependencies = [
"rand_core",
"sec1",
"serde... | 9 | 19 | 29 |
94acd823f08d31bb49585213b6926f4ab635e9e2 | Tony Arcieri | 2024-09-22T13:56:15 | Bump `ecdsa` to v0.17.0-rc.9 (#1083) | diff --git a/Cargo.lock b/Cargo.lock
index 225a9069..78ff16fb 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -368,15 +368,15 @@ dependencies = [
[[package]]
name = "ecdsa"
-version = "0.17.0-pre.8"
+version = "0.17.0-pre.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f8fcbb0e60b9717a... | 9 | 25 | 25 |
89c0401abcc58e5fa80bbe7a6284962042f27996 | Tony Arcieri | 2024-09-20T16:43:56 | p256+p384+p512 v0.14.0-pre.2 (#1081) | diff --git a/Cargo.lock b/Cargo.lock
index 561f50e5..225a9069 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -772,7 +772,7 @@ dependencies = [
[[package]]
name = "p256"
-version = "0.14.0-pre.1"
+version = "0.14.0-pre.2"
dependencies = [
"blobby",
"criterion",
@@ -788,7 +788,7 @@ dependencies = [
[[package]]
... | 4 | 6 | 6 |
0824609d8fab3d69094d20c5186a0ae801110385 | Tony Arcieri | 2024-09-20T13:44:35 | Bump `ecdsa` to v0.17.0-pre.8 (#1080) | diff --git a/Cargo.lock b/Cargo.lock
index db7aa303..561f50e5 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -368,8 +368,9 @@ dependencies = [
[[package]]
name = "ecdsa"
-version = "0.17.0-pre.7"
-source = "git+https://github.com/RustCrypto/signatures.git#839cbdabfe3538b347ac4186eb504658cf46e6c6"
+version = "0.17.0-pr... | 10 | 19 | 21 |
137a8f7ab92b6ab835966a807970806c9f4fcd63 | Tony Arcieri | 2024-09-20T02:30:00 | Bump `crypto-bigint` to v0.6.0-rc.5 (#1078) | diff --git a/Cargo.lock b/Cargo.lock
index c64f094e..db7aa303 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -323,9 +323,9 @@ dependencies = [
[[package]]
name = "crypto-bigint"
-version = "0.6.0-rc.2"
+version = "0.6.0-rc.5"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "e43027691f1c05... | 1 | 2 | 2 |
c7641f2e3fe7b056292b8cfa05b2e490621a63f1 | Tony Arcieri | 2024-09-20T02:29:47 | Revert "build(deps): bump once_cell from 1.19.0 to 1.20.0 (#1076)" (#1079)
This reverts commit 53fcfc0515edcb40d886a9e7651750e80d8874f8. | diff --git a/Cargo.lock b/Cargo.lock
index 8421c185..c64f094e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -274,9 +274,9 @@ dependencies = [
[[package]]
name = "critical-section"
-version = "1.1.3"
+version = "1.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f64009896348fc5af4222... | 2 | 7 | 10 |
7e3f56dc6e07a64969bdcb232e8c1e67fbdf5e33 | Tony Arcieri | 2024-09-20T02:13:32 | k256 v0.14.0-pre.1 (#1077) | diff --git a/Cargo.lock b/Cargo.lock
index 47f88c7d..8421c185 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -605,7 +605,7 @@ dependencies = [
[[package]]
name = "k256"
-version = "0.14.0-pre.0"
+version = "0.14.0-pre.1"
dependencies = [
"blobby",
"cfg-if",
diff --git a/k256/Cargo.toml b/k256/Cargo.toml
index ef4... | 3 | 3 | 2 |
75ba0874af2cb5c79ce7a5a64b6be9925765f5b4 | Arthur Gautier | 2024-09-07T13:01:58 | fix pkcs8 api break (#1075) | diff --git a/Cargo.lock b/Cargo.lock
index 27697a18..825110c1 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -345,9 +345,9 @@ dependencies = [
[[package]]
name = "der"
-version = "0.8.0-rc.0"
+version = "0.8.0-rc.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "05d9c07d3bd80cf0935ce478... | 14 | 48 | 35 |
1935596875a3e657db37fa9c674672f79f094f3c | Tony Arcieri | 2024-07-27T15:27:08 | Cut pre.1 prereleases (#1066)
Cuts prereleases of the following crates:
- `p256` v0.14.0-pre.1
- `p384` v0.14.0-pre.1
- `p521` v0.14.0-pre.1
- `primeorder` v0.14.0-pre.1 | diff --git a/Cargo.lock b/Cargo.lock
index ab7e8028..27697a18 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -766,7 +766,7 @@ dependencies = [
[[package]]
name = "p256"
-version = "0.14.0-pre.0"
+version = "0.14.0-pre.1"
dependencies = [
"blobby",
"criterion",
@@ -782,7 +782,7 @@ dependencies = [
[[package]]
... | 11 | 23 | 23 |
0fe81d256c8226b0c744137c19d06445ffd4368b | Tony Arcieri | 2024-07-27T14:09:14 | Bump dependencies to new prerelease/RC crates (#1064)
Bumps the following:
- `belt-hash` v0.2.0-pre.4
- `ecdsa` v0.17.0-pre.7
- `elliptic-curve` v0.14.0-pre.6
- `hybrid-array` v0.2.0-rc.9
- `pkcs8` v0.11.0-rc.0
- `sha2` v0.11.0-pre.4
- `signature` v2.3.0-pre.4
- `sm3` v0.5.0-pre.4 | diff --git a/Cargo.lock b/Cargo.lock
index 1614eefb..ab7e8028 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -40,9 +40,9 @@ checksum = "d9aa1eef3994e2ccd304a78fe3fea4a73e5792007f85f09b79bb82143ca5f82b"
[[package]]
name = "belt-hash"
-version = "0.2.0-pre.3"
+version = "0.2.0-pre.4"
source = "registry+https://github.c... | 35 | 154 | 180 |
7a6e2b96010a445f7d5e0342ad2004e6096fbb3a | Alexandr Kitaev | 2024-07-27T13:17:42 | bign256: fix test vectors (#1065) | diff --git a/Cargo.lock b/Cargo.lock
index f8de5849..b31c0cdb 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -541,9 +541,9 @@ dependencies = [
[[package]]
name = "hybrid-array"
-version = "0.2.0-rc.4"
+version = "0.2.0-rc.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "18e63b66aee2df5... | 5 | 125 | 149 |
72540f895f8ba34e71d226b0b366d2d09af2f36c | Tony Arcieri | 2024-07-26T15:50:18 | primefield: fix `documentation` link in Cargo.toml | diff --git a/primefield/Cargo.toml b/primefield/Cargo.toml
index 601de033..fa495e9b 100644
--- a/primefield/Cargo.toml
+++ b/primefield/Cargo.toml
@@ -4,7 +4,7 @@ version = "0.14.0-pre.0"
description = "Macros for generating prime field implementations"
authors = ["RustCrypto Developers"]
license = "Apache-2.0 OR MI... | 1 | 1 | 1 |
0faafbd690475c4cc5cce14c9566c920a6d4ea8e | Tony Arcieri | 2024-07-26T15:48:42 | primefield v0.14.0-pre.0 (#1063) | diff --git a/Cargo.lock b/Cargo.lock
index 0df25b3d..f8de5849 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -874,7 +874,7 @@ checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de"
[[package]]
name = "primefield"
-version = "0.14.0-pre"
+version = "0.14.0-pre.0"
[[package]]
name = "primeorde... | 3 | 3 | 3 |
235e4013874dea0fc2b9cbed864750ff801187b3 | Tony Arcieri | 2024-07-26T15:07:59 | Fix missing features found by Rust 1.80 (#1062)
Some crates were defining features but not using them:
- bign256: added `bits`, `serde`, `test-vectors` features
- p521: removed `bits` vestiges (too hard with weird modulus size)
- sm2: added `bits` feature
In fixing this, I also uncovered that bign256's test ve... | diff --git a/bign256/Cargo.toml b/bign256/Cargo.toml
index 54c1af92..e3a0c846 100644
--- a/bign256/Cargo.toml
+++ b/bign256/Cargo.toml
@@ -21,22 +21,23 @@ rust-version = "1.73"
elliptic-curve = { version = "=0.14.0-pre.5", features = ["hazmat", "sec1"] }
# optional dependencies
-primeorder = { version = "=0.14.0-pr... | 7 | 35 | 45 |
bb1ee04e6e704a4d6c2430f89a93b918aa1b9f23 | Germano Percossi | 2024-06-28T16:53:06 | Prevent panic when creating a Schnorr from slice (#1056)
Introduced new safe builders, same as bign256 and sm2:
- `split_at` can panic if it receives a slice shorter than `Self::BYTES / 2`
- `split_at` is now use in the new `from_bytes` that accepts only byte arrays
or the right size
- `from_slice` uses a safe c... | diff --git a/k256/src/schnorr.rs b/k256/src/schnorr.rs
index 111c549e..1036ecaa 100644
--- a/k256/src/schnorr.rs
+++ b/k256/src/schnorr.rs
@@ -117,6 +117,31 @@ impl Signature {
fn split(&self) -> (&FieldElement, &NonZeroScalar) {
(self.r(), self.s())
}
+
+ /// Parse a Secp256k1 signature from a by... | 1 | 48 | 12 |
82e1b11fba2b01a6e60add989ab50af5cad14d5f | Luca Bruno | 2024-06-07T14:26:06 | cargo: point `repository` metadata to clonable URLs (#1055)
This tweaks the `repository` fields in Cargo metadata in order to use the correct (i.e. git clonable) URL.
The existing GitHub webUI URLs for each package have been retained and moved to `homepage` fields. | diff --git a/bign256/Cargo.toml b/bign256/Cargo.toml
index 23350900..b9761ee2 100644
--- a/bign256/Cargo.toml
+++ b/bign256/Cargo.toml
@@ -9,7 +9,8 @@ general purpose curve arithmetic
authors = ["RustCrypto Developers"]
license = "Apache-2.0 OR MIT"
documentation = "https://docs.rs/bign256"
-repository = "https://gi... | 12 | 24 | 12 |
520f67d26be1773bd600d05796cc26d797dd7182 | Tony Arcieri | 2024-06-05T14:53:18 | k256 v0.14.0-pre.0 (#1054) | diff --git a/Cargo.lock b/Cargo.lock
index 2e2bc8af..9f582b00 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -600,7 +600,7 @@ dependencies = [
[[package]]
name = "k256"
-version = "0.14.0-pre"
+version = "0.14.0-pre.0"
dependencies = [
"blobby",
"cfg-if",
diff --git a/k256/Cargo.toml b/k256/Cargo.toml
index 1bb82... | 2 | 2 | 2 |
4a225a6c8a89f47302906f14b33be30b74553a67 | Tony Arcieri | 2024-05-28T17:43:34 | Fix unused qualifications warnings (#1053)
These started surfacing in recent rustc versions | diff --git a/k256/src/arithmetic/field.rs b/k256/src/arithmetic/field.rs
index aff92693..c996cc71 100644
--- a/k256/src/arithmetic/field.rs
+++ b/k256/src/arithmetic/field.rs
@@ -485,7 +485,7 @@ impl Neg for &FieldElement {
impl Sum for FieldElement {
fn sum<I: Iterator<Item = Self>>(iter: I) -> Self {
- ... | 8 | 18 | 14 |
4d3dd079a6c40522be4e79294162d55bf642bb70 | janhesmert | 2024-05-28T14:44:29 | Fixed "to_bytes" function (#1052)
Co-authored-by: Jan Hesmert <jan.hesmert@ehex.de> | diff --git a/bp256/src/arithmetic/field.rs b/bp256/src/arithmetic/field.rs
index 4f44f3b4..4471a7b6 100644
--- a/bp256/src/arithmetic/field.rs
+++ b/bp256/src/arithmetic/field.rs
@@ -95,7 +95,7 @@ impl FieldElement {
/// Returns the big-endian encoding of this [`FieldElement`].
pub fn to_bytes(self) -> Fiel... | 1 | 1 | 1 |
a1fabfbc0ed80ff9ef5205842dd0b12596734ce2 | Jack Lloyd | 2024-04-24T14:12:55 | k256: add support for non-32-byte BIP340 signatures (#1041)
This was an extension to BIP340 that was introduced in 2022.
The official BIP340 test vectors do contain data for this case (tests 15-18) which are included here.
Fixes #1040 | diff --git a/k256/src/schnorr.rs b/k256/src/schnorr.rs
index 0e94c68b..111c549e 100644
--- a/k256/src/schnorr.rs
+++ b/k256/src/schnorr.rs
@@ -271,7 +271,7 @@ mod tests {
assert_eq!(sk.verifying_key().to_bytes().as_slice(), &vector.public_key);
let sig = sk
- .sign_prehash_wit... | 3 | 112 | 39 |
c2d5947052963db0ae96c29ca87a8223a1ea9b90 | Yehonatan Cohen Scaly | 2024-02-07T20:48:10 | k256: Batch Normalization `normalizes_to_zero()` bug fix (#1029) | diff --git a/k256/src/arithmetic/projective.rs b/k256/src/arithmetic/projective.rs
index 14de4dab..cf05fa16 100644
--- a/k256/src/arithmetic/projective.rs
+++ b/k256/src/arithmetic/projective.rs
@@ -295,7 +295,7 @@ where
// Even a single zero value will fail inversion for the entire batch.
// Put a du... | 1 | 8 | 5 |
5d1c252c2defb5808f55329f3e2955ca72d7f8b5 | Tony Arcieri | 2024-02-02T03:29:42 | Bump `elliptic-curve` to v0.14.0-pre.5 (#1028)
Also bumps `ecdsa` to v0.17.0-pre.5
This includes upgrades to the new `LinearCombination` trait | diff --git a/Cargo.lock b/Cargo.lock
index 0545d9a5..c9cd8954 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -40,9 +40,9 @@ checksum = "d9aa1eef3994e2ccd304a78fe3fea4a73e5792007f85f09b79bb82143ca5f82b"
[[package]]
name = "belt-hash"
-version = "0.2.0-pre.2"
+version = "0.2.0-pre.3"
source = "registry+https://github.c... | 19 | 100 | 104 |
ea9c6ee98539404a5a7cf53bd9f5cb60a680e36f | Tony Arcieri | 2024-01-29T02:52:11 | Bump `hybrid-array` to v0.2.0-rc.3 (#1026) | diff --git a/Cargo.lock b/Cargo.lock
index 75a65a53..0545d9a5 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -535,9 +535,9 @@ dependencies = [
[[package]]
name = "hybrid-array"
-version = "0.2.0-rc.2"
+version = "0.2.0-rc.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "662b1e7b4a15dc8... | 2 | 6 | 4 |
c0ce20f7a5cab8b8418131671b1b304538118ec4 | Tony Arcieri | 2024-01-27T16:27:25 | hybrid-array v0.2.0-rc.2 (#1025) | diff --git a/Cargo.lock b/Cargo.lock
index 7c80e9c7..75a65a53 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -535,9 +535,9 @@ dependencies = [
[[package]]
name = "hybrid-array"
-version = "0.2.0-rc.1"
+version = "0.2.0-rc.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7b700a69c9d9923... | 1 | 2 | 2 |
250b64e65f97511f818c422e4ee55be66e47e6f8 | Tony Arcieri | 2024-01-19T20:48:01 | p256 v0.14.0-pre.0 (#1022) | diff --git a/Cargo.lock b/Cargo.lock
index 7e83ce8a..7c80e9c7 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -761,7 +761,7 @@ dependencies = [
[[package]]
name = "p256"
-version = "0.14.0-pre"
+version = "0.14.0-pre.0"
dependencies = [
"blobby",
"criterion",
diff --git a/p256/Cargo.toml b/p256/Cargo.toml
index e2... | 2 | 2 | 2 |
478647ef02127e14d1b243d2eac9583099dc4d7d | Tony Arcieri | 2024-01-19T20:29:53 | primeorder v0.14.0-pre.0 (#1023) | diff --git a/Cargo.lock b/Cargo.lock
index e1d02282..7e83ce8a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -60,7 +60,7 @@ dependencies = [
"primeorder",
"proptest",
"rand_core",
- "rfc6979 0.5.0-pre.2 (registry+https://github.com/rust-lang/crates.io-index)",
+ "rfc6979",
"signature",
]
@@ -362,13 +362,14 @@ d... | 11 | 22 | 30 |
ce6abefd9ba36f63a2d5007fc5a15e0ed1da0337 | Tony Arcieri | 2024-01-19T19:38:01 | Bump `ecdsa` to v0.17.0-pre.4 (#1021) | diff --git a/Cargo.toml b/Cargo.toml
index 431c0bf4..126bda12 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -17,6 +17,3 @@ members = [
[profile.dev]
opt-level = 2
-
-[patch.crates-io.ecdsa]
-git = "https://github.com/rustcrypto/signatures.git"
diff --git a/bp256/Cargo.toml b/bp256/Cargo.toml
index 861ab7d0..9e12e7d4 ... | 9 | 14 | 17 |
1e4f2741300648999574d9d74c881c934408d815 | Tony Arcieri | 2024-01-18T01:52:37 | ecdsa: remove `SignPrimitive`/`VerifyPrimitive` traits (#1020)
These were removed upstream in RustCrypto/signatures#793.
The ECDSA implementation is fully generic now. These traits were
originally for per-curve implementations, but those are no-longer
needed.
The upstream implementation now has native support ... | diff --git a/Cargo.lock b/Cargo.lock
index 83e667e4..e1d02282 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -363,7 +363,7 @@ dependencies = [
[[package]]
name = "ecdsa"
version = "0.17.0-pre.3"
-source = "git+https://github.com/rustcrypto/signatures.git#56b8b7acdf6d76291f8cbff56241fb15063befd3"
+source = "git+https://... | 8 | 27 | 194 |
32e63102f0cb4dba71c84075e89c0247dcd35e01 | Tony Arcieri | 2024-01-17T22:38:15 | Add `EcdsaCurve` trait impls (#1019)
This is a marker trait added in RustCrypto/signatures#787 which marks an
elliptic curve as being intended for use with ECDSA.
It's the intended successor of the `SignPrimitive` and `VerifyPrimitive`
traits, carrying with it the one bit of information needed to eliminate
the n... | diff --git a/Cargo.lock b/Cargo.lock
index 22f19b81..83e667e4 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -60,7 +60,7 @@ dependencies = [
"primeorder",
"proptest",
"rand_core",
- "rfc6979",
+ "rfc6979 0.5.0-pre.2 (registry+https://github.com/rust-lang/crates.io-index)",
"signature",
]
@@ -363,13 +363,12 @@ d... | 12 | 74 | 14 |
92ec009ebf7ce0b64bb8ce2d35f570755355e4b0 | Tony Arcieri | 2024-01-17T19:58:18 | Bump `elliptic-curve` to v0.14.0-pre.3 (#1018)
Also bumps `ecdsa` to v0.17.0-pre.3 | diff --git a/Cargo.lock b/Cargo.lock
index 6289ef26..22f19b81 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -40,9 +40,9 @@ checksum = "d9aa1eef3994e2ccd304a78fe3fea4a73e5792007f85f09b79bb82143ca5f82b"
[[package]]
name = "belt-hash"
-version = "0.2.0-pre.1"
+version = "0.2.0-pre.2"
source = "registry+https://github.c... | 13 | 73 | 84 |
9fcdd71f56beda3fbb542fe1243b4c8b25b5d90a | Tony Arcieri | 2024-01-17T04:41:13 | p521: switch to upstream RFC6979-based ECDSA (#1016)
Now that RustCrypto/signatures#773 and RustCrypto/signatures#774 have
landed it should be possible to use the upstream RFC6979 implementation
from the `ecdsa` crate in conjunction with `p521`, which uses a Digest
with a 64-byte output, but uses 66-byte field elem... | diff --git a/Cargo.lock b/Cargo.lock
index b664f595..6289ef26 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -362,7 +362,7 @@ dependencies = [
[[package]]
name = "ecdsa"
version = "0.17.0-pre.2"
-source = "git+https://github.com/RustCrypto/signatures.git#32edd0d6309e63b6d1a9afcf062dc2c3f5f73b46"
+source = "git+https://... | 2 | 34 | 253 |
51a13670892a8de60ba0fa887776b1efdf986477 | Tony Arcieri | 2024-01-17T01:54:02 | k256: update `Signature::normalize_s` usages (#1017)
It's now infallible and always returns a normalized signature regardless
of if the original one was normalized or not:
https://github.com/RustCrypto/signatures/pull/780 | diff --git a/Cargo.lock b/Cargo.lock
index 4ee54b46..b664f595 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -60,7 +60,7 @@ dependencies = [
"primeorder",
"proptest",
"rand_core",
- "rfc6979",
+ "rfc6979 0.5.0-pre.1 (registry+https://github.com/rust-lang/crates.io-index)",
"signature",
]
@@ -362,13 +362,12 @@ d... | 3 | 20 | 12 |
c0129b69786c2702888899cd285b81899f3a64e6 | Tony Arcieri | 2024-01-12T02:10:44 | p521: simplify `FieldElement::from_uint_unchecked` (#1015)
Uses the newly added `const fn`-friendly version of `Uint::to_le_bytes` | diff --git a/Cargo.lock b/Cargo.lock
index 4c783557..4ee54b46 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -318,8 +318,7 @@ dependencies = [
[[package]]
name = "crypto-bigint"
version = "0.6.0-pre.10"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "12979c1e0771d68f02c2fb93fb0ad54e597f82... | 3 | 8 | 25 |
3ee4dff8f588e4ec18dfbcf0219cd35e6c36fb97 | Tony Arcieri | 2024-01-11T23:19:18 | Revert "primeorder: remove `Invert` bounds on `FieldElement` (#985)" (#1012)
This reverts commit 33af0a62bb83ed28dfca1266840b779a4136e4d1.
We can now make breaking changes again | diff --git a/primeorder/src/lib.rs b/primeorder/src/lib.rs
index 75f25d20..34d501bb 100644
--- a/primeorder/src/lib.rs
+++ b/primeorder/src/lib.rs
@@ -23,6 +23,8 @@ mod projective;
pub use crate::{affine::AffinePoint, projective::ProjectivePoint};
pub use elliptic_curve::{self, array, point::Double, Field, FieldBytes... | 2 | 12 | 13 |
0ed00f7825baca2b63c44ab598049c66e49fa98e | Oleksandr Tkachenko | 2023-12-14T16:00:36 | k256: add more inlines for better efficiency (#999) | diff --git a/k256/benches/ecdsa.rs b/k256/benches/ecdsa.rs
index 425ab15b..548b16b9 100644
--- a/k256/benches/ecdsa.rs
+++ b/k256/benches/ecdsa.rs
@@ -1,6 +1,6 @@
//! secp256k1 scalar arithmetic benchmarks
-use criterion::{criterion_group, criterion_main, Criterion};
+use criterion::{black_box, criterion_group, crit... | 6 | 44 | 21 |
7d9e2fe5b09dd196960e7923fe364646038c89ac | Alexander Kjäll | 2023-12-01T16:19:08 | fix test compilation errors if only the feature pkcs8 is enabled (#997) | diff --git a/p256/tests/pkcs8.rs b/p256/tests/pkcs8.rs
index 6c3bfece..e9468ef7 100644
--- a/p256/tests/pkcs8.rs
+++ b/p256/tests/pkcs8.rs
@@ -1,6 +1,6 @@
//! PKCS#8 tests
-#![cfg(feature = "pkcs8")]
+#![cfg(all(feature = "pkcs8", feature = "arithmetic"))]
use hex_literal::hex;
use p256::{ | 1 | 1 | 1 |
e7e5f7f89d8e822ff230960d64e531ef297442af | Tony Arcieri | 2023-11-21T03:48:54 | sm2: impl `Randomized*Signer` for `dsa::SigningKey` (#993)
Previously only RFC6979 deterministic signing was supported.
This commit adds trait impls for `RandomizedSigner` and
`RandomizedPrehashSigner`. They still use RFC6979, but supplement the
deterministic pseudorandomness with additional entropy supplied via ... | diff --git a/sm2/Cargo.toml b/sm2/Cargo.toml
index 3f37ac73..1be331ea 100644
--- a/sm2/Cargo.toml
+++ b/sm2/Cargo.toml
@@ -23,7 +23,7 @@ elliptic-curve = { version = "0.13", default-features = false, features = ["hazm
primeorder = { version = "0.13.1", optional = true, path = "../primeorder" }
rfc6979 = { version = "... | 2 | 62 | 33 |
f1de1e43449981c82f7a99fb36e514c50610b2aa | Tony Arcieri | 2023-11-15T22:28:55 | Bump `elliptic-curve` to v0.13.7 (#979)
This notably contains the `BatchInvert`, `BatchNormalize`, and
`LinearCombinationExt` traits, which we previously got by sourcing the
crate from the upstream git repo. | diff --git a/Cargo.lock b/Cargo.lock
index 0440b759..628e483e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -371,8 +371,9 @@ checksum = "7fcaabb2fef8c910e7f4c7ce9f67a1283a1715879a7c230ca9d6d1ae31f16d91"
[[package]]
name = "elliptic-curve"
-version = "0.13.6"
-source = "git+https://github.com/RustCrypto/traits.git#723... | 4 | 5 | 7 |
877d5d6a1d334f9399a434f8e1a8f01103feea5c | Tony Arcieri | 2023-11-15T19:51:43 | p521: make `LooseFieldElement` pub (#978)
The `FieldElement` type is available via the `FieldElement` associated
type of the `primeorder::PrimeCurveArithmetic` trait, principally
because it's the only way to make the generic implementation of curve
arithmetic formulas work, however certain power users working on th... | diff --git a/p521/src/arithmetic/field.rs b/p521/src/arithmetic/field.rs
index ef31365a..70382335 100644
--- a/p521/src/arithmetic/field.rs
+++ b/p521/src/arithmetic/field.rs
@@ -175,27 +175,23 @@ impl FieldElement {
}
/// Add elements.
- #[allow(dead_code)] // TODO(tarcieri): currently unused
- pub(c... | 2 | 14 | 17 |
676e728079afc75e4714713ff29f3a344dd78a59 | Yehonatan Cohen Scaly | 2023-11-15T19:51:29 | k256: refactored `lincomb` to use `LinearCombinationExt` trait (#974)
Co-authored-by: Tony Arcieri <bascule@gmail.com> | diff --git a/Cargo.lock b/Cargo.lock
index 47d17f65..0440b759 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -372,7 +372,7 @@ checksum = "7fcaabb2fef8c910e7f4c7ce9f67a1283a1715879a7c230ca9d6d1ae31f16d91"
[[package]]
name = "elliptic-curve"
version = "0.13.6"
-source = "git+https://github.com/RustCrypto/traits.git#4a663... | 4 | 85 | 99 |
2bb8aa892fe7ccf51413de8b751569cb49c9b76d | Tony Arcieri | 2023-11-15T03:31:58 | k256+primeorder: make `batch_normalize_generic` constant time (#977)
Uses constant-time selectors rather than branching | diff --git a/k256/src/arithmetic/projective.rs b/k256/src/arithmetic/projective.rs
index dd7ec132..a7f7bbbe 100644
--- a/k256/src/arithmetic/projective.rs
+++ b/k256/src/arithmetic/projective.rs
@@ -259,6 +259,7 @@ impl From<AffinePoint> for ProjectivePoint {
impl<const N: usize> BatchNormalize<[ProjectivePoint; N]> f... | 2 | 28 | 32 |
ee94d8de16d2dd093ef01eb75ab7db417f8ffb87 | Tony Arcieri | 2023-11-15T03:01:36 | k256+primeorder: use `batch_normalize_generic` for trait impl (#976)
Uses the generic function to impl `group::Curve::batch_normalize` | diff --git a/k256/src/arithmetic/projective.rs b/k256/src/arithmetic/projective.rs
index 0bccd1f4..dd7ec132 100644
--- a/k256/src/arithmetic/projective.rs
+++ b/k256/src/arithmetic/projective.rs
@@ -272,8 +272,8 @@ impl BatchNormalize<[ProjectivePoint]> for ProjectivePoint {
type Output = Vec<Self::AffineRepr>;
... | 2 | 21 | 13 |
0007c644c134465020e405e54e940230cc81f312 | Tony Arcieri | 2023-11-15T01:56:59 | k256+primeorder: add `batch_normalize_generic` (#975)
Adds a generic implementation of `batch_normalize` which abstracts over
backing storages. | diff --git a/Cargo.lock b/Cargo.lock
index d2209256..47d17f65 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -372,7 +372,7 @@ checksum = "7fcaabb2fef8c910e7f4c7ce9f67a1283a1715879a7c230ca9d6d1ae31f16d91"
[[package]]
name = "elliptic-curve"
version = "0.13.6"
-source = "git+https://github.com/ycscaly/traits?branch=batch... | 6 | 78 | 101 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.