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
a01885d8d568c3711b9e214bb54d63e56455dda9
Tony Arcieri
2021-12-03T20:22:15
elliptic-curve: `non_zero` => `nonzero` (#828) In #827, a `ReduceNonZero` trait was added whose method name uses an underscored `*_non_zero`. However, there's already one bit of precedent in the public API: - `SecretKey::to_nonzero_scalar` Since this is already a stable API and providing precedent, for cons...
diff --git a/elliptic-curve/src/lib.rs b/elliptic-curve/src/lib.rs index 16dab13..2da9aeb 100644 --- a/elliptic-curve/src/lib.rs +++ b/elliptic-curve/src/lib.rs @@ -98,7 +98,7 @@ pub use { AffineArithmetic, PrimeCurveArithmetic, ProjectiveArithmetic, ScalarArithmetic, }, public_key::Publi...
4
6
6
f6ac4b06f45e97014ece847a4ce91fda817543f1
Tony Arcieri
2021-12-03T19:53:51
elliptic-curve: add `ReduceNonZero` trait (#827) Adds a trait similar to `Reduce`, but where the output of the reduction is ensured to be non-zero. Also impls `Reduce` and `ReduceNonZero` for `NonZeroScalar`. This means that end users need only concern themselves with `Reduce` as they can use `NonZeroScalar::<C>...
diff --git a/elliptic-curve/src/ops.rs b/elliptic-curve/src/ops.rs index fb69b28..f4449a7 100644 --- a/elliptic-curve/src/ops.rs +++ b/elliptic-curve/src/ops.rs @@ -40,3 +40,13 @@ pub trait Reduce<UInt: Integer + ArrayEncoding>: Sized { Self::from_uint_reduced(UInt::from_le_byte_array(bytes)) } } + +/// ...
2
37
1
6701636a6f7ad1d62c507d31563862f5093f03fe
Tony Arcieri
2021-12-03T16:16:14
elliptic-curve: bump `pem-rfc7468` dependency to v0.3 (#825)
diff --git a/elliptic-curve/Cargo.lock b/elliptic-curve/Cargo.lock index 3e57f3e..7008f40 100644 --- a/elliptic-curve/Cargo.lock +++ b/elliptic-curve/Cargo.lock @@ -51,7 +51,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6919815d73839e7ad218de758883aae3a257ba6759ce7a9992501efbb53d705...
2
3
12
ba5ae8e49792e341913461fda512a46953c5cce8
Tony Arcieri
2021-11-21T18:19:09
elliptic-curve: add `NonZeroScalar::from_unit` (#822) Adds a `NonZeroScalar` constructor that accepts a `C::UInt` as a parameter, returning a `CtOption` if the `UInt` represents a valid non-zero element of the scalar field.
diff --git a/elliptic-curve/src/scalar/non_zero.rs b/elliptic-curve/src/scalar/non_zero.rs index 498e6ac..5e54f94 100644 --- a/elliptic-curve/src/scalar/non_zero.rs +++ b/elliptic-curve/src/scalar/non_zero.rs @@ -59,6 +59,11 @@ where pub fn from_repr(repr: FieldBytes<C>) -> CtOption<Self> { Scalar::<C>::f...
1
5
0
bd1f7122d668a866037886462c380bdc89b5f412
Tony Arcieri
2021-11-19T16:59:03
elliptic-curve: fix `doc(cfg(...))` attributes (#820)
diff --git a/elliptic-curve/src/public_key.rs b/elliptic-curve/src/public_key.rs index 4ff04aa..8875ec9 100644 --- a/elliptic-curve/src/public_key.rs +++ b/elliptic-curve/src/public_key.rs @@ -32,7 +32,7 @@ use { use alloc::string::{String, ToString}; #[cfg(all(feature = "pem", feature = "serde"))] -#[cfg_attr(docs...
1
3
3
7d813023da0ce6e418e4f7bf3b0dda9914a891cb
Tony Arcieri
2021-11-17T23:59:01
elliptic-curve: add `AffineXCoordinate` trait (#817) Protocols like ECDH and ECDSA rely on x-coordinate access. We've tried various ways of trying to keep affine coordinate access out of the public API, but it complicates generic implementations of these protocols. Most recently RustCrypto/signatures#395 attem...
diff --git a/elliptic-curve/src/arithmetic.rs b/elliptic-curve/src/arithmetic.rs index 40980f9..b69c1a4 100644 --- a/elliptic-curve/src/arithmetic.rs +++ b/elliptic-curve/src/arithmetic.rs @@ -1,6 +1,6 @@ //! Elliptic curve arithmetic traits. -use crate::{Curve, FieldBytes, IsHigh, PrimeCurve, ScalarCore}; +use crat...
5
44
22
f484ed6326282dc834451ae5a51cda4e60f275bf
Tony Arcieri
2021-11-17T21:22:56
elliptic-curve: impl `Neg` for `NonZeroScalar<C>` (#816)
diff --git a/elliptic-curve/src/scalar/non_zero.rs b/elliptic-curve/src/scalar/non_zero.rs index 8a17496..818f5d1 100644 --- a/elliptic-curve/src/scalar/non_zero.rs +++ b/elliptic-curve/src/scalar/non_zero.rs @@ -6,7 +6,7 @@ use crate::{ rand_core::{CryptoRng, RngCore}, Curve, Error, FieldBytes, IsHigh, Resul...
1
14
1
dc787822dbda6897d327917ed73cadec3f320c99
Tony Arcieri
2021-11-17T21:13:44
elliptic-curve: impl `IsHigh` for `NonZeroScalar<C>` (#815) Add support for determining if a given non-zero scalar is in the upper or lower half of the order.
diff --git a/crypto/Cargo.lock b/crypto/Cargo.lock index 8d0f1e2..262b494 100644 --- a/crypto/Cargo.lock +++ b/crypto/Cargo.lock @@ -57,9 +57,9 @@ dependencies = [ [[package]] name = "crypto-bigint" -version = "0.3.0" +version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "...
2
12
3
0b265023ae709a2cf482eebe65d6b4d53824c0e2
Tony Arcieri
2021-11-17T21:02:53
elliptic-curve: add `scalar::IsHigh` trait (#814) Adds a trait for determining if a given scalar is larger than the order divided by 2. This is useful for "normalization" use cases such as low-S normalized ECDSA signatures, where a scalar is conditionally negated if "high".
diff --git a/elliptic-curve/Cargo.lock b/elliptic-curve/Cargo.lock index 19e31bd..5ffaab4 100644 --- a/elliptic-curve/Cargo.lock +++ b/elliptic-curve/Cargo.lock @@ -34,9 +34,9 @@ checksum = "d355758f44afa81c21e66e1301d47cbffbbcde4b405cbe46b8b19f213abf9f60" [[package]] name = "crypto-bigint" -version = "0.3.0" +vers...
6
38
8
5c7394c420b6c536a5babf02f4d985650de49b34
Tony Arcieri
2021-11-17T18:11:50
elliptic-curve: include README.md in rustdoc + expand docs (#813) Uses the new `doc = include_str!("...")` attribute to include README.md in the rustdoc documentation. Additionally fills out the toplevel rustdoc with a bit more information about how the crate is intended to be used.
diff --git a/elliptic-curve/src/dev.rs b/elliptic-curve/src/dev.rs index dd44501..73642b9 100644 --- a/elliptic-curve/src/dev.rs +++ b/elliptic-curve/src/dev.rs @@ -1,5 +1,7 @@ -//! Development-related functionality: helpers and types for writing tests -//! against concrete implementations of the traits in this crate. ...
3
33
12
7309422341ec6cd46039a46b3809ed7f2e79cdb9
Tony Arcieri
2021-11-17T17:44:58
elliptic-curve: use `ScalarArithmetic` as `NonZeroScalar` bounds (#812) Previously they were `ProjectiveArithmetic`, ostensibly because the `ScalarArithmetic` trait didn't exist at the time.
diff --git a/elliptic-curve/src/scalar/non_zero.rs b/elliptic-curve/src/scalar/non_zero.rs index e93ce6d..c3edf4f 100644 --- a/elliptic-curve/src/scalar/non_zero.rs +++ b/elliptic-curve/src/scalar/non_zero.rs @@ -1,11 +1,10 @@ //! Non-zero scalar type. -// TODO(tarcieri): change bounds to `ScalarArithmetic` instead of...
1
17
18
31436a2eaf8bd3fb5292e11e9a0b1f93056a7817
Tony Arcieri
2021-11-17T16:13:13
Cargo.lock(s): update dependencies (#811) This is mainly to pick up the new releases of `pem-rfc7468` and `spki` which now have relaxed `base64ct` requirements: https://github.com/RustCrypto/formats/pull/239 This should correct the build failures seen on `master`: https://github.com/RustCrypto/traits/runs/42...
diff --git a/Cargo.lock b/Cargo.lock index e2867fd..fe92941 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,5 +1,7 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. +version = 3 + [[package]] name = "aead" version = "0.4.3" @@ -171,9 +173,9 @@ dependencies = [ [[packag...
3
53
26
3502b5b35966e690eaf504e8e60542d7b7a22eff
Tony Arcieri
2021-11-17T15:01:49
elliptic-curve: bump `spki` to v0.5 release (#810) This removes all of the git-based dependencies on `RustCrypto/formats`
diff --git a/elliptic-curve/Cargo.lock b/elliptic-curve/Cargo.lock index bf6763d..9528316 100644 --- a/elliptic-curve/Cargo.lock +++ b/elliptic-curve/Cargo.lock @@ -8,11 +8,6 @@ version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "392c772b012d685a640cdad68a5a21f4a45e696f85a2c...
2
22
26
0d6f582e941ce60d5876288664e3fccfc29cbe8d
Tony Arcieri
2021-11-16T17:42:44
elliptic-curve: use `sec1` crate for `pkcs8` support (#809) The `sec1` crate provides a blanket impl of traits like `DecodeEcPrivateKey` and `EncodeEcPrivateKey` for types which impl the `pkcs8` traits. This commit leverages them.
diff --git a/elliptic-curve/Cargo.lock b/elliptic-curve/Cargo.lock index 28523ff..bf6763d 100644 --- a/elliptic-curve/Cargo.lock +++ b/elliptic-curve/Cargo.lock @@ -11,7 +11,7 @@ checksum = "392c772b012d685a640cdad68a5a21f4a45e696f85a2c2c907aab2fe49a91e19" [[package]] name = "base64ct" version = "1.2.0" -source = "g...
8
55
32
bf2898676d41b690d07a4628f7708d625b44d7b4
Tony Arcieri
2021-11-15T20:33:11
elliptic-curve: bump `crypto-bigint` dependency to v0.3 (#807)
diff --git a/elliptic-curve/Cargo.lock b/elliptic-curve/Cargo.lock index b2188ad..28523ff 100644 --- a/elliptic-curve/Cargo.lock +++ b/elliptic-curve/Cargo.lock @@ -38,9 +38,9 @@ source = "git+https://github.com/RustCrypto/formats.git#edb2c6a29ba96594f69759cb [[package]] name = "crypto-bigint" -version = "0.3.0-pre...
2
3
3
03acdd168e01b0a38e41293ca82472c138ecdab3
Tony Arcieri
2021-11-14T21:34:47
elliptic-curve: add Encoding bound on Curve::UInt (#806) It was removed upstream to allow the `Integer` trait to be blanket impl'd instead of using a macro.
diff --git a/elliptic-curve/src/lib.rs b/elliptic-curve/src/lib.rs index f23cd79..063ddba 100644 --- a/elliptic-curve/src/lib.rs +++ b/elliptic-curve/src/lib.rs @@ -113,10 +113,11 @@ pub const ALGORITHM_OID: pkcs8::ObjectIdentifier = /// curves (e.g. [`SecretKey`]). pub trait Curve: 'static + Copy + Clone + Debug + D...
1
2
1
7fe7393bffa300b92da24b12f4eb4fe85e1dcff3
Tony Arcieri
2021-11-14T20:52:33
elliptic-curve: bump RustCrypto/formats crates (#805) Updates `elliptic-curve` to the latest version of `pkcs8`/`spki`
diff --git a/elliptic-curve/Cargo.lock b/elliptic-curve/Cargo.lock index 46999ef..b2188ad 100644 --- a/elliptic-curve/Cargo.lock +++ b/elliptic-curve/Cargo.lock @@ -4,14 +4,14 @@ version = 3 [[package]] name = "base64ct" -version = "1.1.1" +version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.i...
2
26
37
b5ed205f9775bd26ac44f345c8af06ab5ea9831a
Tony Arcieri
2021-11-14T20:18:53
password-hash: better `Debug`/`Display` impls for `SaltString` (#804) Adds impls of `Debug` and `Display` on `SaltString` similar to the ones on `Salt` (the reference type). Previously there was no `Display` impl at all. The `Debug` impl was previously derived, and therefore had confusing output due to the use...
diff --git a/password-hash/src/salt.rs b/password-hash/src/salt.rs index bf5bf81..cabd9c2 100644 --- a/password-hash/src/salt.rs +++ b/password-hash/src/salt.rs @@ -160,12 +160,12 @@ impl<'a> fmt::Display for Salt<'a> { impl<'a> fmt::Debug for Salt<'a> { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result ...
1
14
2
9ba39263847fa787983ca34867dfeb294dcc6072
Tony Arcieri
2021-11-14T19:27:11
elliptic-curve: bump `crypto-bigint` to v0.3.0-pre.1 (#803)
diff --git a/elliptic-curve/Cargo.lock b/elliptic-curve/Cargo.lock index 87a646c..46999ef 100644 --- a/elliptic-curve/Cargo.lock +++ b/elliptic-curve/Cargo.lock @@ -38,9 +38,9 @@ source = "git+https://github.com/RustCrypto/formats.git#4ec825666bcd552a87359674 [[package]] name = "crypto-bigint" -version = "0.2.11" +...
4
6
6
38ade29f6e22eb768fcaef56775412485e6bcc9f
Chris Palmer
2021-11-11T15:06:28
Return early if `Ident` is too long (#800) At this point, we (can) know whether `too_long` is true, so don't iterate over all the `bytes`. (Both invalid chars and excessive length result in the same kind of error.) I don't think I see a constant-time/timing-independence concern — if a malicious input is too long, sayi...
diff --git a/password-hash/src/ident.rs b/password-hash/src/ident.rs index 48f18c4..06926c0 100644 --- a/password-hash/src/ident.rs +++ b/password-hash/src/ident.rs @@ -126,16 +126,16 @@ impl<'a> TryFrom<&'a str> for Ident<'a> { let bytes = s.as_bytes(); let too_long = bytes.len() > Self::MAX_LENGTH; ...
1
4
4
84bac176f1b456e17c60b70e923582ed6a332581
Tony Arcieri
2021-10-21T21:36:54
elliptic-curve: remove `TryFrom`/`TryInto` imports (#797) Now that we've upgraded to Rust 2021 edition, these are now available via the prelude, making explicit imports redundant.
diff --git a/elliptic-curve/Cargo.toml b/elliptic-curve/Cargo.toml index ebec784..d355f49 100644 --- a/elliptic-curve/Cargo.toml +++ b/elliptic-curve/Cargo.toml @@ -1,11 +1,11 @@ [package] name = "elliptic-curve" +version = "0.11.0-pre" # Also update html_root_url in lib.rs when bumping this description = """ Gener...
7
6
15
655aea782cb0577ff09c8460522357c954887050
Tony Arcieri
2021-10-21T21:27:40
elliptic-curve: re-export `ff` and `PrimeField` (#796) Provides more convenient access to these important traits.
diff --git a/elliptic-curve/src/lib.rs b/elliptic-curve/src/lib.rs index 4eadf78..f23cd79 100644 --- a/elliptic-curve/src/lib.rs +++ b/elliptic-curve/src/lib.rs @@ -78,7 +78,7 @@ pub use { public_key::PublicKey, scalar::{non_zero::NonZeroScalar, Scalar}, }, - ff::Field, + ff::{self, Field, ...
1
1
1
4876cebd0c3b993c7959d8d011899f59354a6796
Tony Arcieri
2021-10-20T23:30:40
signature: show error source in `Display` impl (#791) Previously the `Display` impl on `Error` didn't include source information if available. This change displays it if available.
diff --git a/signature/src/error.rs b/signature/src/error.rs index 31e58c8..06e22d5 100644 --- a/signature/src/error.rs +++ b/signature/src/error.rs @@ -78,7 +78,16 @@ impl Debug for Error { impl Display for Error { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - f.write_str("signature error...
1
10
1
d2639c11cbaa49db6186f99f1a0d90a44be146ad
Tony Arcieri
2021-10-18T01:18:57
elliptic-curve: bump `pkcs8`; update encoding traits (#789) Updates `pkcs8` and related crates to use the new trait names after they were renamed in RustCrypto/formats#121.
diff --git a/Cargo.lock b/Cargo.lock index 4b9314d..534d385 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -40,7 +40,7 @@ checksum = "8a32fd6af2b5827bce66c29053ba0e7c42b9dcab01835835058558c10851a46b" [[package]] name = "base64ct" version = "1.1.1" -source = "git+https://github.com/RustCrypto/formats.git#98d7a2896d67116...
4
37
32
28576f8807942cb5d606d8ed4bb7846cf80a5400
Tony Arcieri
2021-10-09T19:12:31
elliptic-curve: use prerelease format parsers (#786) The `elliptic-curve` crate is presently a prerelease as well. This commit has it pull in the prerelease format parsers so we can properly integration test them for the elliptic curve use case.
diff --git a/Cargo.lock b/Cargo.lock index 1208e36..20829a7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -37,6 +37,11 @@ version = "1.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8a32fd6af2b5827bce66c29053ba0e7c42b9dcab01835835058558c10851a46b" +[[package]] +name = "base64ct" +ve...
3
35
22
97fe329f4d2f102075cd2cf5ad119f945af2ce1f
Tony Arcieri
2021-10-09T16:48:01
elliptic-curve: fix `Zeroize` impl on `NonZeroScalar` (#785) The previous impl wrote `0`, which violates `NonZeroScalar`'s invariant that the inner scalar value must be non-zero. This commit changes the impl to write `1` instead.
diff --git a/elliptic-curve/src/scalar/non_zero.rs b/elliptic-curve/src/scalar/non_zero.rs index cdee0e2..ce8163e 100644 --- a/elliptic-curve/src/scalar/non_zero.rs +++ b/elliptic-curve/src/scalar/non_zero.rs @@ -190,15 +190,21 @@ where C: Curve + ProjectiveArithmetic, { fn zeroize(&mut self) { + // U...
1
15
2
148e5da89e85104fe172163093413785fea06c06
Tony Arcieri
2021-10-02T18:19:45
elliptic-curve: remove `PrimeCurve` bounds on SEC1 points (#783) This is a needless restriction
diff --git a/elliptic-curve/src/secret_key.rs b/elliptic-curve/src/secret_key.rs index ae38c8d..1d047a8 100644 --- a/elliptic-curve/src/secret_key.rs +++ b/elliptic-curve/src/secret_key.rs @@ -50,7 +50,7 @@ use pem_rfc7468 as pem; use { crate::{ sec1::{EncodedPoint, ModulusSize, ValidatePublicKey}, - ...
2
12
12
23cddf04946a5454e15396e1be6bc7d866f4617b
Tony Arcieri
2021-10-02T18:12:20
elliptic-curve: make `FromEncodedPoint` return a `CtOption` (#782) Internally `k256`/`p256` return a `CtOption` for this method, then convert to an `Option`. It would be helpful when implementing other traits from the `group` crate, e.g. `GroupEncoding`, if this instead returned a `CtOption`.
diff --git a/elliptic-curve/src/dev.rs b/elliptic-curve/src/dev.rs index f22d5c2..e8cd1a8 100644 --- a/elliptic-curve/src/dev.rs +++ b/elliptic-curve/src/dev.rs @@ -367,8 +367,13 @@ impl ConstantTimeEq for AffinePoint { } impl ConditionallySelectable for AffinePoint { - fn conditional_select(_a: &Self, _b: &Self...
4
63
67
fea0010f3356186804b42e57a8cb3612b96dab9f
Tony Arcieri
2021-09-23T18:45:28
elliptic-curve: impl `Reduce<U256>` for `dev::Scalar` (#781) This is needed for the RFC6979 tests in the `ecdsa` crate.
diff --git a/elliptic-curve/src/dev.rs b/elliptic-curve/src/dev.rs index d975674..f22d5c2 100644 --- a/elliptic-curve/src/dev.rs +++ b/elliptic-curve/src/dev.rs @@ -2,7 +2,7 @@ //! against concrete implementations of the traits in this crate. use crate::{ - bigint::U256, + bigint::{Encoding, Limb, U256}, ...
1
6
3
fcafb48f1fc9786a784644d6e4b8946d991510ae
Tony Arcieri
2021-09-22T20:51:17
elliptic-curve: use `sec1` v0.1 crate release (#779)
diff --git a/Cargo.lock b/Cargo.lock index eed5105..d08c26d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -118,7 +118,8 @@ dependencies = [ [[package]] name = "const-oid" version = "0.6.1" -source = "git+https://github.com/rustcrypto/formats#85322893dc6038d91027599fcf6b19489acd1f7d" +source = "registry+https://github....
3
8
9
ec2ea209a6f9cb6e03ae1ab4e580c2ede0059d6d
Tony Arcieri
2021-09-21T22:53:20
Cargo.lock: bump dependencies (#778)
diff --git a/Cargo.lock b/Cargo.lock index cbed61c..eed5105 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -118,7 +118,7 @@ dependencies = [ [[package]] name = "const-oid" version = "0.6.1" -source = "git+https://github.com/rustcrypto/formats#77564c368c60486dbbdfb6e8ab6b1ec9f79aba62" +source = "git+https://github.com/r...
1
36
11
301441b62b2563987ae8a76dc71c3d695feaf5e0
Tony Arcieri
2021-09-20T15:18:57
elliptic-curve: remove narrow `Reduce` bound on `Scalar` (#774) Narrow reductions are not ideal and introduce much more bias than a wide reduction. If we are going to bound on a `Reduce` impl, it should at least include a wide reduction so we don't accidentally drive people to narrow reductions instead. While th...
diff --git a/elliptic-curve/src/arithmetic.rs b/elliptic-curve/src/arithmetic.rs index 2e4347d..ece0fd0 100644 --- a/elliptic-curve/src/arithmetic.rs +++ b/elliptic-curve/src/arithmetic.rs @@ -1,6 +1,6 @@ //! Elliptic curve arithmetic traits. -use crate::{ops::Reduce, Curve, FieldBytes, PrimeCurve, ScalarCore}; +use...
1
1
2
8a839b121ba9b6cb3b013140cfa3d8a4b708de86
Tony Arcieri
2021-09-20T14:44:11
elliptic-curve: add back `From<PublicKey>` for `EncodedPoint` impl (#773) This was removed in #771 but can still be supported
diff --git a/elliptic-curve/src/public_key.rs b/elliptic-curve/src/public_key.rs index 72e9f42..f8552f7 100644 --- a/elliptic-curve/src/public_key.rs +++ b/elliptic-curve/src/public_key.rs @@ -22,7 +22,7 @@ use {core::str::FromStr, pkcs8::ToPublicKey}; use { crate::{ sec1::{EncodedPoint, FromEncodedPoint...
1
27
1
5a80783b616632150a677772e85f8bf14655c60b
Tony Arcieri
2021-09-20T14:35:37
elliptic-curve: add `Reduce` trait (#768) Adds a trait for modular reduction, primarily intended for use cases like hashing to a field element. The trait is generic around a `UInt` to permit overlapping impls, allowing either "narrow" or "wide" reduction, selected by the size of the input.
diff --git a/elliptic-curve/src/arithmetic.rs b/elliptic-curve/src/arithmetic.rs index 341982c..2e4347d 100644 --- a/elliptic-curve/src/arithmetic.rs +++ b/elliptic-curve/src/arithmetic.rs @@ -1,6 +1,6 @@ //! Elliptic curve arithmetic traits. -use crate::{Curve, FieldBytes, PrimeCurve, ScalarCore}; +use crate::{ops:...
3
29
2
812b33adc7150a19f195b1f54a4b050e5d5f12c7
Tony Arcieri
2021-09-19T19:10:57
elliptic-curve: enable `sec1` crate's `subtle` and `zeroize` features (#772) These are both hard dependencies of `elliptic-curve` anyway
diff --git a/Cargo.lock b/Cargo.lock index 4724d08..cbed61c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -400,6 +400,7 @@ source = "git+https://github.com/rustcrypto/formats#77564c368c60486dbbdfb6e8ab6b dependencies = [ "der", "generic-array", + "subtle", "zeroize", ] diff --git a/elliptic-curve/Cargo.toml b/e...
2
2
1
5db7a31dcfb243387ab353694373cdc87f34910a
Tony Arcieri
2021-09-15T23:58:17
elliptic-curve: (re)re-export `sec1::Tag` (#763) This was accidentally hidden during the refactoring in #762
diff --git a/elliptic-curve/src/sec1.rs b/elliptic-curve/src/sec1.rs index c08ea72..c5ca637 100644 --- a/elliptic-curve/src/sec1.rs +++ b/elliptic-curve/src/sec1.rs @@ -6,7 +6,7 @@ mod ec_private_key; mod encoded_point; pub use self::encoded_point::{ - CompressedPointSize, Coordinates, EncodedPoint, Uncompressed...
1
1
1
5107689661620306390322608ad0994c278ddf59
Tony Arcieri
2021-09-15T12:19:21
password-hash: remove unused lifetimes (#760) Also adds a `warn(unused_lifetimes)` lint to prevent this going forward
diff --git a/password-hash/src/lib.rs b/password-hash/src/lib.rs index eb5cfc6..a6802ea 100644 --- a/password-hash/src/lib.rs +++ b/password-hash/src/lib.rs @@ -42,7 +42,7 @@ html_root_url = "https://docs.rs/password-hash/0.3.1" )] #![forbid(unsafe_code)] -#![warn(missing_docs, rust_2018_idioms)] +#![warn(missin...
2
3
3
03902da8ee39eeb042f5f34dfc8940735e67a383
Tony Arcieri
2021-09-15T02:14:19
password-hash: add `PasswordHashString` (#758) Adds an owned form of the `PasswordHash` type containing a serialized password hash string, gated on the `alloc` feature.
diff --git a/password-hash/src/lib.rs b/password-hash/src/lib.rs index 839035b..2879940 100644 --- a/password-hash/src/lib.rs +++ b/password-hash/src/lib.rs @@ -44,9 +44,8 @@ #![forbid(unsafe_code)] #![warn(missing_docs, rust_2018_idioms)] -#[cfg(all(feature = "alloc", test))] +#[cfg(feature = "alloc")] extern cra...
1
134
2
d3858047730dbf621102c9b494fb75edffbe07b7
Tony Arcieri
2021-09-15T00:36:34
Cargo.lock: bump dependencies (#756)
diff --git a/Cargo.lock b/Cargo.lock index c164c7f..be73830 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -117,9 +117,9 @@ dependencies = [ [[package]] name = "const-oid" -version = "0.6.0" +version = "0.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44c32f031ea41b4291d695026c023b...
1
22
22
edb55c969e1d7f816d870ed39cd17c331345454f
Tony Arcieri
2021-09-15T00:23:11
password-hash: pin `base64ct` to <1.1 (#757) Prevents an MSRV bump
diff --git a/password-hash/Cargo.toml b/password-hash/Cargo.toml index 563ff57..8694ccc 100644 --- a/password-hash/Cargo.toml +++ b/password-hash/Cargo.toml @@ -16,7 +16,7 @@ categories = ["cryptography", "no-std"] keywords = ["crypt", "mcf", "password", "pbkdf", "phc"] [dependencies] -base64ct = "1" +base64ct = ">...
1
1
1
3f7ec6ce4423d5550d3c9559ea79a29b8dac8d93
Tony Arcieri
2021-09-14T22:47:12
elliptic-curve: RFC5915 docs (#755)
diff --git a/elliptic-curve/src/secret_key/pkcs8.rs b/elliptic-curve/src/secret_key/pkcs8.rs index d682ec8..d530596 100644 --- a/elliptic-curve/src/secret_key/pkcs8.rs +++ b/elliptic-curve/src/secret_key/pkcs8.rs @@ -1,4 +1,35 @@ -//! PKCS#8 encoding/decoding support +//! PKCS#8 encoding/decoding support. +//! +//! Thi...
1
32
1
b645434a82400400247f4d8e4574ed9ae0dbb79e
Tony Arcieri
2021-09-12T17:26:27
elliptic-curve: `dev` module improvements (#750) Uses `ScalarCore` as the internal representation of the `dev::Scalar` newtype, and implements more functionality in terms of it.
diff --git a/elliptic-curve/src/dev.rs b/elliptic-curve/src/dev.rs index a99112c..c390b48 100644 --- a/elliptic-curve/src/dev.rs +++ b/elliptic-curve/src/dev.rs @@ -2,11 +2,11 @@ //! against concrete implementations of the traits in this crate. use crate::{ - bigint::{ArrayEncoding as _, U256}, + bigint::U256...
1
82
81
4ebec89c615d4d1651a81017d4487358f9a9027e
Tony Arcieri
2021-09-12T17:11:27
elliptic-curve: bump `crypto-bigint` to v0.2.7 (#749) This includes a bugfix for modular addition which is needed for `ScalarCore::add` to be correct.
diff --git a/Cargo.lock b/Cargo.lock index 53391bb..c164c7f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -146,9 +146,9 @@ dependencies = [ [[package]] name = "crypto-bigint" -version = "0.2.6" +version = "0.2.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e49339137316df1914fdb54a5e...
2
3
3
d24dfb22d1c2bf065b530739ab2a15c661354913
ZSchoen
2021-09-10T18:54:27
changed fmt::Display for PasswordHash (#748)
diff --git a/password-hash/src/lib.rs b/password-hash/src/lib.rs index 59a8673..839035b 100644 --- a/password-hash/src/lib.rs +++ b/password-hash/src/lib.rs @@ -276,10 +276,10 @@ impl<'a> fmt::Display for PasswordHash<'a> { if let Some(salt) = &self.salt { write!(f, "{}{}", PASSWORD_HASH_SEPARAT...
1
3
3
fd2a01411ae308ae6654a59594d63d84091f8381
Tony Arcieri
2021-09-09T02:18:57
elliptic-curve: add `ScalarCore::from_*_slice` (#746) Adds support for decoding `ScalarCore` from a byte slice
diff --git a/elliptic-curve/src/scalar/core.rs b/elliptic-curve/src/scalar/core.rs index cee7762..db0593a 100644 --- a/elliptic-curve/src/scalar/core.rs +++ b/elliptic-curve/src/scalar/core.rs @@ -1,18 +1,19 @@ //! Generic scalar type with core functionality. use crate::{ - bigint::{AddMod, ArrayEncoding, Intege...
1
21
2
012b8a457a20d6b8a1f09efd0be9f7c098d7b0f2
Tony Arcieri
2021-09-09T01:18:52
elliptic-curve: factor `ScalarCore` into its own module (#745)
diff --git a/elliptic-curve/src/lib.rs b/elliptic-curve/src/lib.rs index 314b97b..518a68a 100644 --- a/elliptic-curve/src/lib.rs +++ b/elliptic-curve/src/lib.rs @@ -58,7 +58,7 @@ mod jwk; pub use crate::{ error::{Error, Result}, point::{DecompactPoint, DecompressPoint, PointCompaction, PointCompression}, - ...
3
324
311
30c65cc9cdcd2c16ce724f0b65c98ed30368b771
Tony Arcieri
2021-09-08T18:01:10
elliptic-curve: rename `SecretKey` scalar accessors (#743) Renames the following: - `SecretKey::as_secret_scalar` => `::as_scalar_core` - `SecretKey::to_secret_scalar` => `::to_nonzero_scalar`
diff --git a/elliptic-curve/src/arithmetic.rs b/elliptic-curve/src/arithmetic.rs index be45448..b43c3b8 100644 --- a/elliptic-curve/src/arithmetic.rs +++ b/elliptic-curve/src/arithmetic.rs @@ -23,6 +23,7 @@ pub trait AffineArithmetic: Curve + ScalarArithmetic { } /// Prime order elliptic curve with projective arith...
4
14
7
9dcf5ea82d4c4e4f9f1f802a60879e21c2564fd9
Tony Arcieri
2021-09-08T17:41:09
elliptic-curve: makes `SecretKey::to_jwk_string` self-zeroizing (#742) Returns `Zeroizing<String>` instead of just `String`, ensuring that a string containing a JWK secret is zeroized on drop.
diff --git a/elliptic-curve/src/secret_key.rs b/elliptic-curve/src/secret_key.rs index 219abf2..898f002 100644 --- a/elliptic-curve/src/secret_key.rs +++ b/elliptic-curve/src/secret_key.rs @@ -41,6 +41,7 @@ use { AffinePoint, PrimeCurve, }, alloc::string::{String, ToString}, + zeroize::Zeroizing, ...
1
3
4
c2d2c05b9aee24d822f25ed15629e7d05b9ab170
Tony Arcieri
2021-09-08T17:12:01
elliptic-curve: rename `from_be_bytes`/`from_le_bytes` and `to_be_bytes` (#741) Changes the names to be consistent with the `core` methods on unsigned integer types as well as the names in the `crypto-bigint` crate.
diff --git a/Cargo.lock b/Cargo.lock index 9ce4b50..dfa34fe 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -146,8 +146,9 @@ dependencies = [ [[package]] name = "crypto-bigint" -version = "0.2.5" -source = "git+https://github.com/RustCrypto/utils.git#8fa1b4fb22789fb5afd51bc1fad08ebf95789965" +version = "0.2.6" +source ...
9
21
23
e433b13bab2f96279fa7bd630bed1f6dc239ef02
Tony Arcieri
2021-09-08T12:55:05
elliptic-curve: additional `ScalarArithmetic::Scalar` bounds (#740) Adds more `From` and `Into` bounds: - From<ScalarCore<C>>` - Into<Self::UInt> - Into<FieldBytes<C>>
diff --git a/elliptic-curve/src/arithmetic.rs b/elliptic-curve/src/arithmetic.rs index 46c01e9..be45448 100644 --- a/elliptic-curve/src/arithmetic.rs +++ b/elliptic-curve/src/arithmetic.rs @@ -1,6 +1,6 @@ //! Elliptic curve arithmetic traits. -use crate::{Curve, FieldBytes, PrimeCurve}; +use crate::{Curve, FieldByte...
2
19
2
9d916903fa715b52f8fe80e72f621bf9632a9e8a
Tony Arcieri
2021-09-08T02:39:22
elliptic-curve: mandatory `DefaultIsZeroes` bounds (#738) Makes `DefaultIsZeroes` a mandatory bound for all `*Arithmetic` traits (i.e. scalar, affine, projective)
diff --git a/elliptic-curve/src/arithmetic.rs b/elliptic-curve/src/arithmetic.rs index db377d6..935727d 100644 --- a/elliptic-curve/src/arithmetic.rs +++ b/elliptic-curve/src/arithmetic.rs @@ -3,21 +3,23 @@ use crate::{Curve, FieldBytes}; use core::fmt::Debug; use subtle::{ConditionallySelectable, ConstantTimeEq}; +...
8
20
40
405c176ce5e9d4007f6f87ae7fc89348ffdc930b
Tony Arcieri
2021-09-08T01:50:11
elliptic-curve: refactor `PrimeCurve` crate (#737) Renames `weierstrass::Curve` to `PrimeCurve`, a marker trait for curves of prime order. The `weierstrass` module is otherwise removed/renamed internally, with the traits previously contained re-exported from the toplevel.
diff --git a/elliptic-curve/src/dev.rs b/elliptic-curve/src/dev.rs index 4a9a25e..9eebde0 100644 --- a/elliptic-curve/src/dev.rs +++ b/elliptic-curve/src/dev.rs @@ -7,9 +7,9 @@ use crate::{ rand_core::RngCore, sec1::{FromEncodedPoint, ToEncodedPoint}, subtle::{Choice, ConditionallySelectable, ConstantTim...
10
82
82
128ae1def5abcf39ac5f3d35c63ab951d29cc4ff
Tony Arcieri
2021-09-08T00:33:16
elliptic-curve: additional `ScalarCore` methods (#736)
diff --git a/elliptic-curve/src/scalar.rs b/elliptic-curve/src/scalar.rs index 77fdb92..ad49cea 100644 --- a/elliptic-curve/src/scalar.rs +++ b/elliptic-curve/src/scalar.rs @@ -79,11 +79,31 @@ where Self::new(C::UInt::from_le_byte_array(bytes)) } + /// Borrow the inner [`UInt`]. + pub fn as_uint(&...
1
31
2
cadefe34305026330e43e41fb4d18e9fe0d56c2c
Tony Arcieri
2021-09-02T19:00:58
elliptic-curve: bump `crypto-bigint` to v0.2.5 (#731) Also adds smoke tests that `NonZeroScalar` and `dev::Scalar` round trip successfully to their reprs.
diff --git a/Cargo.lock b/Cargo.lock index 1196307..c094cb7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -146,9 +146,9 @@ dependencies = [ [[package]] name = "crypto-bigint" -version = "0.2.4" +version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cc209804a22c34a98fe26a32d9...
4
37
9
133f12ad8368ba1d31973d88d7c6986a57ca3351
Tony Arcieri
2021-09-02T15:44:06
elliptic-curve: bump `ff` + `group` to v0.11 (#730) Release notes: - `ff`: https://github.com/zkcrypto/ff/blob/main/CHANGELOG.md#0110---2021-09-02 - `group`: https://github.com/zkcrypto/group/blob/main/CHANGELOG.md#0110---2021-09-02
diff --git a/Cargo.lock b/Cargo.lock index db9ebf3..1196307 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -215,7 +215,7 @@ dependencies = [ [[package]] name = "elliptic-curve" -version = "0.10.6" +version = "0.11.0-pre" dependencies = [ "base64ct", "crypto-bigint", @@ -233,9 +233,9 @@ dependencies = [ [[packa...
8
52
48
24fe124436d326a976710f37aa4e8dea98d98d9d
Tony Arcieri
2021-08-29T14:17:28
aead: add `Result` type alias (#725) Allows AEAD-related results to be abbreviated as `aead::Result<T>`.
diff --git a/aead/src/lib.rs b/aead/src/lib.rs index 05ad57d..7b34854 100644 --- a/aead/src/lib.rs +++ b/aead/src/lib.rs @@ -63,6 +63,9 @@ use rand_core::{CryptoRng, RngCore}; #[derive(Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)] pub struct Error; +/// Result type alias with [`Error`]. +pub type Resul...
2
41
38
c759117b348ec195fab4ec835c260f0b4c402389
Tony Arcieri
2021-08-27T21:01:55
password-hash: add `ParamsString::add_b64_bytes` method (#722) Adds a helper method for encoding bytes into a `ParamsString` as "B64".
diff --git a/password-hash/src/params.rs b/password-hash/src/params.rs index 49cf774..5dc3c99 100644 --- a/password-hash/src/params.rs +++ b/password-hash/src/params.rs @@ -3,7 +3,7 @@ use crate::errors::InvalidValue; use crate::{ value::{Decimal, Value}, - Error, Ident, Result, + Encoding, Error, Ident, R...
1
45
6
24f1d830303b800fabc95bcb74780fe62a589476
Tony Arcieri
2021-08-27T20:38:01
password-hash: rename `Error::B64` => `Error::B64Encoding` (#721)
diff --git a/password-hash/src/errors.rs b/password-hash/src/errors.rs index 552fab5..48ff66b 100644 --- a/password-hash/src/errors.rs +++ b/password-hash/src/errors.rs @@ -15,7 +15,7 @@ pub enum Error { Algorithm, /// "B64" encoding error. - B64(B64Error), + B64Encoding(B64Error), /// Cryptogr...
1
4
4
9e0de9d0aa33f0a7c687d7ae0809e3194027ba6c
Tony Arcieri
2021-08-27T03:52:13
password-hash: refactor `PasswordHasher` (#720) - Renames `hash_password` => `hash_password_customized` - Renames `hash_password_simple` => `hash_password` - Adds a `version` param to `hash_password_customized` A main goal of this commit is to make the method with the shortest name the recommended a simplest to ...
diff --git a/password-hash/src/lib.rs b/password-hash/src/lib.rs index d5bc7fa..f8a82c7 100644 --- a/password-hash/src/lib.rs +++ b/password-hash/src/lib.rs @@ -227,7 +227,7 @@ impl<'a> PasswordHash<'a> { password: impl AsRef<[u8]>, salt: &'a str, ) -> Result<Self> { - phf.hash_password_si...
3
20
18
82c343a50b90b9080b29ee023f4c12bfb488c46b
Tony Arcieri
2021-08-27T03:29:57
password-hash: add `version` param to `PasswordHasher` (#719) This makes the `hash_password` method reflect all of the potential parameters to a `PasswordHash`.
diff --git a/password-hash/src/traits.rs b/password-hash/src/traits.rs index 12e2441..ab20a1f 100644 --- a/password-hash/src/traits.rs +++ b/password-hash/src/traits.rs @@ -1,6 +1,6 @@ //! Trait definitions. -use crate::{Error, Ident, ParamsString, PasswordHash, Result, Salt}; +use crate::{Decimal, Error, Ident, Par...
2
6
2
4d348fb1559933493fd45717c5da42c83969f5c8
Tony Arcieri
2021-08-26T20:17:29
password-hash: add helper methods to `InvalidValue` (#718) Simplifies constructing an appropriate `password_hash::Error` from an `InvalidValue` enum.
diff --git a/password-hash/src/errors.rs b/password-hash/src/errors.rs index 7b03ff0..552fab5 100644 --- a/password-hash/src/errors.rs +++ b/password-hash/src/errors.rs @@ -114,6 +114,18 @@ pub enum InvalidValue { TooShort, } +impl InvalidValue { + /// Create an [`Error::ParamValueInvalid`] which warps this ...
1
12
0
d2186f94f53eee706248e54bf014973872ce6281
Tony Arcieri
2021-08-26T20:06:16
password-hash: move traits to module (#717) Clean up lib.rs by factoring trait definitions under a module
diff --git a/password-hash/src/lib.rs b/password-hash/src/lib.rs index f04b334..d5bc7fa 100644 --- a/password-hash/src/lib.rs +++ b/password-hash/src/lib.rs @@ -61,6 +61,7 @@ mod ident; mod output; mod params; mod salt; +mod traits; mod value; pub use crate::{ @@ -70,6 +71,7 @@ pub use crate::{ output::Outp...
2
106
97
d8d3a5531f9495b0fa0b73ce4635c540d8b26202
Tony Arcieri
2021-08-26T05:53:27
password-hash v0.3.0-pre.1 (#716)
diff --git a/Cargo.lock b/Cargo.lock index 45f43eb..62f86a2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -325,7 +325,7 @@ checksum = "624a8340c38c1b80fd549087862da4ba43e08858af025b236e509b6649fc13d5" [[package]] name = "password-hash" -version = "0.2.3" +version = "0.3.0-pre.1" dependencies = [ "base64ct", "ran...
4
4
4
94a31d77a77a986925a9ada35271319f178d0ed0
Tony Arcieri
2021-08-26T05:44:19
password-hash: `error::InvalidValue` improvements (#715) - Rename `NotProvided` variant to `Malformed` - Have `InvalidChar` include the character which was considered invalid
diff --git a/password-hash/src/errors.rs b/password-hash/src/errors.rs index 4d183eb..7b03ff0 100644 --- a/password-hash/src/errors.rs +++ b/password-hash/src/errors.rs @@ -98,31 +98,30 @@ impl From<base64ct::InvalidLengthError> for Error { #[derive(Copy, Clone, Debug, Eq, PartialEq)] #[non_exhaustive] pub enum Inva...
4
20
21
e807f026cd47a16b85e8eceee1f9b2f8b7a4f48e
Tony Arcieri
2021-08-26T05:27:22
password-hash: minor fixes for `InvalidValue` (#714) - Make `errors` module public, allowing access to `InvalidValue` - Add rustdoc documentation for `InvalidValue` - Don't re-export `B64Error` at the toplevel now that `errors` is pub - Fix a few typos
diff --git a/password-hash/src/encoding.rs b/password-hash/src/encoding.rs index 56fa464..a268999 100644 --- a/password-hash/src/encoding.rs +++ b/password-hash/src/encoding.rs @@ -1,7 +1,8 @@ //! Base64 encoding variants. -use crate::B64Error; -use base64ct::{Base64Bcrypt, Base64Crypt, Base64Unpadded as B64, Encodi...
5
32
19
67f2cb48e2ae7988403c0fa511a60b2eb8e1dbd2
Szymon Gibała
2021-08-25T19:12:02
feat: Add more details to `ParamValueInvalid` and introduce `SaltInvalid` error (#713)
diff --git a/password-hash/src/errors.rs b/password-hash/src/errors.rs index ceb3177..3da58f7 100644 --- a/password-hash/src/errors.rs +++ b/password-hash/src/errors.rs @@ -33,7 +33,7 @@ pub enum Error { ParamNameInvalid, /// Invalid parameter value. - ParamValueInvalid, + ParamValueInvalid(InvalidVal...
4
75
32
08ac8c6f76db6a8eae9dd28402717d5bbef20b39
Tony Arcieri
2021-08-24T00:19:11
elliptic-curve: bump `crypto-bigint` dependency to v0.2.4 (#710) This release includes some new features which can be used to calculate various constants from an elliptic curve's order using `const fn`s. Bumping the minimum release allows for elliptic curve libs to pin to a release of the `elliptic-curve` crate w...
diff --git a/Cargo.lock b/Cargo.lock index fb89989..3dbf5a3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -146,9 +146,9 @@ dependencies = [ [[package]] name = "crypto-bigint" -version = "0.2.3" +version = "0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "09910f0830248af44999071776...
2
3
3
66fa43641ba4129f5beea960469ab4332c8c806a
Tony Arcieri
2021-08-22T23:26:57
password-hash: make value and salt lengths the same (#707) Without this `Salt` cannot represent the full possible length of a salt value as defined in the PHC string format spec.
diff --git a/password-hash/src/errors.rs b/password-hash/src/errors.rs index 8f63cd8..ceb3177 100644 --- a/password-hash/src/errors.rs +++ b/password-hash/src/errors.rs @@ -9,6 +9,7 @@ pub type Result<T> = core::result::Result<T, Error>; /// Password hashing errors. #[derive(Copy, Clone, Debug, Eq, PartialEq)] +// ...
3
18
20
da87cddc90937397ee094f9005b0913e968d1a07
Tony Arcieri
2021-07-26T20:38:30
Cargo.lock: bump dependencies (#695)
diff --git a/Cargo.lock b/Cargo.lock index 00446a3..f5647b4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -172,7 +172,7 @@ version = "0.3.0" dependencies = [ "aead", "cipher 0.3.0", - "crypto-mac 0.11.0", + "crypto-mac 0.11.1", "digest 0.9.0", "elliptic-curve", "password-hash", @@ -202,9 +202,9 @@ dependencies...
1
19
10
628fe827d67d7750af7d19262c41fa4b195fb78a
Tony Arcieri
2021-07-10T20:40:16
aead: re-export `rand_core` (#682) This implements the changes proposed in #681 to simplify access to the `rand_core` traits and `OsRng`. `rand_core` is conditionally re-exported when the eponymous crate feature is enabled. Additionally, the `std` crate feature enables `rand_core/std`, which permits access to...
diff --git a/Cargo.lock b/Cargo.lock index 8d509c5..624cd8f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -304,6 +304,17 @@ dependencies = [ "version_check", ] +[[package]] +name = "getrandom" +version = "0.2.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7fcd999463524c52659517fe2c...
3
28
2
7aa25e61c6ed0fba7a092e499c3c0b9410fed254
Tony Arcieri
2021-06-29T13:59:03
signature: add Result alias (#676) Adds a `Result` alias with `signature::Error` in the error position which can be used as `signature::Result<T>` by other crates.
diff --git a/signature/src/error.rs b/signature/src/error.rs index 9fba1e6..31e58c8 100644 --- a/signature/src/error.rs +++ b/signature/src/error.rs @@ -5,6 +5,11 @@ use core::fmt::{self, Debug, Display}; #[cfg(feature = "std")] use std::boxed::Box; +/// Result type. +/// +/// A result with the `signature` crate's ...
1
5
0
c8369abcef85f031f7efef99ae38e89d0952f539
Tony Arcieri
2021-06-22T06:00:40
elliptic-curve: bump `crypto-bigint` to v0.2.1 (#673)
diff --git a/Cargo.lock b/Cargo.lock index 118e6da..b50a725 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,5 +1,7 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. +version = 3 + [[package]] name = "aead" version = "0.4.1" @@ -180,12 +182,13 @@ dependencies = [ [[pack...
3
28
10
d95413b749f0d82252ebd2fb547ccbd2a17e204f
Tony Arcieri
2021-06-14T17:23:51
elliptic-curve: impl `ConstantTimeEq` for `NonZeroScalar` (#669)
diff --git a/elliptic-curve/src/scalar/non_zero.rs b/elliptic-curve/src/scalar/non_zero.rs index 8a35b40..33f33c1 100644 --- a/elliptic-curve/src/scalar/non_zero.rs +++ b/elliptic-curve/src/scalar/non_zero.rs @@ -1,4 +1,5 @@ //! Non-zero scalar type. +// TODO(tarcieri): change bounds to `ScalarArithmetic` instead of `...
1
12
2
9831d28e8f6e90ecec2ed512ef4e9ba1c35efb3d
Tony Arcieri
2021-06-09T20:48:33
elliptic-cure: add explicit `Copy` bounds on public key (#667) The derived `Copy` impl appears to be adding additional undesired trait bounds. This explicit impl ensures it's always available.
diff --git a/elliptic-curve/src/public_key.rs b/elliptic-curve/src/public_key.rs index 281dcf9..5fff558 100644 --- a/elliptic-curve/src/public_key.rs +++ b/elliptic-curve/src/public_key.rs @@ -59,7 +59,7 @@ use alloc::string::{String, ToString}; /// When the `pem` feature of this crate (or a specific RustCrypto ellipt...
1
3
1
7d4e9162e6879a0325db23f636c22f072c302041
Tony Arcieri
2021-06-09T20:20:35
elliptic-curve: derive `Copy` on `PublicKey` (#666) The new trait bounds on `AffineArithmetic` ensure that `AffinePoint` is always `Copy`. So the previously imposed trait bounds prevent `Copy` impls which should be available by default.
diff --git a/elliptic-curve/src/public_key.rs b/elliptic-curve/src/public_key.rs index 85c6581..281dcf9 100644 --- a/elliptic-curve/src/public_key.rs +++ b/elliptic-curve/src/public_key.rs @@ -59,7 +59,7 @@ use alloc::string::{String, ToString}; /// When the `pem` feature of this crate (or a specific RustCrypto ellipt...
1
1
9
424e135b753862c2e2a0a99a2d1e78d2b37ad2ec
Tony Arcieri
2021-06-08T18:37:59
crypto: bump `signature` crate dependency to v1.3.0 (#664)
diff --git a/crypto/Cargo.toml b/crypto/Cargo.toml index 1eba6c9..ed8e636 100644 --- a/crypto/Cargo.toml +++ b/crypto/Cargo.toml @@ -20,7 +20,7 @@ digest = { version = "0.9", optional = true } elliptic-curve = { version = "0.10", optional = true, path = "../elliptic-curve" } mac = { version = "0.11", package = "crypt...
1
1
1
06a7765602b21ae74db0be6312398cf5b323aa8f
Tony Arcieri
2021-06-08T02:54:14
elliptic-curve: bump `crypto-bitint` to v0.2; `pkcs8` to v0.7 (#662)
diff --git a/Cargo.lock b/Cargo.lock index 1dd994c..b382db9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -53,11 +53,6 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d0d27fb6b6f1e43147af148af49d49329413ba781aa0d5e10979831c210173b5" -[[package]] -name = "base64ct" -ve...
3
19
23
2470bef665cc8d340576c59850224f589b140277
Tony Arcieri
2021-06-08T01:14:09
elliptic-curve: add TODO for replacing UInt with an associated constant (#661) Ideally instead of specifying a `Curve::UInt` associated type, we could instead specify a constant, and then pass that as a const generic parameter to `crypto_bigint::UInt`. Unfortunately that requires a lot more functionality than is ...
diff --git a/elliptic-curve/src/lib.rs b/elliptic-curve/src/lib.rs index 748a272..74b75ad 100644 --- a/elliptic-curve/src/lib.rs +++ b/elliptic-curve/src/lib.rs @@ -110,6 +110,8 @@ pub const ALGORITHM_OID: pkcs8::ObjectIdentifier = /// curves (e.g. [`SecretKey`]). pub trait Curve: Clone + Debug + Default + Eq + Ord +...
1
2
0
23fb60e731179833bf8b0da51dbc51bbd5531dc7
Tony Arcieri
2021-06-08T00:22:09
elliptic-curve: bump `crypto-bigint` to v0.2.0-pre (#660)
diff --git a/Cargo.lock b/Cargo.lock index 47c0f79..1dd994c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -56,7 +56,7 @@ checksum = "d0d27fb6b6f1e43147af148af49d49329413ba781aa0d5e10979831c210173b5" [[package]] name = "base64ct" version = "1.0.0" -source = "git+https://github.com/rustcrypto/utils.git#3fc828a86a31b2b50...
7
26
28
5708e791d43b9597abf90f75a55761a8b80a79d3
Tony Arcieri
2021-06-08T00:06:02
Add compact to sec1 (#659) Co-authored-by: Rahul Garg <rg@vihu.dev>
diff --git a/elliptic-curve/src/sec1.rs b/elliptic-curve/src/sec1.rs index 7d8e481..f24cfdc 100644 --- a/elliptic-curve/src/sec1.rs +++ b/elliptic-curve/src/sec1.rs @@ -173,9 +173,9 @@ where }) } - /// Is this [`EncodedPoint`] the additive identity? (a.k.a. point at infinity) - pub fn is_identity(...
2
65
11
6dced063c1d943e04ee52e5e53bba5e08b83b450
Tony Arcieri
2021-06-07T18:36:41
elliptic-curve: add AffineArithmetic trait (#658) This allows us to specify a baseline set of bounds for `AffinePoint` so they don't have to redundantly be specified in `where` clauses.
diff --git a/elliptic-curve/src/arithmetic.rs b/elliptic-curve/src/arithmetic.rs new file mode 100644 index 0000000..fc7c1cf --- /dev/null +++ b/elliptic-curve/src/arithmetic.rs @@ -0,0 +1,60 @@ +//! Elliptic curve arithmetic traits. + +use crate::{Curve, FieldBytes}; +use core::fmt::Debug; +use subtle::{ConditionallyS...
11
149
113
884ef53c17981ff8bf1407bd6a4455ba14451184
Tony Arcieri
2021-06-07T17:31:34
elliptic-curve: use `AlgorithmIdentifier::assert_oids` helper (#657) Simplifies checking of SPKI OIDs
diff --git a/Cargo.lock b/Cargo.lock index df9d627..47c0f79 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -56,7 +56,7 @@ checksum = "d0d27fb6b6f1e43147af148af49d49329413ba781aa0d5e10979831c210173b5" [[package]] name = "base64ct" version = "1.0.0" -source = "git+https://github.com/rustcrypto/utils.git#c1f7fd345e112b2f3...
2
11
20
9c0e0ed2526bcdab8b041acea79410aebdcb4427
Tony Arcieri
2021-06-07T14:30:44
elliptic-curve: add additional SecretKey conversions (#655)
diff --git a/elliptic-curve/src/scalar/bytes.rs b/elliptic-curve/src/scalar/bytes.rs index f3ad070..abcff85 100644 --- a/elliptic-curve/src/scalar/bytes.rs +++ b/elliptic-curve/src/scalar/bytes.rs @@ -167,12 +167,31 @@ where } } +impl<C> From<&ScalarBytes<C>> for FieldBytes<C> +where + C: Curve, +{ + fn f...
3
64
1
618645970a3c6d98d016edc129bba32c843883ef
Tony Arcieri
2021-06-05T17:04:41
elliptic-curve: use value error helpers (#653)
diff --git a/Cargo.lock b/Cargo.lock index e821861..df9d627 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -56,7 +56,7 @@ checksum = "d0d27fb6b6f1e43147af148af49d49329413ba781aa0d5e10979831c210173b5" [[package]] name = "base64ct" version = "1.0.0" -source = "git+https://github.com/rustcrypto/utils.git#fa026e3850abedd70...
4
13
29
ed1581897e2516f34e5195cb18eeb03fc31386f2
Tony Arcieri
2021-06-05T04:12:59
elliptic-curve: add dev::ScalarBytes (#652) Alias for `ScalarBytes<MockCurve>`
diff --git a/elliptic-curve/src/dev.rs b/elliptic-curve/src/dev.rs index 313c3f6..0dc86a1 100644 --- a/elliptic-curve/src/dev.rs +++ b/elliptic-curve/src/dev.rs @@ -76,6 +76,9 @@ pub type PublicKey = crate::PublicKey<MockCurve>; /// Secret key. pub type SecretKey = crate::SecretKey<MockCurve>; +/// Scalar bytes. +p...
1
3
0
7f9fba12c375460b0fe385f9c2d741c8c22c5fc8
Tony Arcieri
2021-06-05T03:16:18
elliptic-curve: ScalarBytes::from_uint (#651) Support for decoding scalar bytes from the bigint type for a given elliptic curve.
diff --git a/elliptic-curve/src/scalar/bytes.rs b/elliptic-curve/src/scalar/bytes.rs index 16230bd..aa531bf 100644 --- a/elliptic-curve/src/scalar/bytes.rs +++ b/elliptic-curve/src/scalar/bytes.rs @@ -31,8 +31,14 @@ where /// Create new [`ScalarBytes`], checking that the given input is within /// range of the...
1
8
2
3733484bbb94cb50cae4609faf22c47350bd8981
Tony Arcieri
2021-06-05T02:24:09
elliptic-curve: bump PKCS#8 to v0.7.0-pre (#650) Patched in via git. This version includes the merger of PublicKeyInfo and OneAsymmetricKey into a single type. Additionally, it bumps the `der` crate, which simplifies handling of context-sensitive fields. It also makes encoding fallible, which eliminates a l...
diff --git a/Cargo.lock b/Cargo.lock index 337f4c4..e821861 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -53,6 +53,11 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d0d27fb6b6f1e43147af148af49d49329413ba781aa0d5e10979831c210173b5" +[[package]] +name = "base64ct" +ve...
7
91
73
79f14e4e1d2b6642bcfbbd34b04e391b8e1b9ef8
Tony Arcieri
2021-06-03T03:01:47
elliptic-curve: make ScalarBytes<C> the SecretKey<C> internal repr (#649) Previously SecretKey<C> had a generic internal value, depending on whether or not the `arithmetic` feature was activated. This was mostly trying to work around the fact that there wasn't a baseline arithmetic impl available to validate secret...
diff --git a/elliptic-curve/src/jwk.rs b/elliptic-curve/src/jwk.rs index 55ea1e8..c2b33c5 100644 --- a/elliptic-curve/src/jwk.rs +++ b/elliptic-curve/src/jwk.rs @@ -7,7 +7,7 @@ use crate::{ sec1::{ Coordinates, EncodedPoint, UncompressedPointSize, UntaggedPointSize, ValidatePublicKey, }, - secret_...
7
94
139
cc442aca7e4013f3d8e3c5c5db334ed8d1e73fb1
Tony Arcieri
2021-06-02T21:25:34
elliptic-curve: remove `util` module (#648) This module previously contained 32-bit and 64-bit implementations of functions which lower to the `adc`, `sbb`, and `mac` intrinsics. This functionality has been subsumed into the `crypto-bigint` crate, which provides much higher-level types with operations built on th...
diff --git a/elliptic-curve/src/lib.rs b/elliptic-curve/src/lib.rs index 271a49d..8e8054d 100644 --- a/elliptic-curve/src/lib.rs +++ b/elliptic-curve/src/lib.rs @@ -27,7 +27,6 @@ extern crate std; pub mod ops; pub mod sec1; -pub mod util; pub mod weierstrass; mod error; diff --git a/elliptic-curve/src/util.rs b...
2
0
56
3418d1ad153bdde5693a52bd692befdaea37e95a
Tony Arcieri
2021-06-02T21:16:25
elliptic-curve: impl ScalarBytes<C> using C::UInt (#647) Uses the `ConstantTimeLess` impl on `UInt` to ensure that a bigint parsed from the inner byte array does not overflow the curve's order.
diff --git a/elliptic-curve/src/lib.rs b/elliptic-curve/src/lib.rs index 1717b47..271a49d 100644 --- a/elliptic-curve/src/lib.rs +++ b/elliptic-curve/src/lib.rs @@ -91,6 +91,7 @@ pub use zeroize; use core::fmt::Debug; use generic_array::GenericArray; +use subtle::{ConstantTimeEq, ConstantTimeGreater, ConstantTimeLe...
2
17
48
49bdec537bceed24b30392b16cf84a6badf0e035
Tony Arcieri
2021-06-02T21:00:48
elliptic-curve: source FieldSize from Curve::UInt type (#646) The `crypto-bigint` library defines an associated `ArrayLength<u8>` for every `UInt` type as part of the `ArrayEncoding` trait. This means we don't need to define both: we can now source what was previously `C::FieldSize` via `C::UInt::ByteSize`. Th...
diff --git a/Cargo.lock b/Cargo.lock index 13d8a9e..337f4c4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -181,7 +181,7 @@ dependencies = [ [[package]] name = "crypto-bigint" version = "0.1.0" -source = "git+https://github.com/rustcrypto/utils.git#01c945e05d86cd36b7222f0a8628cf51410eebc7" +source = "git+https://github...
7
25
35
9091f6e8fbc2ac1d061db0cfbd8627e5ef03792d
Tony Arcieri
2021-06-02T05:12:36
elliptic-curve: merge `Curve` and `Order` traits (#644) The `Order` trait was additively retrofitted in a non-breaking way. However all of the https://github.com/rustcrypto/elliptic-curves crates now impl it, and thus it's ready to merge into the `Curve` trait proper as a mandatory-to-impl feature. The current f...
diff --git a/elliptic-curve/src/dev.rs b/elliptic-curve/src/dev.rs index 50482c7..959d3b0 100644 --- a/elliptic-curve/src/dev.rs +++ b/elliptic-curve/src/dev.rs @@ -10,7 +10,7 @@ use crate::{ util::sbb64, weierstrass, zeroize::Zeroize, - AlgorithmParameters, Curve, Order, ProjectiveArithmetic, + Al...
5
41
70
1e9597280a499a27d839488beba3ccecfabf3aaa
Tony Arcieri
2021-05-25T00:33:24
Cargo.lock: bump dependencies (#640)
diff --git a/Cargo.lock b/Cargo.lock index f0e46e8..9bcc1bb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -157,9 +157,9 @@ dependencies = [ [[package]] name = "cpufeatures" -version = "0.1.1" +version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dec1028182c380cc45a2e2c5ec84...
1
14
14
1df3500020c1a45eb70bfd548ce6d346c55580b6
Tony Arcieri
2021-05-18T23:19:11
elliptic-curve: add Ord and PartialOrd impls on PublicKey (#637)
diff --git a/elliptic-curve/src/public_key.rs b/elliptic-curve/src/public_key.rs index aa4cee2..b90a7c6 100644 --- a/elliptic-curve/src/public_key.rs +++ b/elliptic-curve/src/public_key.rs @@ -10,6 +10,7 @@ use crate::{ Scalar, }; use core::{ + cmp::Ordering, convert::{TryFrom, TryInto}, fmt::Debug,...
1
31
1
ff738a6d6baa482ca0bbe2fd2e2a246e35314faa
Tony Arcieri
2021-05-17T14:55:45
crypto: fix `password_hash` module name in rustdoc (#636) It previously had a hyphen (i.e. crate name, not module name)
diff --git a/crypto/src/lib.rs b/crypto/src/lib.rs index 62143d0..8eaa150 100644 --- a/crypto/src/lib.rs +++ b/crypto/src/lib.rs @@ -28,7 +28,7 @@ //! | [`digest`](https://docs.rs/digest) | `digest` | Cryptographic hash functions | //! | [`elliptic_curve`](https://docs.rs/elliptic-curve) | `elliptic-curve` | Elliptic...
1
1
1
d90db056e44ae4d6d7b60d0d8fb9a1242de3971c
Tony Arcieri
2021-04-28T21:24:41
crypto-mac v0.11.0-pre.1 (#620)
diff --git a/Cargo.lock b/Cargo.lock index 6432cc5..255b405 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -155,7 +155,7 @@ dependencies = [ [[package]] name = "crypto-mac" -version = "0.11.0-pre" +version = "0.11.0-pre.1" dependencies = [ "blobby", "cipher", diff --git a/crypto-mac/Cargo.toml b/crypto-mac/Cargo....
3
3
3
80918dd5bbb8694f6ec30ea33a23dcca283ed07f
Tony Arcieri
2021-04-28T21:13:27
cipher v0.3.0-pre.5 (#619)
diff --git a/Cargo.lock b/Cargo.lock index 75fd5e3..6432cc5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -78,8 +78,9 @@ dependencies = [ [[package]] name = "block-buffer" -version = "0.10.0-pre.2" -source = "git+https://github.com/RustCrypto/utils?branch=block_mode#39ee346fde26516678ca3700b88c53b288b39e1c" +version ...
6
16
14
92668869e2fea6ff3de6a5a531e1615c3efd61ae
Tony Arcieri
2021-04-28T19:31:15
crypto-common v0.1.0-pre (#618)
diff --git a/Cargo.lock b/Cargo.lock index 81efd18..75fd5e3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -144,7 +144,7 @@ dependencies = [ [[package]] name = "crypto-common" -version = "0.1.0" +version = "0.1.0-pre" dependencies = [ "block-buffer 0.10.0-pre.2", "generic-array 0.14.4", diff --git a/cipher/Cargo....
5
6
6
d6a1e128825113d29eb7fd2525a9bba161415717
Tony Arcieri
2021-04-28T18:10:19
password-hash: v0.2 breaking changes (#615) This commit contains a set of breaking changes intended to be released as part of `password-hash` v0.2, addressing a number of currently open issues about the crate discovered when integrating it into the crates in the https://github.com/RustCrypto/password-hashes repo. ...
diff --git a/Cargo.lock b/Cargo.lock index 85901da..81efd18 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -323,7 +323,7 @@ checksum = "624a8340c38c1b80fd549087862da4ba43e08858af025b236e509b6649fc13d5" [[package]] name = "password-hash" -version = "0.1.4" +version = "0.2.0-pre" dependencies = [ "base64ct", "rand_...
11
189
406
26e5c58356071d1277f54b9fc3364744808cbbbb
Tony Arcieri
2021-04-27T02:00:01
elliptic-curve: forbid `clippy::unwrap_used` (#617)
diff --git a/elliptic-curve/src/dev.rs b/elliptic-curve/src/dev.rs index 39b8e77..e8f6ac7 100644 --- a/elliptic-curve/src/dev.rs +++ b/elliptic-curve/src/dev.rs @@ -189,10 +189,10 @@ impl PrimeField for Scalar { let mut w = [0u64; LIMBS]; // Interpret the bytes as a big-endian integer w. - w[...
4
12
11