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 |
|---|---|---|---|---|---|---|---|
38c0ff9af8c6c85507553a25df31cd7c3c2e9d76 | Alexander Kjäll | 2023-08-22T15:26:09 | the derive.rs tests also depends on the digest feature (#1339) | diff --git a/signature/tests/derive.rs b/signature/tests/derive.rs
index e76408a..b54eec8 100644
--- a/signature/tests/derive.rs
+++ b/signature/tests/derive.rs
@@ -1,6 +1,6 @@
//! Tests for code generated by `signature_derive`
-#![cfg(feature = "derive")]
+#![cfg(all(feature = "derive", feature = "digest"))]
use... | 1 | 1 | 1 |
edeaafad94ba55f77204bf40027e62e496e19232 | Артём Павлов [Artyom Pavlov] | 2023-06-26T13:18:48 | Update Cargo.lock | diff --git a/Cargo.lock b/Cargo.lock
index 3a2a5e3..138ddcb 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4,31 +4,31 @@ version = 3
[[package]]
name = "aead"
-version = "0.5.1"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "5c192eb8f11fc081b0fe4259ba5af04217d4e0faddd02417310a927911abd... | 1 | 55 | 55 |
805fd3186e9a6acde34c7a184d6c1e2f48ca8a2a | Tony Arcieri | 2023-06-24T13:30:35 | elliptic-curve: use `sec1::EcPrivateKey::PEM_LABEL` (#1326)
Instead of defining a separate constant for this, it can be obtained
from the `EcPrivateKey` type, which impls the `PemLabel` trait. | diff --git a/elliptic-curve/src/secret_key.rs b/elliptic-curve/src/secret_key.rs
index a8da65c..607589a 100644
--- a/elliptic-curve/src/secret_key.rs
+++ b/elliptic-curve/src/secret_key.rs
@@ -20,8 +20,17 @@ use crate::{rand_core::CryptoRngCore, CurveArithmetic, NonZeroScalar, PublicKey}
#[cfg(feature = "jwk")]
use c... | 1 | 14 | 16 |
ad5540627467b5dff93a1ba42e5df408a89e2208 | Artyom Pavlov | 2023-06-11T20:27:37 | digest: explicitly state that size is measured in bytes (#1321) | diff --git a/digest/src/lib.rs b/digest/src/lib.rs
index fc82e2e..04ea989 100644
--- a/digest/src/lib.rs
+++ b/digest/src/lib.rs
@@ -201,16 +201,16 @@ pub trait ExtendableOutputReset: ExtendableOutput + Reset {
/// Trait for hash functions with variable-size output.
pub trait VariableOutput: Sized + Update {
- /... | 1 | 3 | 3 |
3be350f2d482f8b275b66e1d40a96afc0724f050 | Tony Arcieri | 2023-05-31T14:32:03 | crypto-common: use `CryptoRngCore` (#1318)
Added in `rand_core` v0.6.4.
I think in the next `rand_core` release we'll be able to replace it with
`CryptoRng` (by leveraging a supertrait bound) but for now this reduces
the number of traits needed to just one. | diff --git a/crypto-common/Cargo.toml b/crypto-common/Cargo.toml
index 03f4d2b..63fca3d 100644
--- a/crypto-common/Cargo.toml
+++ b/crypto-common/Cargo.toml
@@ -17,7 +17,7 @@ generic-array = { version = "0.14.6", features = ["more_lengths"] }
typenum = "1.14" # earlier versions of typenum don't satisfy the 'static bou... | 2 | 12 | 12 |
40a0d2e14b59339babe04785e6185a767de83227 | Hendrik Böck | 2023-05-29T15:24:35 | fix documentation for `struct Salt` (#1316) (#1317) | diff --git a/password-hash/src/salt.rs b/password-hash/src/salt.rs
index 2fb8784..a73288c 100644
--- a/password-hash/src/salt.rs
+++ b/password-hash/src/salt.rs
@@ -50,14 +50,14 @@ const INVARIANT_VIOLATED_MSG: &str = "salt string invariant violated";
/// guidelines from the spec:
///
/// - Minimum length: **4**-byt... | 1 | 3 | 3 |
808fa1e0c2e8c66d38744b3c1d98dd0b4e291e28 | Tony Arcieri | 2023-05-18T19:38:55 | elliptic-curve: faster `PublicKey::from_encoded_point` (#1310)
Checks if the SEC1 point is using the identity encoding directly, rather
than round tripping through `ProjectivePoint`. | diff --git a/elliptic-curve/src/public_key.rs b/elliptic-curve/src/public_key.rs
index c3d5480..485b0ec 100644
--- a/elliptic-curve/src/public_key.rs
+++ b/elliptic-curve/src/public_key.rs
@@ -23,7 +23,7 @@ use {
FieldBytesSize,
},
core::cmp::Ordering,
- subtle::CtOption,
+ subtle::{Choice, CtO... | 1 | 2 | 2 |
3ac426bf04ccd261163099bb54a52ecbeef5cb60 | Tony Arcieri | 2023-04-17T17:31:29 | signature_derive: bump `syn` to v2 (#1299) | diff --git a/Cargo.lock b/Cargo.lock
index 560b9ad..15e8d2e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -71,7 +71,7 @@ checksum = "b9ccdd8f2a161be9bd5c023df56f1b2a0bd1d83872ae53b71a84a12c9bf6e842"
dependencies = [
"proc-macro2",
"quote",
- "syn 2.0.13",
+ "syn",
]
[[package]]
@@ -925,7 +925,7 @@ checksum = "4c... | 3 | 9 | 30 |
383438d6aca8588d4f71f14693a03329a08d44d7 | Tony Arcieri | 2023-04-09T02:21:54 | elliptic-curve: fix remaining `FieldBytesSize` handling (#1296)
Fixes the two remaining usages of `C::Uint::BYTES` to use
`C::FieldBytesSize::USIZE` instead.
These usages were:
- `NonZeroScalar::from_slice`
- `ScalarPrimitive::from_slice` | diff --git a/elliptic-curve/src/scalar/nonzero.rs b/elliptic-curve/src/scalar/nonzero.rs
index c1f326b..c0e4574 100644
--- a/elliptic-curve/src/scalar/nonzero.rs
+++ b/elliptic-curve/src/scalar/nonzero.rs
@@ -13,7 +13,7 @@ use core::{
};
use crypto_bigint::{ArrayEncoding, Integer};
use ff::{Field, PrimeField};
-use ... | 2 | 4 | 4 |
09dacdf8d1239d41a200fdc51dd5c5f1871770ff | Tony Arcieri | 2023-04-08T23:44:20 | elliptic-curve: bump `hex-literal` to v0.4 (#1295) | diff --git a/elliptic-curve/Cargo.lock b/elliptic-curve/Cargo.lock
index b180bda..c871067 100644
--- a/elliptic-curve/Cargo.lock
+++ b/elliptic-curve/Cargo.lock
@@ -177,9 +177,9 @@ dependencies = [
[[package]]
name = "hex-literal"
-version = "0.3.4"
+version = "0.4.1"
source = "registry+https://github.com/rust-lan... | 2 | 4 | 4 |
1644e10f0556f798bc6b5042d7963914177a3752 | Tony Arcieri | 2023-04-05T01:40:39 | elliptic-curve: bump `pkcs8` to v0.10.2 (#1291) | diff --git a/elliptic-curve/Cargo.lock b/elliptic-curve/Cargo.lock
index 33bca6c..4b22b68 100644
--- a/elliptic-curve/Cargo.lock
+++ b/elliptic-curve/Cargo.lock
@@ -14,11 +14,6 @@ version = "1.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8c3c1a368f70d6cf7302d78f8f7093da241fb8e8807... | 2 | 32 | 48 |
05a0dea094f99545d8043f83af85e1893d7854d0 | Tony Arcieri | 2023-04-03T15:00:48 | elliptic-curve: expand clippy lints (#1288)
Adds the following clippy lints and fixes violations thereof:
- clippy::cast_lossless
- clippy::cast_possible_truncation
- clippy::cast_possible_wrap
- clippy::cast_precision_loss
- clippy::cast_sign_loss
- clippy::checked_conversions
- clippy::implicit_saturating_s... | diff --git a/elliptic-curve/src/dev.rs b/elliptic-curve/src/dev.rs
index 5ca2d97..36c684a 100644
--- a/elliptic-curve/src/dev.rs
+++ b/elliptic-curve/src/dev.rs
@@ -335,6 +335,7 @@ impl Invert for Scalar {
impl Reduce<U256> for Scalar {
type Bytes = FieldBytes;
+ #[allow(clippy::integer_arithmetic)]
fn ... | 6 | 20 | 5 |
e8804f636a28e68e4699611244c6ac5816e9675b | Willian Wang | 2023-04-03T13:21:21 | elliptic-curve: fix FieldBytesEncoding ranges (#1287) | diff --git a/elliptic-curve/src/field.rs b/elliptic-curve/src/field.rs
index 605f6c7..33dd565 100644
--- a/elliptic-curve/src/field.rs
+++ b/elliptic-curve/src/field.rs
@@ -32,7 +32,8 @@ where
fn decode_field_bytes(field_bytes: &FieldBytes<C>) -> Self {
debug_assert!(field_bytes.len() <= Self::ByteSize::U... | 1 | 4 | 3 |
3562e79a2df6bcd2f717a1999e05db1a3e68364b | Tony Arcieri | 2023-04-02T21:00:54 | elliptic-curve: impl `AssociatedAlgorithmIdentifier` (#1286)
Adds impls for `SecretKey` and `PublicKey` | diff --git a/elliptic-curve/Cargo.lock b/elliptic-curve/Cargo.lock
index 8cf4ebe..33bca6c 100644
--- a/elliptic-curve/Cargo.lock
+++ b/elliptic-curve/Cargo.lock
@@ -14,6 +14,11 @@ version = "1.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8c3c1a368f70d6cf7302d78f8f7093da241fb8e8807... | 4 | 63 | 22 |
425c68cb1ee2f8182cb0b55779b4b4a5fbcd7325 | Артём Павлов [Artyom Pavlov] | 2023-04-02T02:17:24 | Update Cargo.lock | diff --git a/Cargo.lock b/Cargo.lock
index 7104661..9b39df7 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -31,7 +31,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "433cfd6710c9986c576a25ca913c39d66a6474107b406f34f91d4a8923395241"
dependencies = [
"cfg-if",
- "cipher 0.4.3",
+ "cipher... | 1 | 47 | 55 |
1ed0617ffc34272be7da22c9f68d5c259edf16ba | Tony Arcieri | 2023-04-02T01:03:38 | signature: add `SignatureEncoding::encoded_len` (#1283)
Adds a new provided method to the `SignatureEncoding` trait for
computing the length of the signature when it's serialized. | diff --git a/signature/src/encoding.rs b/signature/src/encoding.rs
index d8371e4..8bc475b 100644
--- a/signature/src/encoding.rs
+++ b/signature/src/encoding.rs
@@ -23,4 +23,9 @@ pub trait SignatureEncoding:
fn to_vec(&self) -> Vec<u8> {
self.to_bytes().as_ref().to_vec()
}
+
+ /// Get the length o... | 1 | 5 | 0 |
03124bd9c4fecf2b29eeb2b6924bcfe159844f7b | daxpedda | 2023-03-17T18:52:40 | Update OSSWU code (#1157) | diff --git a/elliptic-curve/src/hash2curve/osswu.rs b/elliptic-curve/src/hash2curve/osswu.rs
index 60796eb..3c3669a 100644
--- a/elliptic-curve/src/hash2curve/osswu.rs
+++ b/elliptic-curve/src/hash2curve/osswu.rs
@@ -1,9 +1,11 @@
//! Optimized simplified Shallue-van de Woestijne-Ulas methods.
//!
-//! <https://eprint... | 1 | 84 | 41 |
0de66adfade3683b1a97bf2453c81b3d0dbf68c9 | Artyom Pavlov | 2023-03-08T23:14:48 | Fix unsoundness with block size equal to zero (#1277) | diff --git a/cipher/src/stream_wrapper.rs b/cipher/src/stream_wrapper.rs
index 1d0d315..e3495bc 100644
--- a/cipher/src/stream_wrapper.rs
+++ b/cipher/src/stream_wrapper.rs
@@ -47,6 +47,9 @@ where
#[inline]
fn get_pos(&self) -> usize {
let pos = self.pos as usize;
+ if T::BlockSize::USIZE == 0... | 1 | 3 | 0 |
48517bc708fd3b67225571c14cd13c26806b737d | Tony Arcieri | 2023-03-08T17:36:13 | elliptic-curve: remove redundant bounds (#1274)
Remove explicit bounds which are already ensured via supertrait bounds. | diff --git a/elliptic-curve/src/public_key.rs b/elliptic-curve/src/public_key.rs
index 9237ef4..6af60d4 100644
--- a/elliptic-curve/src/public_key.rs
+++ b/elliptic-curve/src/public_key.rs
@@ -4,7 +4,7 @@ use crate::{
point::NonIdentity, AffinePoint, CurveArithmetic, Error, NonZeroScalar, ProjectivePoint, Result,
... | 1 | 7 | 8 |
71783b9145d2bd6ab39e92a00bd649cb74377a38 | Tony Arcieri | 2023-03-08T17:19:18 | elliptic-curve: `PublicKey` <-> SEC1 conversions (#1272)
Adds the following conversion impls to `PublicKey`
- `TryFrom`: `sec1::{CompressedPoint`, `EncodedPoint}`
- `Into` (via `From`): `sec1::{CompressedPoint`, `EncodedPoint}` | diff --git a/elliptic-curve/src/public_key.rs b/elliptic-curve/src/public_key.rs
index a7787ac..9237ef4 100644
--- a/elliptic-curve/src/public_key.rs
+++ b/elliptic-curve/src/public_key.rs
@@ -19,7 +19,7 @@ use core::str::FromStr;
use {
crate::{
point::PointCompression,
- sec1::{EncodedPoint, From... | 1 | 96 | 3 |
2975bae5d7224ede315ac70874cd1595ae0e6f8d | Tony Arcieri | 2023-03-04T20:13:48 | password-hash v0.5.0-rc.0 (#1269) | diff --git a/Cargo.lock b/Cargo.lock
index b3abe03..da5f701 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -702,7 +702,7 @@ dependencies = [
[[package]]
name = "password-hash"
-version = "0.5.0-pre.1"
+version = "0.5.0-rc.0"
dependencies = [
"base64ct",
"rand_core 0.6.4",
diff --git a/crypto/Cargo.toml b/crypto/C... | 3 | 3 | 3 |
c26f1548009d6655133a0caf921de21cf657c0c9 | Tony Arcieri | 2023-03-04T19:44:56 | password-hash: use `doc_auto_cfg` (#1268)
Automatically generate feature-specific documentation | diff --git a/password-hash/src/lib.rs b/password-hash/src/lib.rs
index 54c139d..4ba94a0 100644
--- a/password-hash/src/lib.rs
+++ b/password-hash/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(
... | 2 | 1 | 5 |
fa4185db66d2e2c403e559219fb28405915c568e | Tony Arcieri | 2023-03-04T18:55:22 | password-hash: add `getrandom` feature (#1267) | diff --git a/password-hash/Cargo.toml b/password-hash/Cargo.toml
index 17e49b0..0cc3f58 100644
--- a/password-hash/Cargo.toml
+++ b/password-hash/Cargo.toml
@@ -28,6 +28,8 @@ default = ["rand_core"]
alloc = ["base64ct/alloc"]
std = ["alloc", "base64ct/std", "rand_core/std"]
+getrandom = ["rand_core/getrandom"]
+
[... | 1 | 2 | 0 |
74e85e7432a8a71e2b55544a7747d419f8522c6a | Tony Arcieri | 2023-03-04T18:32:41 | password-hash: clarity improvements for `Salt*` APIs (#1266)
The `Salt` and `SaltString` types are wrappers for B64-encoded salt
strings as used by the PHC string format.
These API changes make it clearer that the input string needs to be
B64-encoded.
The old API is preserved but with deprecations to ease upgr... | diff --git a/password-hash/Cargo.toml b/password-hash/Cargo.toml
index 296e463..17e49b0 100644
--- a/password-hash/Cargo.toml
+++ b/password-hash/Cargo.toml
@@ -21,7 +21,7 @@ base64ct = "1"
subtle = { version = "2", default-features = false }
# optional dependencies
-rand_core = { version = "0.6", optional = true, ... | 5 | 102 | 66 |
da4c3de2e99f3847b1a1f84c54e3d848ca5f4c8f | Tony Arcieri | 2023-03-04T17:33:39 | digest+universal-hash: loosen `subtle` version requirement (#1260)
Relaxes the version requirement from `=2.4` to `^2.4`, which allows
usage of the newly published `subtle` v2.5.0 release. | diff --git a/digest/Cargo.toml b/digest/Cargo.toml
index 61f4683..9e93680 100644
--- a/digest/Cargo.toml
+++ b/digest/Cargo.toml
@@ -17,7 +17,7 @@ crypto-common = "0.2.0-pre"
# optional dependencies
block-buffer = { version = "0.11.0-pre", optional = true }
-subtle = { version = "=2.4", default-features = false, op... | 2 | 2 | 2 |
d7e80c3e7b6b7579b12b13feb79d3c814a3260c0 | z33ky | 2023-03-04T16:41:17 | password-hashes: Simplify Error::source() (#1265) | diff --git a/password-hash/src/errors.rs b/password-hash/src/errors.rs
index 44b95d4..e433506 100644
--- a/password-hash/src/errors.rs
+++ b/password-hash/src/errors.rs
@@ -103,19 +103,10 @@ impl fmt::Display for Error {
impl std::error::Error for Error {
fn source(&self) -> Option<&(dyn std::error::Error + 'stat... | 1 | 1 | 10 |
0a2ca9eff92ac298becb31aaf0072bd4b397a77a | z33ky | 2023-03-04T15:03:39 | password-hash: provide std::error::Error::source() for Error (#1264)
- Impl `std::error::Error` for `InvalidValue`
- Provide `std::error::Error::source()` for `Error`
The `Error` type sometimes wraps other errors, which are now returned by
the `source()` method. | diff --git a/password-hash/src/errors.rs b/password-hash/src/errors.rs
index f4719af..44b95d4 100644
--- a/password-hash/src/errors.rs
+++ b/password-hash/src/errors.rs
@@ -100,7 +100,25 @@ impl fmt::Display for Error {
}
#[cfg(feature = "std")]
-impl std::error::Error for Error {}
+impl std::error::Error for Error... | 1 | 22 | 1 |
3716369cd01e7a14ba71079828e20fb38379ab02 | Tony Arcieri | 2023-03-04T04:00:07 | elliptic-curve: weakly activate `pkcs8?/std` (#1263)
Activates the `std` feature of `pkcs8` when it's otherwise depended upon
Closes #1262 | diff --git a/elliptic-curve/Cargo.toml b/elliptic-curve/Cargo.toml
index 9338b0e..994bb17 100644
--- a/elliptic-curve/Cargo.toml
+++ b/elliptic-curve/Cargo.toml
@@ -54,6 +54,7 @@ alloc = [
std = [
"alloc",
"rand_core/std",
+ "pkcs8?/std",
"sec1?/std"
] | 1 | 1 | 0 |
b3abecb973993b8efc7345b325331d0daf90398d | Tony Arcieri | 2023-03-01T21:56:46 | elliptic-curve: `SecretKey::from_slice` short input support (#1256)
Tolerates inputs which are slightly shorter than expected (up to
4-bytes) to handle inputs from formats which strip leading zeroes from
serialized scalars | diff --git a/elliptic-curve/src/secret_key.rs b/elliptic-curve/src/secret_key.rs
index 1ade30a..97b3d58 100644
--- a/elliptic-curve/src/secret_key.rs
+++ b/elliptic-curve/src/secret_key.rs
@@ -10,8 +10,7 @@ mod pkcs8;
use crate::{Curve, Error, FieldBytes, Result, ScalarPrimitive};
use core::fmt::{self, Debug};
-use... | 2 | 42 | 5 |
410ecf54745469e14e1119c5b664f79f28f3c537 | Tony Arcieri | 2023-02-28T22:35:37 | elliptic-curve: dependency cleanups (#1254)
- Bump `base16ct` to v0.2
- Put more dependencies behind namespaced features | diff --git a/elliptic-curve/Cargo.lock b/elliptic-curve/Cargo.lock
index 5b4d595..81beb58 100644
--- a/elliptic-curve/Cargo.lock
+++ b/elliptic-curve/Cargo.lock
@@ -2,12 +2,6 @@
# It is not intended for manual editing.
version = 3
-[[package]]
-name = "base16ct"
-version = "0.1.1"
-source = "registry+https://github... | 2 | 9 | 15 |
61074bbfa71882e0b73152bb1bc2263e2983f23d | Tony Arcieri | 2023-02-28T18:34:23 | elliptic-curve v0.13.0-rc.0 (#1253) | diff --git a/elliptic-curve/Cargo.lock b/elliptic-curve/Cargo.lock
index 2ad1742..5b4d595 100644
--- a/elliptic-curve/Cargo.lock
+++ b/elliptic-curve/Cargo.lock
@@ -108,7 +108,7 @@ dependencies = [
[[package]]
name = "elliptic-curve"
-version = "0.13.0-pre.5"
+version = "0.13.0-rc.0"
dependencies = [
"base16ct 0... | 2 | 2 | 2 |
9da51bafb0b7e56f96b44bd6b14b31d14a6a8baa | Tony Arcieri | 2023-02-27T18:15:11 | password-hash v0.5.0-pre.1 (#1249) | diff --git a/Cargo.lock b/Cargo.lock
index 4410603..f49c796 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -702,7 +702,7 @@ dependencies = [
[[package]]
name = "password-hash"
-version = "0.5.0-pre.0"
+version = "0.5.0-pre.1"
dependencies = [
"base64ct",
"rand_core 0.6.4",
diff --git a/crypto/Cargo.toml b/crypto/... | 3 | 3 | 3 |
bf9cf0fc84aa2d1159c979d45a63945a411e3bcf | FssAy | 2023-02-17T16:42:41 | password-hash: fix invalid operator (#1246)
Allow the length of `s` to be exactly the same amount as `MAX_LENGTH` value. | diff --git a/password-hash/src/salt.rs b/password-hash/src/salt.rs
index 9702f74..e6fb9d8 100644
--- a/password-hash/src/salt.rs
+++ b/password-hash/src/salt.rs
@@ -198,7 +198,7 @@ impl SaltString {
let length = s.as_bytes().len();
- if length < Salt::MAX_LENGTH {
+ if length <= Salt::MAX_LEN... | 1 | 1 | 1 |
7cd5482de4b02f25f78a60c1ed49e0d781a0b9c4 | Tony Arcieri | 2023-02-12T17:03:09 | elliptic-curve: have `serde` feature activate `pkcs8` (#1245)
Previously the `Serialize`/`Deserialize` impls for `PublicKey` were
gated on both the `pkcs8` and `serde` features being enabled, which is
potentially confusing.
`PublicKey` uses `pkcs8` to serialize the public key as SPKI, which
includes OIDs which i... | diff --git a/elliptic-curve/Cargo.toml b/elliptic-curve/Cargo.toml
index 54c5648..f57e278 100644
--- a/elliptic-curve/Cargo.toml
+++ b/elliptic-curve/Cargo.toml
@@ -67,7 +67,7 @@ hazmat = []
jwk = ["alloc", "base64ct/alloc", "serde", "serde_json", "zeroize/alloc"]
pkcs8 = ["dep:pkcs8", "sec1"]
pem = ["alloc", "arith... | 2 | 4 | 4 |
bae41969049499dcb1b1509372579deda0e732a1 | Tony Arcieri | 2023-02-03T17:26:44 | elliptic-curve v0.13.0-pre.5 (#1243) | diff --git a/elliptic-curve/Cargo.lock b/elliptic-curve/Cargo.lock
index e2d1755..a55d7d3 100644
--- a/elliptic-curve/Cargo.lock
+++ b/elliptic-curve/Cargo.lock
@@ -102,7 +102,7 @@ dependencies = [
[[package]]
name = "elliptic-curve"
-version = "0.13.0-pre.4"
+version = "0.13.0-pre.5"
dependencies = [
"base16ct"... | 2 | 2 | 2 |
d14be8eb1510812efc7422711ee285ee79f76a80 | Tony Arcieri | 2023-02-03T14:52:29 | elliptic-curve: remove blanket impl for `Invert` (#1242)
Previously there was a blanket impl for types which impl `ff::Field`,
however this precludes implementations being able to define their own
`Invert::inert_vartime`. | diff --git a/elliptic-curve/src/arithmetic.rs b/elliptic-curve/src/arithmetic.rs
index 6bb9389..7ef7fc5 100644
--- a/elliptic-curve/src/arithmetic.rs
+++ b/elliptic-curve/src/arithmetic.rs
@@ -1,14 +1,13 @@
//! Elliptic curve arithmetic traits.
use crate::{
- ops::{LinearCombination, MulByGenerator, Reduce, ShrA... | 3 | 14 | 14 |
d57b54b9fcf5b28745547cb9fef313ab09780918 | Tony Arcieri | 2023-02-03T03:05:32 | elliptic-curve v0.13.0-pre.4 (#1241) | diff --git a/elliptic-curve/Cargo.lock b/elliptic-curve/Cargo.lock
index d485fe6..e2d1755 100644
--- a/elliptic-curve/Cargo.lock
+++ b/elliptic-curve/Cargo.lock
@@ -102,7 +102,7 @@ dependencies = [
[[package]]
name = "elliptic-curve"
-version = "0.13.0-pre.3"
+version = "0.13.0-pre.4"
dependencies = [
"base16ct"... | 2 | 2 | 2 |
c7bfb6d05c3f16578b57776ad63e82b2c98ce789 | Tony Arcieri | 2023-02-03T02:56:06 | elliptic-curve: remove generic `invert_vartime` implementation (#1240)
It's mathematically unsafe in that it relies on field element
representations outside the curve's modulus, which doesn't work in a
generic context.
The newly added `Invert::invert_vartime` method allows plugging in
generic variable-time inver... | diff --git a/elliptic-curve/src/scalar.rs b/elliptic-curve/src/scalar.rs
index 6ffd63b..eb99249 100644
--- a/elliptic-curve/src/scalar.rs
+++ b/elliptic-curve/src/scalar.rs
@@ -3,14 +3,12 @@
#[cfg(feature = "arithmetic")]
mod blinded;
#[cfg(feature = "arithmetic")]
-mod invert;
-#[cfg(feature = "arithmetic")]
mod n... | 4 | 5 | 88 |
d19d50f4db46d987f7ed59dd3b6b5f83ff2f95e0 | Tony Arcieri | 2023-02-03T02:36:01 | elliptic-curve: add `Invert::invert_vartime` (#1239)
Adds support for optimized variable-time inversions via the `Invert`
trait.
By default, the implementation uses a constant-time inversion by calling
`Invert::invert`. | diff --git a/elliptic-curve/src/ops.rs b/elliptic-curve/src/ops.rs
index 377558a..4b2ee33 100644
--- a/elliptic-curve/src/ops.rs
+++ b/elliptic-curve/src/ops.rs
@@ -12,6 +12,17 @@ pub trait Invert {
/// Invert a field element.
fn invert(&self) -> Self::Output;
+
+ /// Invert a field element in variable t... | 3 | 28 | 1 |
771f5dfcf232d54f7cca25d0b90c1705b21217a5 | daxpedda | 2023-02-01T17:30:35 | elliptic-curve: allow multiple `dst`s in the hash2curve API (#1238) | diff --git a/elliptic-curve/src/hash2curve/group_digest.rs b/elliptic-curve/src/hash2curve/group_digest.rs
index 4de0614..ea7f047 100644
--- a/elliptic-curve/src/hash2curve/group_digest.rs
+++ b/elliptic-curve/src/hash2curve/group_digest.rs
@@ -48,10 +48,10 @@ where
/// [`ExpandMsgXof`]: crate::hash2curve::ExpandM... | 5 | 115 | 82 |
d69d5b99ef3f906442030663fb2be515ebfe4e83 | Tony Arcieri | 2023-02-01T03:30:16 | elliptic-curve: consolidate `AffineCoordinates` trait (#1237)
See RustCrypto/elliptic-curves#50 for some historic context.
After being able to get by on `AffineXCoordinate` for generic ECDH and
ECDSA, #1199 added an `AffineYIsOdd` trait which was needed to enable
the generic ECDSA implementation in the `ecdsa` cr... | diff --git a/elliptic-curve/src/arithmetic.rs b/elliptic-curve/src/arithmetic.rs
index 53654d5..6bb9389 100644
--- a/elliptic-curve/src/arithmetic.rs
+++ b/elliptic-curve/src/arithmetic.rs
@@ -2,7 +2,7 @@
use crate::{
ops::{LinearCombination, MulByGenerator, Reduce, ShrAssign},
- point::{AffineXCoordinate, A... | 4 | 8 | 13 |
4ad2fc12f64f391eebf6298f0cb55cef520caebc | Tony Arcieri | 2023-02-01T02:58:17 | elliptic-curve v0.13.0-pre.3 (#1236) | diff --git a/elliptic-curve/Cargo.lock b/elliptic-curve/Cargo.lock
index 8b6c950..d485fe6 100644
--- a/elliptic-curve/Cargo.lock
+++ b/elliptic-curve/Cargo.lock
@@ -102,7 +102,7 @@ dependencies = [
[[package]]
name = "elliptic-curve"
-version = "0.13.0-pre.2"
+version = "0.13.0-pre.3"
dependencies = [
"base16ct"... | 2 | 2 | 2 |
3f03b406f57a2f5afcbe57e98066a1182282bf0f | Tony Arcieri | 2023-02-01T02:44:38 | elliptic-curve: factor out `FieldBytesEncoding` trait (#1235)
Extracts a trait to be impl'd on `Curve::Uint` which provides
curve-specific rules for how field elements should be encoded as bytes.
These rules include both endianness and how to pad/truncate bytes to
match the size of the integer (which may be large... | diff --git a/elliptic-curve/src/dev.rs b/elliptic-curve/src/dev.rs
index 2d45bf3..f590857 100644
--- a/elliptic-curve/src/dev.rs
+++ b/elliptic-curve/src/dev.rs
@@ -15,7 +15,7 @@ use crate::{
sec1::{CompressedPoint, FromEncodedPoint, ToEncodedPoint},
subtle::{Choice, ConditionallySelectable, ConstantTimeEq, C... | 4 | 52 | 32 |
c0c47018b4754c43ee474ba5ea31de2b0b6c14a9 | daxpedda | 2023-01-31T21:26:23 | Update VOPRF identifier type (#1175) | diff --git a/elliptic-curve/src/voprf.rs b/elliptic-curve/src/voprf.rs
index dc15d5f..68f2abf 100644
--- a/elliptic-curve/src/voprf.rs
+++ b/elliptic-curve/src/voprf.rs
@@ -7,14 +7,14 @@ use crate::PrimeCurve;
/// Elliptic curve parameters used by VOPRF.
pub trait VoprfParameters: PrimeCurve {
/// The `ID` param... | 1 | 5 | 5 |
adbf0ad45be30b6866f733c4f366cdb129ad50ce | Tony Arcieri | 2023-01-31T20:37:26 | elliptic-curve: fix `Reduce` impls for `NonZeroScalar<C>` (#1233)
They were still coupled to `FieldBytes` rather than forwarding to
`<Scalar<C> as Reduce<I>>::Bytes` properly.
Also, this commit reverses the relationship so `Reduce` has the non-zero
reduction implementation (forwarding to `Scalar`'s `ReduceNonZero... | diff --git a/elliptic-curve/src/scalar/nonzero.rs b/elliptic-curve/src/scalar/nonzero.rs
index 596928e..6839d42 100644
--- a/elliptic-curve/src/scalar/nonzero.rs
+++ b/elliptic-curve/src/scalar/nonzero.rs
@@ -244,24 +244,29 @@ where
}
}
-/// Note: implementation is the same as `ReduceNonZero`
+/// Note: this is... | 1 | 12 | 11 |
d44b7d34569ce1ba6b278712caa6d7c9239642a2 | Tony Arcieri | 2023-01-31T19:54:59 | elliptic-curve: propagate `Reduce::Bytes` for `NonZeroScalar` impls (#1232)
It was previously hardcoded to `FieldBytes<C>` which means it won't work
for "wide" reductions.
This propagates it to match the `Reduce` impls on `Scalar<C>`. | diff --git a/elliptic-curve/src/scalar/nonzero.rs b/elliptic-curve/src/scalar/nonzero.rs
index 460d6fc..596928e 100644
--- a/elliptic-curve/src/scalar/nonzero.rs
+++ b/elliptic-curve/src/scalar/nonzero.rs
@@ -251,7 +251,7 @@ where
I: Integer + ArrayEncoding,
Scalar<C>: Reduce<I, Bytes = FieldBytes<C>> + Reduc... | 1 | 4 | 3 |
09031c09d652cbe75b00f63e64e1ca1fa7e8b3ca | Tony Arcieri | 2023-01-31T17:42:21 | elliptic-curve v0.13.0-pre.2 (#1231) | diff --git a/elliptic-curve/Cargo.lock b/elliptic-curve/Cargo.lock
index aeca708..8b6c950 100644
--- a/elliptic-curve/Cargo.lock
+++ b/elliptic-curve/Cargo.lock
@@ -102,7 +102,7 @@ dependencies = [
[[package]]
name = "elliptic-curve"
-version = "0.13.0-pre.1"
+version = "0.13.0-pre.2"
dependencies = [
"base16ct"... | 2 | 2 | 2 |
d19771a12ac84564c7ed4242c2a93eb25a858412 | Tony Arcieri | 2023-01-31T17:33:41 | elliptic-curve: bump `crypto-bigint` to v0.5.0-pre.3 (#1230) | diff --git a/elliptic-curve/Cargo.lock b/elliptic-curve/Cargo.lock
index a2fcd99..aeca708 100644
--- a/elliptic-curve/Cargo.lock
+++ b/elliptic-curve/Cargo.lock
@@ -58,9 +58,9 @@ dependencies = [
[[package]]
name = "crypto-bigint"
-version = "0.5.0-pre.2"
+version = "0.5.0-pre.3"
source = "registry+https://github.... | 2 | 3 | 3 |
a3844beacdd24ca914fb094317a426aaca348024 | Tony Arcieri | 2023-01-31T03:52:23 | elliptic-curve: add (back) reduction from bytes (#1229)
As a replacement for the previous methods on `Reduce` which take bytes
as input, this adds a new curve-specific method for reducing from bytes
to a field element.
Bytes is defined as an associated type rather than inferred from the
unsigned integer paramete... | diff --git a/elliptic-curve/src/arithmetic.rs b/elliptic-curve/src/arithmetic.rs
index f09e8d7..53654d5 100644
--- a/elliptic-curve/src/arithmetic.rs
+++ b/elliptic-curve/src/arithmetic.rs
@@ -1,7 +1,7 @@
//! Elliptic curve arithmetic traits.
use crate::{
- ops::{LinearCombination, MulByGenerator, ShrAssign},
+ ... | 6 | 41 | 12 |
eca2d23f8578448c364393eeb7823de700bb9b9b | Tony Arcieri | 2023-01-30T19:43:49 | elliptic-curve: rename `SecretKey::as_scalar_primitive` (#1228)
Formerly `::as_scalar_core`. Follows the renaming of
`ScalarCore` => `ScalarPrimitive`. | diff --git a/elliptic-curve/src/scalar/nonzero.rs b/elliptic-curve/src/scalar/nonzero.rs
index 44e0cad..a4a2dbe 100644
--- a/elliptic-curve/src/scalar/nonzero.rs
+++ b/elliptic-curve/src/scalar/nonzero.rs
@@ -175,7 +175,7 @@ where
C: CurveArithmetic,
{
fn from(sk: &SecretKey<C>) -> NonZeroScalar<C> {
- ... | 2 | 2 | 2 |
db47e6fb4055e6de5f698dc561973197bf2b6b05 | Tony Arcieri | 2023-01-27T23:04:54 | elliptic-curve v0.13.0-pre.1 (#1226) | diff --git a/elliptic-curve/Cargo.lock b/elliptic-curve/Cargo.lock
index 239671c..a2fcd99 100644
--- a/elliptic-curve/Cargo.lock
+++ b/elliptic-curve/Cargo.lock
@@ -102,7 +102,7 @@ dependencies = [
[[package]]
name = "elliptic-curve"
-version = "0.13.0-pre.0"
+version = "0.13.0-pre.1"
dependencies = [
"base16ct"... | 2 | 2 | 2 |
9189b74193bbae67725e76ff4ec36250fe3c788b | Tony Arcieri | 2023-01-27T22:53:38 | elliptic-curve: remove `Reduce` methods (#1225)
Removes all methods from `Reduce` except the newly renamed
`Reduce::reduce` (formerly `from_uint_reduced`).
This follows #1220 which changed APIs to handle discrepancies between
the serialized size of the big integer type used to represent field
elements and the on... | diff --git a/elliptic-curve/src/dev.rs b/elliptic-curve/src/dev.rs
index e3bd8f8..f63d34b 100644
--- a/elliptic-curve/src/dev.rs
+++ b/elliptic-curve/src/dev.rs
@@ -325,7 +325,7 @@ impl<'a> Product<&'a Scalar> for Scalar {
}
impl Reduce<U256> for Scalar {
- fn from_uint_reduced(w: U256) -> Self {
+ fn reduce(... | 4 | 12 | 47 |
ff2bdf701397025bc1aca603e6f2fc4cb2935475 | Tony Arcieri | 2023-01-27T19:19:23 | elliptic-curve: bump `crypto-bigint` to v0.5.0-pre.2 (#1224) | diff --git a/elliptic-curve/Cargo.toml b/elliptic-curve/Cargo.toml
index f1f51d4..39fc377 100644
--- a/elliptic-curve/Cargo.toml
+++ b/elliptic-curve/Cargo.toml
@@ -17,7 +17,7 @@ rust-version = "1.61"
[dependencies]
base16ct = "0.1.1"
-crypto-bigint = { version = "=0.5.0-pre.1", default-features = false, features =... | 1 | 1 | 1 |
942902f0eb458ea653e5c2ddaa6eff1babea4e65 | Anton Lazarev | 2023-01-27T18:54:59 | add support for arrayvec in aead (#1219) | diff --git a/Cargo.lock b/Cargo.lock
index 955b65f..039fa02 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -6,6 +6,7 @@ version = 3
name = "aead"
version = "0.5.1"
dependencies = [
+ "arrayvec",
"blobby",
"bytes",
"crypto-common 0.1.6",
@@ -48,6 +49,12 @@ dependencies = [
"subtle",
]
+[[package]]
+name = "ar... | 3 | 23 | 0 |
f6484cf96c51d016105113c76d105dced5b69909 | Tony Arcieri | 2023-01-27T18:18:14 | elliptic-curve: fewer toplevel re-exports (#1223)
Gets rid of re-exports at the toplevel for modules that are newly `pub`
to avoid polluting the namespace.
Only the `AffinePoint`, `ProjectivePoint`, and `Scalar` re-exports are
retained. | diff --git a/elliptic-curve/src/arithmetic.rs b/elliptic-curve/src/arithmetic.rs
index 874321b..f09e8d7 100644
--- a/elliptic-curve/src/arithmetic.rs
+++ b/elliptic-curve/src/arithmetic.rs
@@ -2,8 +2,10 @@
use crate::{
ops::{LinearCombination, MulByGenerator, ShrAssign},
+ point::{AffineXCoordinate, AffineYI... | 7 | 15 | 16 |
581ab7c09e48e5624f8ca7e7f9c52b6286d30cce | Tony Arcieri | 2023-01-27T18:09:05 | elliptic-curve: replace `Shr1` with `ShrAssign` (#1222)
Eliminates a bespoke point solution trait with a standard core trait.
Since `C::Uint` already bounds on `ShrAssign<usize>` this should be
fairly trivial to support, even in generic code. | diff --git a/elliptic-curve/src/arithmetic.rs b/elliptic-curve/src/arithmetic.rs
index 8153fb0..874321b 100644
--- a/elliptic-curve/src/arithmetic.rs
+++ b/elliptic-curve/src/arithmetic.rs
@@ -1,7 +1,7 @@
//! Elliptic curve arithmetic traits.
use crate::{
- ops::{LinearCombination, MulByGenerator, Shr1},
+ op... | 6 | 18 | 24 |
5ba8c558947d5ac73c0a0fd02ce00aabe4a03288 | Tony Arcieri | 2023-01-27T17:55:32 | elliptic-curve: interpolate variables in format strings (#1221)
Uses the newly added support for interpolating variables in format
strings instead of passing them as arguments. | diff --git a/elliptic-curve/src/jwk.rs b/elliptic-curve/src/jwk.rs
index 0c13d3e..e0233cc 100644
--- a/elliptic-curve/src/jwk.rs
+++ b/elliptic-curve/src/jwk.rs
@@ -440,7 +440,7 @@ impl<'de> Deserialize<'de> for JwkEcKey {
.ok_or_else(|| de::Error::invalid_length(0, &DE_ERROR_MSG))?;
... | 3 | 4 | 4 |
462d35f5c2677e6fba540fa2e4d7bf2c01291ca5 | Tony Arcieri | 2023-01-27T17:47:11 | elliptic-curve: refactor field element decoding/encoding (#1220)
Previously `FieldBytes` was defined in terms of `C::Uint::ByteSize`,
which lead to it being improperly sized for curves with unusual modulus
sizes like P-224 and P-521 (which aren't multiples of 64).
This commit adds an associated `C::FieldBytesSize... | diff --git a/elliptic-curve/src/dev.rs b/elliptic-curve/src/dev.rs
index ded3207..9971b89 100644
--- a/elliptic-curve/src/dev.rs
+++ b/elliptic-curve/src/dev.rs
@@ -6,6 +6,7 @@
use crate::{
bigint::{Limb, U256},
error::{Error, Result},
+ generic_array::typenum::U32,
ops::{LinearCombination, MulByGene... | 14 | 191 | 155 |
2307a33368032c4834540f0de6aecd6e154b1fff | Tony Arcieri | 2023-01-27T02:41:53 | elliptic-curve: add `point::Double` (#1218)
This is useful for supporting multiple potential `Double`
implementations in generic code.
See RustCrypto/elliptic-curves#728 for an example. | diff --git a/elliptic-curve/src/point.rs b/elliptic-curve/src/point.rs
index bce130c..0584e2e 100644
--- a/elliptic-curve/src/point.rs
+++ b/elliptic-curve/src/point.rs
@@ -24,6 +24,12 @@ pub trait AffineYIsOdd {
fn y_is_odd(&self) -> Choice;
}
+/// Double a point (i.e. add it to itself)
+pub trait Double {
+ ... | 1 | 6 | 0 |
5916a017b616a51f1cc321df3b1ab0566186630c | daxpedda | 2023-01-26T20:46:42 | elliptic-curve: expand `NonIdentity` usage (#1217) | diff --git a/elliptic-curve/src/lib.rs b/elliptic-curve/src/lib.rs
index 1c55378..d133659 100644
--- a/elliptic-curve/src/lib.rs
+++ b/elliptic-curve/src/lib.rs
@@ -69,6 +69,7 @@ extern crate alloc;
extern crate std;
pub mod ops;
+pub mod point;
pub mod scalar;
#[cfg(feature = "dev")]
@@ -83,7 +84,6 @@ pub mod ... | 3 | 65 | 5 |
2329564ce0cdaa2743985e44ecf6fab4a8719654 | Tony Arcieri | 2023-01-15T19:35:33 | async-signature: fix `signature` version requirement (#1213)
It uses the `digest` feature, which means version updates need to be
coordinates around minor versions. | diff --git a/signature/async/Cargo.toml b/signature/async/Cargo.toml
index 227fd43..178e57e 100644
--- a/signature/async/Cargo.toml
+++ b/signature/async/Cargo.toml
@@ -14,7 +14,7 @@ rust-version = "1.56"
[dependencies]
async-trait = "0.1.9"
-signature = { version = "2", path = ".." }
+signature = { version = "2.0... | 1 | 1 | 1 |
ca920c61de237c53edb1140db452708b9e77b196 | Tony Arcieri | 2023-01-15T02:13:06 | elliptic-curve: add `BlindedScalar` (#1208)
Adds a scalar type with random blinding.
It implements `Invert` using Stein's algorithm which runs in variable
time, but masks the value first with multiplication.
This is useful for embedded devices where it can save the full cost of
an inversion.
https://link.sp... | diff --git a/elliptic-curve/src/arithmetic.rs b/elliptic-curve/src/arithmetic.rs
index 8113f57..8153fb0 100644
--- a/elliptic-curve/src/arithmetic.rs
+++ b/elliptic-curve/src/arithmetic.rs
@@ -61,7 +61,8 @@ pub trait CurveArithmetic: Curve {
/// - [`Default`]
/// - [`Send`]
/// - [`Sync`]
- type Scala... | 6 | 89 | 10 |
c394a0209d1dec1394bf5b1fe01afcd505b84266 | Tony Arcieri | 2023-01-14T21:43:41 | elliptic-curve: add `NonZeroScalar::invert_vartime` (#1207)
Adds support for variable-time inversions of `NonZeroScalar`,
which allows the inversion to be infallible.
An example use case is ECDSA verification, where the `s` component of
the signature needs to be inverted. | diff --git a/elliptic-curve/src/arithmetic.rs b/elliptic-curve/src/arithmetic.rs
index fdaf19b..8113f57 100644
--- a/elliptic-curve/src/arithmetic.rs
+++ b/elliptic-curve/src/arithmetic.rs
@@ -1,7 +1,7 @@
//! Elliptic curve arithmetic traits.
use crate::{
- ops::{LinearCombination, MulByGenerator},
+ ops::{Li... | 8 | 55 | 20 |
322377a5975434052805fad68ef6b687fe1b4f3e | Tony Arcieri | 2023-01-14T19:50:42 | elliptic-curve: use `CryptoRngCore` trait (#1206)
Marker trait for `CryptoRng + RngCore`; added in `rand_core` v0.6.4 | diff --git a/elliptic-curve/Cargo.toml b/elliptic-curve/Cargo.toml
index a9e120a..f1f51d4 100644
--- a/elliptic-curve/Cargo.toml
+++ b/elliptic-curve/Cargo.toml
@@ -19,7 +19,7 @@ rust-version = "1.61"
base16ct = "0.1.1"
crypto-bigint = { version = "=0.5.0-pre.1", default-features = false, features = ["rand_core", "ge... | 5 | 9 | 12 |
e835a1c67f8c00d6e88e4a462c6e87388064a218 | Tony Arcieri | 2023-01-14T18:34:03 | elliptic-curve: improve `SecretKey` impl for `Debug` (#1205)
Addresses a TODO | diff --git a/elliptic-curve/src/secret_key.rs b/elliptic-curve/src/secret_key.rs
index 73bf8e2..096a8a3 100644
--- a/elliptic-curve/src/secret_key.rs
+++ b/elliptic-curve/src/secret_key.rs
@@ -305,8 +305,8 @@ where
C: Curve,
{
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
- // TODO(tarcie... | 1 | 2 | 2 |
a238514aad886f037b8f933c27077abc6c338f3d | Tony Arcieri | 2023-01-14T18:24:38 | elliptic-curve: mandate `scalar::FromUintUnchecked` (#1204)
Bounds `CurveArithmetic::Scalar` on this trait and uses it to simplify
conversions to/from `ScalarPrimitive`.
Also adds bounds to ensure `ScalarPrimitive` conversions are
bidirectional. | diff --git a/elliptic-curve/src/arithmetic.rs b/elliptic-curve/src/arithmetic.rs
index 70c86b4..fdaf19b 100644
--- a/elliptic-curve/src/arithmetic.rs
+++ b/elliptic-curve/src/arithmetic.rs
@@ -2,6 +2,7 @@
use crate::{
ops::{LinearCombination, MulByGenerator},
+ scalar::FromUintUnchecked,
AffineXCoordina... | 4 | 57 | 26 |
6c519b02472a1bbfba40d9cd1b55ebd96c10b432 | Tony Arcieri | 2023-01-14T18:06:27 | elliptic-curve: rename `ScalarCore` to `ScalarPrimitive` (#1203)
This is a slightly more descriptive name: `ScalarPrimitive` is a scalar
type with primitive functionality. | diff --git a/elliptic-curve/src/arithmetic.rs b/elliptic-curve/src/arithmetic.rs
index 84cc925..70c86b4 100644
--- a/elliptic-curve/src/arithmetic.rs
+++ b/elliptic-curve/src/arithmetic.rs
@@ -2,7 +2,7 @@
use crate::{
ops::{LinearCombination, MulByGenerator},
- AffineXCoordinate, AffineYIsOdd, Curve, FieldBy... | 7 | 88 | 87 |
adb5baa9a8e7f323a994a65d8671b33f2db7b6d1 | Tony Arcieri | 2023-01-14T17:57:23 | elliptic-curve: rename `SecretKey::to_sec1_pem` (#1202)
Was formerly `SecretKey::to_pem` which is ambiguous as to what PEM
serialization is used. PKCS#8 is also possible (and preferred). | diff --git a/elliptic-curve/src/secret_key.rs b/elliptic-curve/src/secret_key.rs
index 5a90a16..1718985 100644
--- a/elliptic-curve/src/secret_key.rs
+++ b/elliptic-curve/src/secret_key.rs
@@ -235,7 +235,7 @@ where
///
/// Pass `Default::default()` to use the OS's native line endings.
#[cfg(feature = "pe... | 1 | 1 | 1 |
098b5295ffd8544ed678c733e326664179cbf408 | Tony Arcieri | 2023-01-14T17:37:29 | elliptic-curve: add generic implemenation of Stein's algorithm (#1200)
Extracted from this implementation in the `p256` crate:
https://github.com/RustCrypto/elliptic-curves/blob/1a03b8a/p256/src/arithmetic/scalar.rs#L145-L194 | diff --git a/elliptic-curve/src/lib.rs b/elliptic-curve/src/lib.rs
index c33ebd4..cbf8b1e 100644
--- a/elliptic-curve/src/lib.rs
+++ b/elliptic-curve/src/lib.rs
@@ -69,6 +69,7 @@ extern crate alloc;
extern crate std;
pub mod ops;
+pub mod scalar;
#[cfg(feature = "dev")]
pub mod dev;
@@ -83,7 +84,6 @@ pub mod we... | 4 | 93 | 8 |
ca760f11f267b2cfe4b6baf4f9b394890c56b1d0 | Tony Arcieri | 2023-01-14T16:44:49 | elliptic-curve: add `AffineYIsOdd` trait (#1199)
This trait is useful for generic point compression implementations which
are also useful for a generic implementation of recoverable ECDSA
signing, which presently isn't possible due to an inability to query
this information | diff --git a/elliptic-curve/src/arithmetic.rs b/elliptic-curve/src/arithmetic.rs
index 4bf8925..84cc925 100644
--- a/elliptic-curve/src/arithmetic.rs
+++ b/elliptic-curve/src/arithmetic.rs
@@ -2,7 +2,7 @@
use crate::{
ops::{LinearCombination, MulByGenerator},
- AffineXCoordinate, Curve, FieldBytes, IsHigh, P... | 4 | 26 | 7 |
8101e04efe98433f312f76828d8dbe5526663cb5 | Tony Arcieri | 2023-01-14T16:23:10 | elliptic-curve: add `MulByGenerator` trait (#1198)
Adds a trait for performing scalar multiplication by the generator
point, which may use optimizations (e.g. precomputed tables) when
available | diff --git a/elliptic-curve/src/arithmetic.rs b/elliptic-curve/src/arithmetic.rs
index 1d8d76c..4bf8925 100644
--- a/elliptic-curve/src/arithmetic.rs
+++ b/elliptic-curve/src/arithmetic.rs
@@ -1,7 +1,8 @@
//! Elliptic curve arithmetic traits.
use crate::{
- ops::LinearCombination, AffineXCoordinate, Curve, Field... | 3 | 19 | 2 |
f69babe25a750db5d6f1792b287d6a6e850c1361 | Tony Arcieri | 2023-01-14T03:32:30 | elliptic-curve: lint improvements (#1197)
Adopts the following lints:
#![warn(
clippy::mod_module_files,
clippy::unwrap_used,
missing_docs,
rust_2018_idioms,
unused_lifetimes,
unused_qualifications
)] | diff --git a/elliptic-curve/src/ecdh.rs b/elliptic-curve/src/ecdh.rs
index 2d0d3d9..cc67b9a 100644
--- a/elliptic-curve/src/ecdh.rs
+++ b/elliptic-curve/src/ecdh.rs
@@ -118,7 +118,7 @@ where
/// Compute a Diffie-Hellman shared secret from an ephemeral secret and the
/// public key of the other participant in ... | 5 | 13 | 6 |
df3f85b4a4fcea7150b4f44662404771fcca4d94 | Tony Arcieri | 2023-01-14T03:24:01 | elliptic-curve: consolidate `CurveArithmetic` trait (#1196)
Consolidates the following former three traits into a single trait:
- `AffineArithmetic`
- `ProjectiveArithmetic`
- `ScalarArithmetic`
It doesn't make sense to impl one of these traits without impl'ing them
all, so this commit combines them into a si... | diff --git a/elliptic-curve/src/arithmetic.rs b/elliptic-curve/src/arithmetic.rs
index 7dd2f77..1d8d76c 100644
--- a/elliptic-curve/src/arithmetic.rs
+++ b/elliptic-curve/src/arithmetic.rs
@@ -7,8 +7,8 @@ use core::fmt::Debug;
use subtle::{ConditionallySelectable, ConstantTimeEq};
use zeroize::DefaultIsZeroes;
-///... | 13 | 106 | 123 |
8c79d51a8b6373d5835d5a0c775c1b664d214119 | Tony Arcieri | 2023-01-14T02:16:55 | elliptic-curve: remove direct `der` crate dependency (#1195)
This removes a hard dependency on the `der` crate.
With weak feature activation it now becomes possible to pull in the
`der` crate transitively via the `pkcs8` and `sec1` crates. | diff --git a/elliptic-curve/Cargo.toml b/elliptic-curve/Cargo.toml
index 46e4cc2..a9e120a 100644
--- a/elliptic-curve/Cargo.toml
+++ b/elliptic-curve/Cargo.toml
@@ -18,7 +18,6 @@ rust-version = "1.61"
[dependencies]
base16ct = "0.1.1"
crypto-bigint = { version = "=0.5.0-pre.1", default-features = false, features = [... | 5 | 40 | 22 |
178c7bc8e30302c5a1c2d893c051790da8b64e60 | Tony Arcieri | 2023-01-14T01:37:24 | elliptic-curve: use `doc_auto_cfg` (#1193)
Replaces manual `cfg(doc(...))` annotations with `doc_auto_cfg`, which
populates them automatically | diff --git a/elliptic-curve/src/arithmetic.rs b/elliptic-curve/src/arithmetic.rs
index 6da4a7c..7dd2f77 100644
--- a/elliptic-curve/src/arithmetic.rs
+++ b/elliptic-curve/src/arithmetic.rs
@@ -8,13 +8,11 @@ use subtle::{ConditionallySelectable, ConstantTimeEq};
use zeroize::DefaultIsZeroes;
/// Elliptic curve with ... | 13 | 1 | 100 |
43367132dc4b7a340765b1d5c4ca0d20bf7288a1 | Tony Arcieri | 2023-01-14T00:38:55 | elliptic-curve: use weak feature activation (#1192)
Activates the `alloc` and `std` features in more dependencies, but only
if they're explicitly linked otherwise | diff --git a/elliptic-curve/Cargo.toml b/elliptic-curve/Cargo.toml
index d5f0281..6f3d0cf 100644
--- a/elliptic-curve/Cargo.toml
+++ b/elliptic-curve/Cargo.toml
@@ -44,7 +44,9 @@ sha3 = "0.10"
[features]
default = ["arithmetic"]
-alloc = ["base16ct/alloc", "der/alloc", "sec1/alloc", "zeroize/alloc"] # todo: use wea... | 1 | 3 | 2 |
675c27c1cbf7644e44fabc0534a9a8c7c8af66b4 | Tony Arcieri | 2023-01-14T00:26:32 | elliptic-curve: rename `Curve::UInt` => `Curve::Uint` (#1191)
From https://rust-lang.github.io/api-guidelines/naming.html
> In UpperCamelCase, acronyms and contractions of compound words count
> as one word: use Uuid rather than UUID, Usize rather than USize or
> Stdin rather than StdIn.
Based on the `Usize` e... | diff --git a/elliptic-curve/src/arithmetic.rs b/elliptic-curve/src/arithmetic.rs
index fa445f1..6da4a7c 100644
--- a/elliptic-curve/src/arithmetic.rs
+++ b/elliptic-curve/src/arithmetic.rs
@@ -80,7 +80,7 @@ pub trait ScalarArithmetic: Curve {
type Scalar: DefaultIsZeroes
+ From<ScalarCore<Self>>
... | 7 | 37 | 37 |
e1c4d9d22eef5c94b65ca20541f2686d692b0eed | daxpedda | 2023-01-09T16:37:40 | password-hash: add `Error::OutputSize` (#1026) | diff --git a/password-hash/src/errors.rs b/password-hash/src/errors.rs
index 48ff66b..f4719af 100644
--- a/password-hash/src/errors.rs
+++ b/password-hash/src/errors.rs
@@ -2,6 +2,7 @@
pub use base64ct::Error as B64Error;
+use core::cmp::Ordering;
use core::fmt;
/// Result type.
@@ -20,11 +21,21 @@ pub enum Er... | 3 | 69 | 27 |
da3fb4cc69e978867dbdc5b578c6ca1565a33cdb | Tony Arcieri | 2023-01-09T02:13:20 | password-hash v0.5.0-pre.0 (#1188) | diff --git a/Cargo.lock b/Cargo.lock
index 8c9931b..69be79f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -777,7 +777,7 @@ dependencies = [
[[package]]
name = "password-hash"
-version = "0.5.0-pre"
+version = "0.5.0-pre.0"
dependencies = [
"base64ct",
"rand_core 0.6.4",
diff --git a/crypto/Cargo.toml b/crypto/Ca... | 3 | 3 | 3 |
18871f760e54b227549279d855de657e928cd08d | Tony Arcieri | 2023-01-09T01:57:37 | password-hash: use `Salt` type with `PasswordHasher` (#1187)
Previously `PasswordHash::hash_password` and `PasswordHash::generate`
took `&str` for `Salt`, however this is a bit of a confusing API because
the first thing it does is attempt to convert to a `Salt` which upholds
several invariants including "B64" encod... | diff --git a/Cargo.lock b/Cargo.lock
index 0a934ab..8c9931b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -265,7 +265,7 @@ dependencies = [
"cipher 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)",
"crypto-common 0.1.6",
"digest 0.10.6",
- "elliptic-curve 0.12.3",
+ "elliptic-curve 0.13.0-pre",
"pas... | 6 | 14 | 19 |
cc8641c664ad7514a2384c3d1776531291f07797 | Tony Arcieri | 2023-01-09T00:02:03 | elliptic-curve: move `NonIdentity` under `point` (#1186)
Reflects that the type represents a non-identity curve point | diff --git a/elliptic-curve/src/lib.rs b/elliptic-curve/src/lib.rs
index ffd30b6..2f94812 100644
--- a/elliptic-curve/src/lib.rs
+++ b/elliptic-curve/src/lib.rs
@@ -80,10 +80,6 @@ pub mod ecdh;
#[cfg_attr(docsrs, doc(cfg(feature = "hash2curve")))]
pub mod hash2curve;
-#[cfg(feature = "arithmetic")]
-#[cfg_attr(docs... | 4 | 14 | 14 |
1d04c33c820ecc58bd7f13f898038515e3e323cc | Tony Arcieri | 2023-01-07T22:12:48 | signature v2.0.0-rc.1 (#1185) | diff --git a/Cargo.lock b/Cargo.lock
index 36d7f1f..0a934ab 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -53,7 +53,7 @@ name = "async-signature"
version = "0.3.0-pre"
dependencies = [
"async-trait",
- "signature 2.0.0-rc.0",
+ "signature 2.0.0-rc.1",
]
[[package]]
@@ -267,7 +267,7 @@ dependencies = [
"digest 0... | 4 | 6 | 6 |
5671cb69238028604b3f447da1ffa3f9530d065f | Tony Arcieri | 2023-01-06T21:29:01 | Revert "signature: use `R: CryptoRngCore + ?Sized` (#1167)" (#1183)
This reverts commit b12237e540df00cdd2949cf8f3d996fb1d766a1c.
As further discussed in #1148, passing a trait object to
`&mut impl CryptoRngCore` is possible by mutably borrowing it, and
upstream changes to `CryptoRng` should eliminate the require... | diff --git a/signature/src/hazmat.rs b/signature/src/hazmat.rs
index c7b188e..3233033 100644
--- a/signature/src/hazmat.rs
+++ b/signature/src/hazmat.rs
@@ -48,9 +48,9 @@ pub trait RandomizedPrehashSigner<S> {
///
/// Allowed lengths are algorithm-dependent and up to a particular
/// implementation to de... | 2 | 7 | 14 |
4fca56364dcc74c8f1b21178592d38209f167381 | Tony Arcieri | 2023-01-04T20:04:40 | signature v2.0.0-rc.0 (#1181) | diff --git a/Cargo.lock b/Cargo.lock
index 3a3838c..36d7f1f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -53,7 +53,7 @@ name = "async-signature"
version = "0.3.0-pre"
dependencies = [
"async-trait",
- "signature 2.0.0-pre.3",
+ "signature 2.0.0-rc.0",
]
[[package]]
@@ -267,7 +267,7 @@ dependencies = [
"digest ... | 4 | 6 | 6 |
1f99a0a9d3c0dac1d2d91b1c8241011d847fbf65 | daxpedda | 2023-01-03T15:54:52 | Implement `NonIdentity` (#1176) | diff --git a/elliptic-curve/src/dev.rs b/elliptic-curve/src/dev.rs
index f7205e5..405dbed 100644
--- a/elliptic-curve/src/dev.rs
+++ b/elliptic-curve/src/dev.rs
@@ -9,7 +9,7 @@ use crate::{
ops::{LinearCombination, Reduce},
pkcs8,
rand_core::RngCore,
- sec1::{FromEncodedPoint, ToEncodedPoint},
+ se... | 4 | 300 | 8 |
b0f2c1f49b12eb94201738664c6ea9d09efbcc0d | Tony Arcieri | 2022-12-30T18:38:18 | signature: remove `Error` bound on `SignatureEncoding` (#1180)
Previously it mandated the use of `signature::Error` as the associated
`Error` type for `TryFrom<&'a [u8]>`.
This isn't strictly necessary though. Downstream impls should be able to
use their own error type.
It's also inconsistent with the `TryInto... | diff --git a/signature/src/encoding.rs b/signature/src/encoding.rs
index 1d82c82..1f6010f 100644
--- a/signature/src/encoding.rs
+++ b/signature/src/encoding.rs
@@ -1,13 +1,11 @@
//! Encoding support.
-use crate::Error;
-
#[cfg(feature = "alloc")]
use alloc::vec::Vec;
/// Support for decoding/encoding signature... | 1 | 1 | 3 |
59490b50e88c252d179087072c1559303f8c5872 | Corey Shupe | 2022-12-29T20:39:15 | cipher: remove unnecessary block initialization in AsyncStreamCipher (#1179) | diff --git a/cipher/src/stream.rs b/cipher/src/stream.rs
index 735f2c8..3ac454e 100644
--- a/cipher/src/stream.rs
+++ b/cipher/src/stream.rs
@@ -17,9 +17,9 @@ pub trait AsyncStreamCipher: Sized {
{
let (blocks, mut tail) = data.into_chunks();
self.encrypt_blocks_inout_mut(blocks);
- let mu... | 1 | 2 | 2 |
b1af9a9baecb1648401f8fcb09cca41d259a6655 | daxpedda | 2022-12-26T21:10:53 | Implement serde for `NonZeroScalar` (#1178) | diff --git a/elliptic-curve/src/scalar/nonzero.rs b/elliptic-curve/src/scalar/nonzero.rs
index 5f901d5..547bc1f 100644
--- a/elliptic-curve/src/scalar/nonzero.rs
+++ b/elliptic-curve/src/scalar/nonzero.rs
@@ -4,8 +4,7 @@ use crate::{
bigint::Encoding as _,
ops::{Invert, Reduce, ReduceNonZero},
rand_core:... | 1 | 35 | 4 |
dff18e2311578ae056b8c1901f55146c81413dcf | Tony Arcieri | 2022-12-10T23:35:11 | signature v2.0.0-pre.3 (#1169) | diff --git a/Cargo.lock b/Cargo.lock
index 0363110..2950a36 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -53,7 +53,7 @@ name = "async-signature"
version = "0.3.0-pre"
dependencies = [
"async-trait",
- "signature 2.0.0-pre.2",
+ "signature 2.0.0-pre.3",
]
[[package]]
@@ -257,7 +257,7 @@ dependencies = [
"digest... | 4 | 6 | 6 |
44b7b5014d92392ecbd915e87019e73dd64c35b4 | Tony Arcieri | 2022-12-10T23:21:32 | signature: fallible encoding support (#1168)
This is helpful for "no panic" profiles.
The `Error` type is deliberately left opaque, which means that
`From`/`Into` still work via blanket `TryFrom`/`TryInto` impls with
`Error = Infallible`.
The `SignatureEncoding::to_bytes` method still provides infallible
seri... | diff --git a/signature/src/encoding.rs b/signature/src/encoding.rs
index fafa355..1d82c82 100644
--- a/signature/src/encoding.rs
+++ b/signature/src/encoding.rs
@@ -7,14 +7,17 @@ use alloc::vec::Vec;
/// Support for decoding/encoding signatures as bytes.
pub trait SignatureEncoding:
- Clone + Sized + for<'a> Try... | 1 | 5 | 2 |
b12237e540df00cdd2949cf8f3d996fb1d766a1c | Tony Arcieri | 2022-12-10T23:07:29 | signature: use `R: CryptoRngCore + ?Sized` for RNG params (#1167)
As discussed in #1148, adopts a generic paramater `R` for RNGs, and also
adds a `?Sized` bound which permits the use of trait objects. | diff --git a/signature/src/hazmat.rs b/signature/src/hazmat.rs
index 3233033..c7b188e 100644
--- a/signature/src/hazmat.rs
+++ b/signature/src/hazmat.rs
@@ -48,9 +48,9 @@ pub trait RandomizedPrehashSigner<S> {
///
/// Allowed lengths are algorithm-dependent and up to a particular
/// implementation to de... | 2 | 14 | 7 |
28ec035531ed028ba010a652980f78007c8f49ff | Tony Arcieri | 2022-12-09T04:10:22 | elliptic-curve: bump `ff` and `group` to v0.13 (#1166) | diff --git a/Cargo.lock b/Cargo.lock
index f6cfb26..0363110 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -440,9 +440,9 @@ dependencies = [
"crypto-bigint 0.4.9",
"der 0.6.1",
"digest 0.10.6",
- "ff 0.12.1",
+ "ff 0.13.0",
"generic-array",
- "group 0.12.1",
+ "group 0.13.0",
"hex-literal",
"hkdf 0.12.3",
"p... | 6 | 69 | 32 |
44575866225e1d1634e1eba6f31411588ecbfe39 | Tony Arcieri | 2022-12-09T03:52:24 | elliptic-curve: remove `impl_field_element!` macro (#1165)
Removes macro which was originally added in #1021
Going forward these macros are located in the `primeorder` crate:
https://github.com/RustCrypto/elliptic-curves/blob/master/primeorder/src/field.rs | diff --git a/elliptic-curve/src/dev.rs b/elliptic-curve/src/dev.rs
index be0c156..8f1f047 100644
--- a/elliptic-curve/src/dev.rs
+++ b/elliptic-curve/src/dev.rs
@@ -707,78 +707,6 @@ impl Neg for ProjectivePoint {
}
}
-/// Constant representing the base field modulus
-/// p = 2^{224}(2^{32} − 1) + 2^{192} + 2^{9... | 3 | 0 | 515 |
bd7a8ac54d951c7dd3a3ff26fc228547a6ee1d4c | Tony Arcieri | 2022-12-09T03:32:36 | Bump `elliptic-curve` to v0.13.0-pre (#1164)
Breaking changes were introduced in #1024, so this bumps the crate
version to v0.13.0-pre to note that happened.
Note that there is no crate release associated with this version. When a
crate release occurs, it will be bumped to `-pre.0`. | diff --git a/Cargo.lock b/Cargo.lock
index 010c803..f6cfb26 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -414,45 +414,45 @@ dependencies = [
[[package]]
name = "elliptic-curve"
version = "0.12.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e7bb888ab5300a19b8e5bceef25ac745ad065f3c9f7... | 3 | 14 | 14 |
d28eb2408070b247ebc0fd243a39dedf52b594d4 | daxpedda | 2022-12-06T22:21:51 | Allow bigger `c1` constant in `OsswuMapParams` (#1024) | diff --git a/elliptic-curve/src/hash2curve/osswu.rs b/elliptic-curve/src/hash2curve/osswu.rs
index f803863..8b646f8 100644
--- a/elliptic-curve/src/hash2curve/osswu.rs
+++ b/elliptic-curve/src/hash2curve/osswu.rs
@@ -11,7 +11,7 @@ where
F: Field,
{
/// The first constant term
- pub c1: [u64; 4],
+ pub ... | 1 | 1 | 1 |
151d7d57e8bec453e0bb5bfd291a82cb45818455 | Артём Павлов [Artyom Pavlov] | 2022-12-06T05:57:00 | Update Cargo.lock | diff --git a/Cargo.lock b/Cargo.lock
index dc206f6..8ed9118 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -48,15 +48,6 @@ dependencies = [
"subtle",
]
-[[package]]
-name = "aho-corasick"
-version = "0.7.19"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b4f55bd91a0978cbfd91c457a164bab... | 1 | 24 | 198 |
cb756ec2caef13319410355b8aec3371e8d68489 | Tony Arcieri | 2022-11-04T16:54:43 | signature v2.0.0-pre.2 (#1152) | diff --git a/Cargo.lock b/Cargo.lock
index 94ffb37..e1a3415 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -62,7 +62,7 @@ name = "async-signature"
version = "0.3.0-pre"
dependencies = [
"async-trait",
- "signature 2.0.0-pre.1",
+ "signature 2.0.0-pre.2",
]
[[package]]
@@ -311,7 +311,7 @@ dependencies = [
"digest... | 4 | 6 | 6 |
b49cc053813446de06825fe905d456d51d1f09fb | Tony Arcieri | 2022-11-04T16:25:34 | signature: update remaining use of `CryptoRng + RngCore` (#1151)
In #1147, other usages of a CSRNG were changed to use
`&mut impl CryptoRngCore`. However, `RandomizedPrehashSigner` was not
updated accordingly.
This commit updates it as well. | diff --git a/signature/src/hazmat.rs b/signature/src/hazmat.rs
index 1b2e702..3233033 100644
--- a/signature/src/hazmat.rs
+++ b/signature/src/hazmat.rs
@@ -13,7 +13,7 @@
use crate::Error;
#[cfg(feature = "rand-preview")]
-use crate::rand_core::{CryptoRng, RngCore};
+use crate::rand_core::CryptoRngCore;
/// Sign... | 1 | 2 | 2 |
3d23e551722fe78de677bb54ffe95f508567db6c | Tony Arcieri | 2022-11-03T21:18:05 | signature v2.0.0-pre.1 (#1150) | diff --git a/Cargo.lock b/Cargo.lock
index 55b78ce..94ffb37 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -62,7 +62,7 @@ name = "async-signature"
version = "0.3.0-pre"
dependencies = [
"async-trait",
- "signature 2.0.0-pre.0",
+ "signature 2.0.0-pre.1",
]
[[package]]
@@ -311,7 +311,7 @@ dependencies = [
"digest... | 4 | 6 | 6 |
2fb70acf3bbae7b39cf446eda50a973335d55834 | Tony Arcieri | 2022-11-02T13:45:39 | signature: simplify encoding trait (#1149)
Removes the `from_bytes` and `to_boxed_slice` methods, as `TryFrom` and
`to_vec().into_boxed_slice()` provide equivalent functionality. | diff --git a/signature/src/encoding.rs b/signature/src/encoding.rs
index 02bfbe4..fafa355 100644
--- a/signature/src/encoding.rs
+++ b/signature/src/encoding.rs
@@ -1,9 +1,9 @@
//! Encoding support.
-use crate::{Error, Result};
+use crate::Error;
#[cfg(feature = "alloc")]
-use alloc::{boxed::Box, vec::Vec};
+use ... | 1 | 2 | 14 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.