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
08c3d733b51a86d5e9fbfee5e508474976066aba
Tony Arcieri
2021-04-27T01:46:26
aead: forbid `clippy::unwrap_used` (#616)
diff --git a/aead/src/lib.rs b/aead/src/lib.rs index eeadf59..b8e1339 100644 --- a/aead/src/lib.rs +++ b/aead/src/lib.rs @@ -15,7 +15,7 @@ #![no_std] #![cfg_attr(docsrs, feature(doc_cfg))] -#![forbid(unsafe_code)] +#![forbid(unsafe_code, clippy::unwrap_used)] #![doc( html_logo_url = "https://raw.githubusercon...
1
1
1
19cbed9493dd4ec1de1e884f7fa6ea7890ee3ca8
Tony Arcieri
2021-04-21T22:49:28
elliptic-curve: always re-export ScalarBytes (#613) It was previously needlessly conditionally gated on the `arithmetic` feature by accident.
diff --git a/elliptic-curve/src/lib.rs b/elliptic-curve/src/lib.rs index 4b6a25f..271dfc5 100644 --- a/elliptic-curve/src/lib.rs +++ b/elliptic-curve/src/lib.rs @@ -56,6 +56,7 @@ mod secret_key; pub use self::{ error::{Error, Result}, order::Order, + scalar::bytes::ScalarBytes, }; pub use generic_arra...
1
2
1
c696a7379f5da1b35885133e76007ba1cc100151
Tony Arcieri
2021-04-21T22:35:50
elliptic-curve: impl `subtle` traits on `ScalarBytes<C>` (#612) Adds impls of `ConditionallySelectable` and `ConstantTimeEq`
diff --git a/elliptic-curve/src/scalar/bytes.rs b/elliptic-curve/src/scalar/bytes.rs index aea2aa6..6f8458a 100644 --- a/elliptic-curve/src/scalar/bytes.rs +++ b/elliptic-curve/src/scalar/bytes.rs @@ -6,7 +6,7 @@ use core::{ mem, }; use generic_array::{typenum::Unsigned, GenericArray}; -use subtle::{Choice, CtOp...
1
60
2
9a3332320ac4947b61db3c4a5ed9b3a2da3cfbfe
Tony Arcieri
2021-04-21T21:54:48
elliptic-curve: add `ScalarBytes` type (#610) Adds a type for representing `FieldBytes` which is always in range of the curve's `Order`. Does not require the `arithmetic` feature or a `ProjectiveArithmetic` implementation, however when those are enabled it supports infallible conversions to/from `Scalar<C>`.
diff --git a/elliptic-curve/src/dev.rs b/elliptic-curve/src/dev.rs index 388a95f..39b8e77 100644 --- a/elliptic-curve/src/dev.rs +++ b/elliptic-curve/src/dev.rs @@ -7,13 +7,12 @@ use crate::{ ff::{Field, PrimeField}, group, rand_core::RngCore, - scalar::ScalarBits, sec1::{FromEncodedPoint, ToEnco...
9
379
248
933f4deefd742678fe21fdf89371591662db675c
Tony Arcieri
2021-04-21T17:35:35
elliptic-curve: add `Order::is_scalar_repr_in_range` (#608) Adds a method for checking if `FieldBytes<C>` is in range of `C::ORDER` when interpreted as a big endian integer. This is a generic implementation which does not require an arithmetic backend for a given curve.
diff --git a/elliptic-curve/src/order.rs b/elliptic-curve/src/order.rs index 8a6937c..5a5ff52 100644 --- a/elliptic-curve/src/order.rs +++ b/elliptic-curve/src/order.rs @@ -1,7 +1,14 @@ //! Low-level elliptic curve parameters. -use crate::Curve; -use core::fmt::Debug; +use crate::{Curve, FieldBytes}; +use core::{con...
1
84
3
521ce3eb03a07dca4d0df97245840c803d2bcc45
Tony Arcieri
2021-04-21T15:46:49
elliptic-curve: define Order for MockCurve (#606)
diff --git a/elliptic-curve/src/dev.rs b/elliptic-curve/src/dev.rs index 56ac03b..388a95f 100644 --- a/elliptic-curve/src/dev.rs +++ b/elliptic-curve/src/dev.rs @@ -13,7 +13,7 @@ use crate::{ util::sbb64, weierstrass, zeroize::Zeroize, - AlgorithmParameters, Curve, ProjectiveArithmetic, + Algorithm...
1
29
1
159714ea312f05779dc1104c511248ac3df68b50
Tony Arcieri
2021-04-21T14:40:23
elliptic-curve: pkcs8 import fixes (#604)
diff --git a/elliptic-curve/src/secret_key/pkcs8.rs b/elliptic-curve/src/secret_key/pkcs8.rs index d42e0ef..23f0a5e 100644 --- a/elliptic-curve/src/secret_key/pkcs8.rs +++ b/elliptic-curve/src/secret_key/pkcs8.rs @@ -3,9 +3,9 @@ use super::{SecretKey, SecretValue}; use crate::{ sec1::{self, UncompressedPointSize...
1
7
4
b35bf9f610f267d49cf1992d037111db03bb512a
Tony Arcieri
2021-04-21T14:23:48
elliptic-curve: add Order trait (#603) Adds a trait which notably does *not* depend on the `arithmetic` feature which allows associating a constant for the curve's order with a particular curve type. Since it stores the curve type as a constant, it's not possible to use `GenericArray`, so instead it has each cur...
diff --git a/elliptic-curve/src/lib.rs b/elliptic-curve/src/lib.rs index 18b93d7..37d4b2a 100644 --- a/elliptic-curve/src/lib.rs +++ b/elliptic-curve/src/lib.rs @@ -25,12 +25,14 @@ extern crate alloc; #[cfg(feature = "std")] extern crate std; -mod error; pub mod ops; pub mod sec1; pub mod util; pub mod weierstr...
2
38
2
984b541d0287eb516dc8a5787bfbcf251c7b9c65
Tony Arcieri
2021-04-19T23:30:29
Cargo.lock: bump dependencies (#602)
diff --git a/Cargo.lock b/Cargo.lock index af727dd..6b12449 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -34,9 +34,9 @@ dependencies = [ [[package]] name = "async-trait" -version = "0.1.48" +version = "0.1.50" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "36ea56748e10732c49404c153638...
1
20
20
44f9de2ad242004e5428f49388971a82706e6ca0
Tony Arcieri
2021-04-19T23:04:16
password-hash: replace length `const fn`s with constants (#600) Replaces functions with namespaced constant values. Deprecates the old functions, i.e. non-breaking change.
diff --git a/password-hash/src/ident.rs b/password-hash/src/ident.rs index 0092cfd..50f6949 100644 --- a/password-hash/src/ident.rs +++ b/password-hash/src/ident.rs @@ -19,9 +19,6 @@ use crate::errors::ParseError; use core::{convert::TryFrom, fmt, ops::Deref, str}; -/// Maximum size of an identifier. -const MAX_LEN...
4
64
51
0394df4417967adfcd23df80e1763fc8844247bc
Tony Arcieri
2021-04-18T20:14:16
elliptic-curve: pin to patched bitvec (#597) With this `bitvec` patch, we no longer need to pin `funty`: https://github.com/bitvecto-rs/bitvec/issues/105
diff --git a/Cargo.lock b/Cargo.lock index 2445a9c..fa366d6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -51,9 +51,9 @@ checksum = "d0d27fb6b6f1e43147af148af49d49329413ba781aa0d5e10979831c210173b5" [[package]] name = "bitvec" -version = "0.20.1" +version = "0.20.2" source = "registry+https://github.com/rust-lang/cr...
2
5
5
67b596699042984e96459dae8f12b1558bed6b4a
Tony Arcieri
2021-04-17T19:47:25
aead: require `heapless` v0.6.1 (#596) This is mostly to clear the https://deps.rs "insecure" warning from the repo.
diff --git a/aead/Cargo.toml b/aead/Cargo.toml index 763141d..adb1edc 100644 --- a/aead/Cargo.toml +++ b/aead/Cargo.toml @@ -18,7 +18,7 @@ categories = ["cryptography", "no-std"] generic-array = { version = "0.14", default-features = false } blobby = { version = "0.3", optional = true } -heapless = { version = "0.6...
1
1
1
33351a1d6a64e4a40eaa1a9ef7ce74c58681dca6
Tony Arcieri
2021-04-17T19:15:59
password-hash: fix broken `b64` links (#594) This module no-longer exists as it was replaced by the `base64ct` crate
diff --git a/password-hash/src/output.rs b/password-hash/src/output.rs index f95e41b..9e715da 100644 --- a/password-hash/src/output.rs +++ b/password-hash/src/output.rs @@ -87,7 +87,7 @@ impl Output { MAX_LENGTH } - /// Maximum length of [`Output`] when encoded as [`b64`] string: 86-bytes + /// Ma...
3
8
8
d93daefb239d9386e3ef8fa8ec4d220ba599599d
Tony Arcieri
2021-04-17T19:04:20
password-hash: update docs for PHC string <version> field (#593) The upstream PR to add this to the spec was merged: https://github.com/P-H-C/phc-string-format/pull/4
diff --git a/password-hash/src/lib.rs b/password-hash/src/lib.rs index a09625a..e2dffe1 100644 --- a/password-hash/src/lib.rs +++ b/password-hash/src/lib.rs @@ -21,7 +21,7 @@ //! represents a parsed "PHC string" with the following format: //! //! ```text -//! $<id>[$<param>=<value>(,<param>=<value>)*][$<salt>[$<hash...
1
5
10
aa1eaf5b1e4950cbba2a3e0292de6b253e55005a
Tony Arcieri
2021-04-17T15:48:15
elliptic-curve: fix `SecretKey::from_bytes` slice parsing (#592) Closes #588 `SecretKey::from_bytes` was previously attempting to use `TryFrom<&[u8]>` on `GenericArray`, however `GenericArray` actually has a panicking `From` impl, and was therefore receiving panicking `TryFrom` via the blanket impl of `TryFrom` ...
diff --git a/aead/src/stream.rs b/aead/src/stream.rs index c61b76f..1709045 100644 --- a/aead/src/stream.rs +++ b/aead/src/stream.rs @@ -226,7 +226,7 @@ macro_rules! impl_stream_object { pub fn new(key: &Key<A>, nonce: &Nonce<A, S>) -> Self where A: NewAead, - S...
3
28
13
cbdbc921c5d46acf6e3c218e43871d4f9fd78051
Tony Arcieri
2021-03-22T14:58:10
elliptic-curve: bump `pkcs8` to v0.6 (#585)
diff --git a/Cargo.lock b/Cargo.lock index a323d7a..34db673 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -118,9 +118,9 @@ dependencies = [ [[package]] name = "const-oid" -version = "0.4.3" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fb27bc55bac783b7cfd5eafba8a3e9...
5
17
17
2436453238c7ebf0e0cf727ef6602551ec9741c8
Tony Arcieri
2021-03-17T15:51:51
password-hash: bump base64ct to v1.0 (#579)
diff --git a/Cargo.lock b/Cargo.lock index a60ffc8..3db34ac 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -49,6 +49,12 @@ version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7b8a45dc8036c7e52889226a96edacd45831c0dbdb8b803a58b8e0e12613b1a6" +[[package]] +name = "base64ct" +ve...
2
10
4
3f45bf64850f8b94326c88a86b59e239d29634ef
Tony Arcieri
2021-03-05T15:37:36
digest: allow DynDigest usage without `alloc` enabled (#573) Moves `alloc`-based gating for `DynDigest` to just the methods that use `Box`, which enables usage of the trait in "heapless" environments. Closes #545
diff --git a/digest/src/digest.rs b/digest/src/digest.rs index 283245c..7c277c9 100644 --- a/digest/src/digest.rs +++ b/digest/src/digest.rs @@ -4,8 +4,10 @@ use generic_array::{ArrayLength, GenericArray}; /// The `Digest` trait specifies an interface common for digest functions. /// -/// It's a convenience wrapper...
3
30
10
f6a4c5932aac8f52f400be406d473833b51321bb
David Drysdale
2021-02-28T17:19:40
crypto-mac: add new_trunc_test macro (#568)
diff --git a/crypto-mac/src/dev.rs b/crypto-mac/src/dev.rs index 16ed20d..1c397e6 100644 --- a/crypto-mac/src/dev.rs +++ b/crypto-mac/src/dev.rs @@ -55,6 +55,66 @@ macro_rules! new_test { }; } +/// Define test that allows for truncated tag. +#[macro_export] +#[cfg_attr(docsrs, doc(cfg(feature = "dev")))] +macro...
1
60
0
134ca6bf0ea1c09dfbb8356f85d90e8325179731
rvolgers
2021-02-26T20:37:37
Implement one() for mock scalar (#566) Co-authored-by: Ronald Volgers <rvolgers@users.noreply.github.com>
diff --git a/elliptic-curve/src/dev.rs b/elliptic-curve/src/dev.rs index 97a7348..252c140 100644 --- a/elliptic-curve/src/dev.rs +++ b/elliptic-curve/src/dev.rs @@ -99,7 +99,7 @@ impl Field for Scalar { } fn one() -> Self { - unimplemented!(); + Self([1, 0, 0, 0]) } fn is_zero(&sel...
1
1
1
a5a1302f7e9dea048d69403a93ae368f13e04e6a
rvolgers
2021-02-26T15:44:56
Implement {to,char}_le_bits for MockCurve (#565) * Implement {to,char}_le_bits for MockCurve * rustfmt Co-authored-by: Ronald Volgers <rvolgers@users.noreply.github.com>
diff --git a/elliptic-curve/src/dev.rs b/elliptic-curve/src/dev.rs index 2d1f942..97a7348 100644 --- a/elliptic-curve/src/dev.rs +++ b/elliptic-curve/src/dev.rs @@ -125,6 +125,26 @@ impl Field for Scalar { } } +#[cfg(target_pointer_width = "64")] +fn pack_bits(native: U256) -> ScalarBits<MockCurve> { + nativ...
1
22
2
0b458af31a568cb7a6285c1a47b079edf631381d
Tony Arcieri
2021-02-24T20:29:54
elliptic-curve: use string-based OID constants (#561) Uses the new const-friendly OID string parser added in: https://github.com/RustCrypto/utils/pull/312
diff --git a/Cargo.lock b/Cargo.lock index 3b1b1d2..751f4d7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -116,9 +116,9 @@ dependencies = [ [[package]] name = "const-oid" -version = "0.4.2" +version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a7e8dd5eab3bedc0f623f388e724ee...
3
4
4
22d456ba72e4a4162ca50df546f78e0f91e9fb77
Tony Arcieri
2021-02-22T20:44:05
Cargo.lock: bump dependencies (#559)
diff --git a/Cargo.lock b/Cargo.lock index 0ac70a8..5783c3f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -153,9 +153,9 @@ dependencies = [ [[package]] name = "der" -version = "0.2.7" +version = "0.2.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eeaef572ca60433089d994bca0bef5d728f3...
1
4
4
ff0b23ffe220a4580114a41bf3a4cda45cf921b7
Tony Arcieri
2021-02-20T16:51:14
Cargo.lock: bump dependencies (#558)
diff --git a/Cargo.lock b/Cargo.lock index de59774..0ac70a8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -116,9 +116,9 @@ dependencies = [ [[package]] name = "const-oid" -version = "0.4.1" +version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c5d82796b70971fbb603900a5edc79...
1
17
6
ab8229829832ad621543d72f2263383d8edaad79
Tony Arcieri
2021-02-19T04:21:13
elliptic-curve: bump `pkcs8` dependency to v0.5.1 (#556)
diff --git a/Cargo.lock b/Cargo.lock index 6377384..e7ce39b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -153,9 +153,9 @@ dependencies = [ [[package]] name = "der" -version = "0.2.4" +version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b70f809fb1678da4d5ea334095cbe8d6c64f...
4
9
9
cb47603c720478443103d9dcee0c6b1d2dcd5858
Tony Arcieri
2021-02-17T03:48:37
elliptic-curve: pin `funty` to `=1.1.0` (#550) Workaround for https://github.com/bitvecto-rs/bitvec/issues/105
diff --git a/Cargo.lock b/Cargo.lock index 8ee14fe..d93100a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -76,9 +76,9 @@ dependencies = [ [[package]] name = "block-buffer" -version = "0.10.0-pre.1" +version = "0.10.0-pre.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae646bb58db3c82...
2
15
13
9d4294a4288be1cb49c2487833f10f16cdb54db7
Tony Arcieri
2021-02-17T03:41:47
elliptic-curve: bump `pkcs8` dependency to v0.5.0 (#549)
diff --git a/Cargo.lock b/Cargo.lock index 65e4f6b..8ee14fe 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -319,12 +319,13 @@ dependencies = [ [[package]] name = "pkcs8" -version = "0.4.1" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5cf818666b471f4219a11aaca36c6126...
4
15
5
b921966c5e5d6f2ce503f71cca7f1e00d43384c5
Tony Arcieri
2021-02-11T19:15:27
elliptic-curve: add doc_cfg attrs for `jwk`-gated From impls (#544)
diff --git a/elliptic-curve/src/jwk.rs b/elliptic-curve/src/jwk.rs index 6d48a0c..d84667c 100644 --- a/elliptic-curve/src/jwk.rs +++ b/elliptic-curve/src/jwk.rs @@ -159,6 +159,7 @@ impl ToString for JwkEcKey { } } +#[cfg_attr(docsrs, doc(cfg(feature = "jwk")))] impl<C> TryFrom<JwkEcKey> for EncodedPoint<C> wh...
1
12
0
77f772a0b8db3f98fca719ca71a84af8df4d5c8d
Tony Arcieri
2021-02-11T14:43:46
elliptic-curve: flatten `weierstrass` module (#542) Flattens the traits previously in the `point` module into the `weierstrass` module.
diff --git a/elliptic-curve/src/public_key.rs b/elliptic-curve/src/public_key.rs index ddf13c9..0fce6e2 100644 --- a/elliptic-curve/src/public_key.rs +++ b/elliptic-curve/src/public_key.rs @@ -6,7 +6,7 @@ use crate::{ sec1::{ EncodedPoint, FromEncodedPoint, ToEncodedPoint, UncompressedPointSize, UntaggedP...
4
22
26
938fc4ccab00adead8f37bb667f41dc48eb47863
Tony Arcieri
2021-02-11T13:51:12
elliptic-curve: remove BitView re-export (#540) Removes the re-export of `ff::BitView`, as the `ff` crate itself is already re-exported, so it's available as `elliptic_curve::ff::BitView`. Note that this is technically a breaking change, however the plan is to release a v0.9.1 and yank the v0.9.0 release. This is...
diff --git a/elliptic-curve/src/lib.rs b/elliptic-curve/src/lib.rs index 04b26ee..3f8859c 100644 --- a/elliptic-curve/src/lib.rs +++ b/elliptic-curve/src/lib.rs @@ -65,7 +65,7 @@ pub use { public_key::PublicKey, scalar::{NonZeroScalar, Scalar, ScalarBits}, }, - ff::{self, BitView, Field}, + ...
1
1
1
ccb11bb4dde710dd4a25408c1ee61bb8f17fab8e
Tony Arcieri
2021-02-11T13:36:38
elliptic-curve: documentation improvements (#539) Adds more rustdoc to the `JwkEcKey` type.
diff --git a/elliptic-curve/src/error.rs b/elliptic-curve/src/error.rs index 35d7f66..bac007a 100644 --- a/elliptic-curve/src/error.rs +++ b/elliptic-curve/src/error.rs @@ -2,10 +2,10 @@ use core::fmt::{self, Display}; -/// Result type +/// Result type. pub type Result<T> = core::result::Result<T, Error>; -/// ...
2
9
5
c577e14f887a0f984c6f403617aa02e893536704
Tony Arcieri
2021-02-10T18:01:27
elliptic-curve: add `Result` alias (#534) As this crate has only one (opaque/unit) `Error` type, adds a `Result` type alias for simplifying errors returned using the `Error` type.
diff --git a/elliptic-curve/src/dev.rs b/elliptic-curve/src/dev.rs index be8cec3..741b4fd 100644 --- a/elliptic-curve/src/dev.rs +++ b/elliptic-curve/src/dev.rs @@ -3,7 +3,7 @@ use crate::{ consts::U32, - error::Error, + error::{Error, Result}, ff::{Field, PrimeField}, group, rand_core::Rng...
8
29
29
6b7e4d6ef2815ee33b6853adeb91d448c7dea4d8
Tony Arcieri
2021-02-10T17:57:07
elliptic-curve: add `dev` support for moving FromDigest to `ecdsa` (#533) Adds support needed to move the `FromDigest` trait to the `ecdsa` crate, specifically the following: - Make `MODULUS` public - Add a `TryFrom` impl to instantiate a `Scalar` from limbs
diff --git a/elliptic-curve/src/dev.rs b/elliptic-curve/src/dev.rs index 8899e60..be8cec3 100644 --- a/elliptic-curve/src/dev.rs +++ b/elliptic-curve/src/dev.rs @@ -3,6 +3,7 @@ use crate::{ consts::U32, + error::Error, ff::{Field, PrimeField}, group, rand_core::RngCore, @@ -15,7 +16,7 @@ use c...
1
13
3
643673d37f6ae65f14adca723d0c757165703656
Tony Arcieri
2021-02-10T16:59:31
elliptic-curve: remove FromDigest trait (#532) As discussed in #481, this removes the `FromDigest` trait, and with it any dependency on the `digest` crate (at least for now). The reasoning is `FromDigest` in its current form exists to solve a single concern: hash-to-scalar for the specific purposes of ECDSA, whic...
diff --git a/Cargo.lock b/Cargo.lock index 319bbc0..e9fe3ed 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -183,7 +183,6 @@ name = "elliptic-curve" version = "0.9.0-pre" dependencies = [ "base64ct", - "digest 0.9.0", "ff", "generic-array 0.14.4", "group", diff --git a/elliptic-curve/Cargo.toml b/elliptic-curve/C...
4
3
73
04fd3881ae9ac9a606d81e7bf8f0a67bf72e9539
Austin Bonander
2021-02-10T03:36:22
password-hash: add docs.rs metadata to Cargo.toml (#531) Based on this `#[cfg_attr]` it looks like this was the intention but the required lines in Cargo.toml were omitted: https://github.com/RustCrypto/traits/blob/073edacf50e04c257053b6c2ef2fea8276a241e1/password-hash/src/salt.rs#L185
diff --git a/password-hash/Cargo.toml b/password-hash/Cargo.toml index cc506a6..e58e3b6 100644 --- a/password-hash/Cargo.toml +++ b/password-hash/Cargo.toml @@ -22,3 +22,7 @@ rand_core = { version = "0.6", optional = true, default-features = false } [features] alloc = ["base64ct/alloc"] std = ["alloc", "base64ct/std...
1
4
0
073edacf50e04c257053b6c2ef2fea8276a241e1
Артём Павлов [Artyom Pavlov]
2021-02-09T12:13:25
digest v0.10.0-pre.3
diff --git a/Cargo.lock b/Cargo.lock index 31bb355..319bbc0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -133,7 +133,7 @@ dependencies = [ "aead", "cipher", "crypto-mac", - "digest 0.10.0-pre.2", + "digest 0.10.0-pre.3", "elliptic-curve", "password-hash", "signature", @@ -171,7 +171,7 @@ dependencies = [ ...
2
3
3
5acb9f77e6fc6295ac09e9bcf2c3a1371ce69c29
Artyom Pavlov
2021-02-09T10:22:35
digest: variable output traits (#502)
diff --git a/digest/src/core_api.rs b/digest/src/core_api.rs index a26b006..e08a131 100644 --- a/digest/src/core_api.rs +++ b/digest/src/core_api.rs @@ -1,13 +1,21 @@ -use crate::{ExtendableOutput, FixedOutput, Reset, Update, XofReader}; -use block_buffer::BlockBuffer; +//! Low-level core API traits. +//! +//! Usage of...
7
498
200
ca44e25534cfacf95905b708080a7952edc8a811
Tony Arcieri
2021-02-05T22:32:08
cipher: fix error message for InvalidLength (#527)
diff --git a/cipher/src/errors.rs b/cipher/src/errors.rs index f527365..69235fc 100644 --- a/cipher/src/errors.rs +++ b/cipher/src/errors.rs @@ -22,7 +22,7 @@ pub struct InvalidLength; impl fmt::Display for InvalidLength { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> Result<(), fmt::Error> { - f.write_st...
1
1
1
53bd56bfc43d6f82a2c9a8b7618a3c0ff36e3ea4
Tony Arcieri
2021-02-04T18:12:55
aead: add STREAM diagram to rustdoc (#525)
diff --git a/aead/src/stream.rs b/aead/src/stream.rs index ae472b6..243e875 100644 --- a/aead/src/stream.rs +++ b/aead/src/stream.rs @@ -15,6 +15,19 @@ //! to meet the security definition of "nonce-based online authenticated //! encryption" (nOAE) as given in the aforementioned paper. //! +//! ## Diagram +//! +//! !...
1
13
0
9d47d3a099b5f7a8027dcd5d00744117057d5701
Tony Arcieri
2021-02-03T14:00:29
aead: bump `heapless` dependency to v0.6 (#522)
diff --git a/Cargo.lock b/Cargo.lock index 8e58f63..6a03dd3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -263,12 +263,12 @@ dependencies = [ [[package]] name = "heapless" -version = "0.5.6" +version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "74911a68a1658cfcfb61bc0ccfbd5...
2
4
4
80e5eb578bf5b500deb25b818a0e7ac5430d8a94
Tony Arcieri
2021-02-01T16:47:54
Bump `base64ct` dependency to v0.2 (#519)
diff --git a/Cargo.lock b/Cargo.lock index f869e78..ad0fe1b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -47,6 +47,12 @@ version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b245b005bb8924f38647aeb31388984784a139acbe7ac6d7435fb0a11c4c83d8" +[[package]] +name = "base64ct" +ve...
12
207
226
e29a8f56f681951435b9b03bf7ca1a569c846182
Tony Arcieri
2021-02-01T13:13:55
password-hash: add encoding support to PasswordHash (#518)
diff --git a/password-hash/src/lib.rs b/password-hash/src/lib.rs index 7e45d34..034e43d 100644 --- a/password-hash/src/lib.rs +++ b/password-hash/src/lib.rs @@ -249,6 +249,11 @@ pub struct PasswordHash<'a> { impl<'a> PasswordHash<'a> { /// Parse a password hash from a string in the PHC string format. pub fn ...
2
12
2
37d8c8613290d729ff80d05488c9002549ef9d40
Tony Arcieri
2021-02-01T02:40:14
password-hash: add basic encoding support (#515) Support for encoding `Output` using the following Base64 variants: - B64: for PHC hashes - bcrypt - `crypt(3)`: for SHA-crypt
diff --git a/Cargo.lock b/Cargo.lock index dd53b95..425c544 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -42,9 +42,9 @@ dependencies = [ [[package]] name = "base64ct" -version = "0.1.1" +version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e96c6b8c1cac2cfe84b4ea97794c43085...
5
118
9
2db9e3f5a91cce93ad34dd9ced687c0f2c999283
Tony Arcieri
2021-01-31T14:41:32
aead: use `new_from_slice` naming convention (#512) Following the convention introduced in #442, renames the `NewAead::new_varkey` method to `::new_from_slice`.
diff --git a/aead/src/lib.rs b/aead/src/lib.rs index 69afe87..5d4b5f7 100644 --- a/aead/src/lib.rs +++ b/aead/src/lib.rs @@ -82,10 +82,10 @@ pub trait NewAead { /// Create a new AEAD instance with the given key. fn new(key: &Key<Self>) -> Self; - /// Create new AEAD instance from key with variable size. ...
1
2
2
d50727b37da4af50a57dc4361ea42306a1a50070
Tony Arcieri
2021-01-30T14:16:37
aead: extract AeadCore trait (#508) Extracts a single trait for defining nonce, tag, and overhead sizes instead of repetitively defining those associated types on every other trait. This allows for fully generic `Nonce<A>` and `Tag<A>` type aliases.
diff --git a/aead/src/lib.rs b/aead/src/lib.rs index 2b5703d..14b78db 100644 --- a/aead/src/lib.rs +++ b/aead/src/lib.rs @@ -68,10 +68,10 @@ impl std::error::Error for Error {} pub type Key<A> = GenericArray<u8, <A as NewAead>::KeySize>; /// Nonce: single-use value for ensuring ciphertexts are unique -pub type Nonc...
2
56
96
24eaf21137e55249ec6d58fcfba207ed6232396f
Tony Arcieri
2021-01-30T01:34:25
password-hash: add "Supported Crates" section to rustdoc (#509)
diff --git a/password-hash/src/lib.rs b/password-hash/src/lib.rs index 0155cf6..43eb2c2 100644 --- a/password-hash/src/lib.rs +++ b/password-hash/src/lib.rs @@ -6,8 +6,14 @@ //! (a well-defined subset of the [Modular Crypt Format a.k.a. MCF][MCF]) which //! works in conjunction with the traits this crate defines. //...
1
10
1
1b5396501de16fa44477994252bb49c998f4db49
Tony Arcieri
2021-01-29T23:05:59
password-hash: fix encoding test (#506) It was gated under a removed cargo feature
diff --git a/password-hash/tests/encoding.rs b/password-hash/tests/encoding.rs index 44a3c07..1071360 100644 --- a/password-hash/tests/encoding.rs +++ b/password-hash/tests/encoding.rs @@ -4,15 +4,11 @@ //! of the string encoding, and ensures password hashes round trip under each //! of the conditions. -#![cfg(feat...
1
36
33
2927b40ef3ac3b6985466f491760159dde2a1550
Artyom Pavlov
2021-01-28T21:01:21
digest: fix test macro (#480)
diff --git a/Cargo.lock b/Cargo.lock index 7f6cd4f..e4e8e55 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -75,9 +75,9 @@ dependencies = [ [[package]] name = "block-buffer" -version = "0.10.0-pre" +version = "0.10.0-pre.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a5ae77a4961d75e3...
5
14
21
936513dd9ea1903c3047dae0f092ae8243bae73f
Tony Arcieri
2021-01-28T19:40:06
password-hash: add HasherError::Version (#496) Add an error variant for reporting invalid versions
diff --git a/password-hash/src/errors.rs b/password-hash/src/errors.rs index 5990354..b75c761 100644 --- a/password-hash/src/errors.rs +++ b/password-hash/src/errors.rs @@ -77,6 +77,9 @@ pub enum HasherError { /// Invalid password. Password, + + /// Invalid algorithm version. + Version, } impl fmt...
1
4
0
d49ca56e2838179ef43124e7f50425530f04d24e
Tony Arcieri
2021-01-28T19:24:45
password-hash: add "simple" APIs; parameterize version (#495) Adds a "simple" API which requires only a password and salt string as inputs, using default algorithm, version, and parameters. Also passes through version field, which is needed to implement Argon2.
diff --git a/password-hash/src/lib.rs b/password-hash/src/lib.rs index 10ce469..24f3708 100644 --- a/password-hash/src/lib.rs +++ b/password-hash/src/lib.rs @@ -77,6 +77,24 @@ pub trait PasswordHasher { + for<'a> TryFrom<&'a ParamsString, Error = HasherError> + for<'a> TryInto<ParamsString, Error = Ha...
2
28
9
0da78eabf8edeca29ca6ee433274b05ec9356ad6
Tony Arcieri
2021-01-26T20:53:05
Bump `pkcs8` crate dependency to v0.4 (#493)
diff --git a/Cargo.lock b/Cargo.lock index 931ffef..7105628 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -40,11 +40,6 @@ dependencies = [ "syn", ] -[[package]] -name = "base64ct" -version = "0.0.0" -source = "git+https://github.com/RustCrypto/utils.git#0fe3e15b868778c92959f3fa03b62b47b6842f60" - [[package]] name ...
3
11
16
465ddb25c009e50f083a19dd4d04c441229490b3
Tony Arcieri
2021-01-26T19:51:00
Use `base64ct` v0.1.0 release (#492) Includes Base64url support (needed by `elliptic-curve` for JWK)
diff --git a/Cargo.lock b/Cargo.lock index 47e14af..931ffef 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -45,6 +45,12 @@ name = "base64ct" version = "0.0.0" source = "git+https://github.com/RustCrypto/utils.git#0fe3e15b868778c92959f3fa03b62b47b6842f60" +[[package]] +name = "base64ct" +version = "0.1.0" +source = "re...
10
42
65
b03736b733bb22b77b1650346eaadbe6e71bfe32
Tony Arcieri
2021-01-22T20:46:37
Bump `base64ct` and `der` dependencies (#488)
diff --git a/Cargo.lock b/Cargo.lock index b80473c..86c7f52 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -41,15 +41,9 @@ dependencies = [ ] [[package]] -name = "b64ct" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "524df4b3f9e9925f37c0d9beec6fbc2dac691b188f3f331ab12...
6
22
27
005182ecb896937ba057a0fd6e7102b470792530
Tony Arcieri
2021-01-22T02:10:06
elliptic-curve: leverage `der` crate's uint support (#486) Added in recent prereleases
diff --git a/Cargo.lock b/Cargo.lock index 5127f00..b80473c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -46,6 +46,11 @@ version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "524df4b3f9e9925f37c0d9beec6fbc2dac691b188f3f331ab12c5587ebe6766e" +[[package]] +name = "b64ct" +versi...
4
19
26
bb2c4f0b1baec38a03032f0d82239668ce393a6e
Tony Arcieri
2021-01-21T23:35:58
elliptic-curve: add sec1::ValidatePublicKey trait (#485) Adds a trait for validating that a given encoded point is correct for a given secret value. This allows the PKCS#8 and JWK key format parsers to validate that the public key contained in a given keypair matches the corresponding private key.
diff --git a/elliptic-curve/Cargo.toml b/elliptic-curve/Cargo.toml index 730f2b5..a47bdf9 100644 --- a/elliptic-curve/Cargo.toml +++ b/elliptic-curve/Cargo.toml @@ -19,6 +19,7 @@ b64ct = { version = "0.2", optional = true, default-features = false } digest = { version = "0.9", optional = true } ff = { version = "0.9"...
7
176
73
795c9a6eea641adaa35ea0d5c9dd0e0ae9aa8c9e
Tony Arcieri
2021-01-21T22:00:43
elliptic-curve: remove direct `bitvec` dependency (#484) Now that zkcrypto/ff#40 is merged, the `ff` crate re-exports the types from `bitvec` that we previously needed to import directly. This means that `elliptic-curve` no-longer needs to depend on the `bitvec` crate directly, but instead we can use it only tran...
diff --git a/Cargo.lock b/Cargo.lock index 209ab33..5127f00 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -179,7 +179,6 @@ name = "elliptic-curve" version = "0.9.0-pre" dependencies = [ "b64ct", - "bitvec", "digest 0.9.0", "ff", "generic-array 0.14.4", diff --git a/elliptic-curve/Cargo.toml b/elliptic-curve/Car...
3
3
6
1920c9b278433a1e04e836f02aeb8fb0c0f796ba
Tony Arcieri
2021-01-20T02:01:06
password-hash: bump `b64ct` to v0.2 (#482)
diff --git a/Cargo.lock b/Cargo.lock index 95cf0a1..5cc7e44 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -41,9 +41,9 @@ dependencies = [ [[package]] name = "b64ct" -version = "0.1.0" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a293adc36d315fd3f03a3c4a5594b0a30be4...
3
15
3
813dcae7c4d1f5f4db019edbc50bce91213b072a
Artyom Pavlov
2021-01-18T16:21:42
digest: v0.10.0 improvements (#479)
diff --git a/Cargo.lock b/Cargo.lock index baa7217..95cf0a1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -77,6 +77,16 @@ name = "block-buffer" version = "0.10.0-pre" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5a5ae77a4961d75e3e4505bbe155705bda23ff5948209c8face08f75c2cd52a0" +dependen...
4
71
27
8c0ead96042eda8dd3031ebb7224965163d0e0f3
Tony Arcieri
2021-01-16T15:47:23
password-hash: ParamsString refactor (#477) Replaces a structured type with a builder for params strings which can also parse the in-place via an iterator. The previous implementation had a size of 320(!) bytes despite the fact all of the string data was borrowed. It's considerably more efficient to have a buffe...
diff --git a/password-hash/src/errors.rs b/password-hash/src/errors.rs index dddc96e..993b928 100644 --- a/password-hash/src/errors.rs +++ b/password-hash/src/errors.rs @@ -69,7 +69,7 @@ pub enum HasherError { Output(OutputError), /// Invalid parameter. - Param, + Params(ParamsError), /// Parse...
8
314
333
d26072e596652c4b1f82dd8f07f4225a07b745c7
Tony Arcieri
2021-01-15T19:05:40
password-hash: add associated Params type to PasswordHasher (#476) Adds an associated type for algorithm parameters, then handles automatically converting to them when using higher-level APIs.
diff --git a/password-hash/src/lib.rs b/password-hash/src/lib.rs index d786137..be5b70a 100644 --- a/password-hash/src/lib.rs +++ b/password-hash/src/lib.rs @@ -41,35 +41,41 @@ extern crate alloc; #[cfg(feature = "std")] extern crate std; -use core::{ - convert::{TryFrom, TryInto}, - fmt, -}; +pub mod errors;...
4
108
62
ba9272e1f353296da4fdb14e24a5e85580f61a34
Tony Arcieri
2021-01-13T15:48:15
elliptic-curve: simplify ECDH trait bounds (#475) Closes #417 Removes all SEC1 encoding-related concerns from the ECDH API, which are a legacy from when there wasn't a `PublicKey` type. Replaces them with a `SharedSecret<C>: From<&AffinePoint<C>>` bound which is intended to be satisfied by a curve-specific con...
diff --git a/elliptic-curve/src/ecdh.rs b/elliptic-curve/src/ecdh.rs index 248015f..ca54775 100644 --- a/elliptic-curve/src/ecdh.rs +++ b/elliptic-curve/src/ecdh.rs @@ -27,16 +27,11 @@ //! [SIGMA]: https://webee.technion.ac.il/~hugo/sigma-pdf.pdf use crate::{ - consts::U1, - public_key::PublicKey, - scalar...
1
32
60
450d3de854f1177d41fc2f0c1f0a24e16726cad1
Tony Arcieri
2021-01-12T17:50:44
password-hash: use `b64ct` crate (#474) This crate is an extraction of the previous `b64` module into its own crate for reusability: https://github.com/RustCrypto/utils/pull/200
diff --git a/Cargo.lock b/Cargo.lock index 01c40ce..14c302b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -39,6 +39,12 @@ dependencies = [ "syn", ] +[[package]] +name = "b64ct" +version = "0.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a293adc36d315fd3f03a3c4a5594b0a30be4678cba...
7
28
372
4cea65187144438e616f42e00d86ad8550d66280
Tony Arcieri
2021-01-12T01:21:44
password-hash: add lifetime to McfHasher::upgrade_mcf_hash (#473) Allows the returned `PasswordHash<'a>` to reference data from the original MCF password hash.
diff --git a/password-hash/src/lib.rs b/password-hash/src/lib.rs index 2c3052e..77836df 100644 --- a/password-hash/src/lib.rs +++ b/password-hash/src/lib.rs @@ -117,7 +117,7 @@ pub trait McfHasher { /// /// MCF hashes are otherwise largely unstructured and parsed according to /// algorithm-specific rules...
1
1
1
a9efe295fa96eebe56f64c65070adcfe55973e44
Tony Arcieri
2021-01-12T01:02:12
password-hash: reorder PasswordHasher::hash_password args (#472) Makes `password` the first argument, and have the others follow the order they appear in a password hash.
diff --git a/password-hash/src/lib.rs b/password-hash/src/lib.rs index edb0534..2c3052e 100644 --- a/password-hash/src/lib.rs +++ b/password-hash/src/lib.rs @@ -78,10 +78,10 @@ pub trait PasswordHasher { /// parameters for a given algorithm. fn hash_password<'a>( &self, - algorithm: Option<Ide...
2
6
6
6a32b15b062089595befb87aa9941b972075686a
Tony Arcieri
2021-01-12T00:55:11
password-hash: have McfHasher::upgrade_mcf_hash take &self (#471) For consistency
diff --git a/password-hash/src/lib.rs b/password-hash/src/lib.rs index c2891d1..edb0534 100644 --- a/password-hash/src/lib.rs +++ b/password-hash/src/lib.rs @@ -117,14 +117,14 @@ pub trait McfHasher { /// /// MCF hashes are otherwise largely unstructured and parsed according to /// algorithm-specific rul...
1
2
2
526494e147639d3b568bc489f3081ad57522c636
Tony Arcieri
2021-01-11T23:46:23
password-hash: add HasherError::B64 variant (#470) Useful for reporting "B64" decoding errors, e.g. with salts
diff --git a/password-hash/src/errors.rs b/password-hash/src/errors.rs index fc05258..4cccfe7 100644 --- a/password-hash/src/errors.rs +++ b/password-hash/src/errors.rs @@ -86,6 +86,9 @@ pub enum HasherError { /// Unsupported algorithm. Algorithm, + /// "B64" encoding error. + B64(B64Error), + //...
1
10
0
6eac8605ae0276da26ac326df9e59a2a544d5ee2
Tony Arcieri
2021-01-11T23:05:51
password-hash: remove `Deref` impl on `Output` (#469) The `Output` type now has some inherent methods, at which point a `Deref` impl generally stops making sense. This commit replaces it with an `as_bytes()` inherent method, as well as the previously existing `AsRef<[u8]>` impl.
diff --git a/password-hash/src/output.rs b/password-hash/src/output.rs index d6cd7bb..2acc7a1 100644 --- a/password-hash/src/output.rs +++ b/password-hash/src/output.rs @@ -1,7 +1,7 @@ //! Outputs from password hashing functions. use crate::{b64, errors::OutputError}; -use core::{cmp::PartialEq, convert::TryFrom, f...
1
14
10
c2e7ffa744b3f55a9dd1d928646b3cf94b486366
Tony Arcieri
2021-01-11T19:57:24
password-hash: add `Output::init_with` method (#468) Handles checking the output length against the allowed min/max lengths as well as allocating and slicing the array which `Output` wraps.
diff --git a/password-hash/src/output.rs b/password-hash/src/output.rs index 3199f76..d6cd7bb 100644 --- a/password-hash/src/output.rs +++ b/password-hash/src/output.rs @@ -92,20 +92,35 @@ impl Output { /// Create a [`Output`] from the given byte slice, validating it according /// to [`Output::min_len`] and [...
1
19
4
c6d8f09c4d6ac7fbe751bbfde8073cc86f87a87d
Tony Arcieri
2021-01-11T18:53:29
password-hash: add HasherError::Parse variant (#467)
diff --git a/password-hash/src/errors.rs b/password-hash/src/errors.rs index 2ca30f4..fc05258 100644 --- a/password-hash/src/errors.rs +++ b/password-hash/src/errors.rs @@ -95,6 +95,9 @@ pub enum HasherError { /// Invalid parameter. Param, + /// Parse error. + Parse(ParseError), + /// Invalid pas...
1
10
0
22a86e40d828c937a1d51cad5f6dc8fc4de332d0
Tony Arcieri
2021-01-11T17:49:19
password-hash: remove negative decimal support (#466) Changes the `Decimal` type alias from `i32` to `u32`. If a particular algorithm actually needs to parse a negative value, it's still possible to parse it directly from a `ValueStr` (which this commit notes in the documentation).
diff --git a/password-hash/src/params.rs b/password-hash/src/params.rs index bdb400f..34b5f86 100644 --- a/password-hash/src/params.rs +++ b/password-hash/src/params.rs @@ -235,9 +235,9 @@ mod tests { #[test] fn add_chain() { let params = Params::new() - .add(Ident::new("a"), 1i32.into()) ...
3
38
45
6589fa3db21b51a25a0e59eb47f78d34dbe9c601
Tony Arcieri
2021-01-11T17:28:52
password-hash: rename `PhfError` => `HasherError` (#465) The previous name is a holdover from the old trait name (`PasswordHashingFunction`)
diff --git a/password-hash/src/errors.rs b/password-hash/src/errors.rs index 8552fd5..2ca30f4 100644 --- a/password-hash/src/errors.rs +++ b/password-hash/src/errors.rs @@ -80,6 +80,46 @@ impl From<ParseError> for HashError { #[cfg(feature = "std")] impl std::error::Error for HashError {} +/// Errors generating pas...
3
49
49
20ff729af0f1dcd9070b8c6a16e43627ab971dc8
Tony Arcieri
2021-01-11T14:18:52
elliptic-curve: bump `hex-literal` to v0.3 (#464)
diff --git a/Cargo.lock b/Cargo.lock index 99a335d..01c40ce 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -162,7 +162,7 @@ dependencies = [ "ff", "generic-array 0.14.4", "group", - "hex-literal", + "hex-literal 0.3.1", "pkcs8", "rand_core", "subtle", @@ -256,6 +256,12 @@ dependencies = [ "proc-macro-hack", ...
2
9
3
b2e9bfb9dd2ba3d787ee0a2fe845b61c17a74236
Tony Arcieri
2021-01-11T14:09:58
elliptic-curve: bump pkcs8 to v0.4.0-pre (#463) This prerelease includes this change which handles decoding/encoding the leading octet of ASN.1 BIT STRINGs: https://github.com/RustCrypto/utils/pull/193
diff --git a/Cargo.lock b/Cargo.lock index e359f1e..99a335d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -129,9 +129,9 @@ dependencies = [ [[package]] name = "der" -version = "0.1.0" +version = "0.2.0-pre" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "51f59c66c30bb7445c8320a5f9233e43...
4
17
48
ab5638ff4051ecbdf448988997a7328a496d2baf
Tony Arcieri
2021-01-08T15:33:26
password-hash: Modular Crypt Format (MCF) support (#462) Implements a minimal trait for upgrading raw MCF hash strings to `PasswordHash` (PHC string format). Also provides a default `verify_mcf_hash` method which computes a `PasswordHash` on the fly and verifies it using the `PasswordHasher` trait.
diff --git a/password-hash/src/lib.rs b/password-hash/src/lib.rs index 07c34a1..1ae2974 100644 --- a/password-hash/src/lib.rs +++ b/password-hash/src/lib.rs @@ -1,7 +1,8 @@ //! This crate defines a set of traits which describe the functionality of //! [password hashing algorithms]. //! -//! Provides a `no_std`-frien...
1
28
2
5d1ee6ba3983162b3fbde30aee8c3ee3703c041c
Tony Arcieri
2021-01-06T16:56:57
async-signature+crypto: bump `signature` requirement to v1.3.0 (#461)
diff --git a/crypto/Cargo.toml b/crypto/Cargo.toml index 4143609..26c5c93 100644 --- a/crypto/Cargo.toml +++ b/crypto/Cargo.toml @@ -17,7 +17,7 @@ cipher = { version = "=0.3.0-pre.4", optional = true, path = "../cipher" } digest = { version = "0.9", optional = true, path = "../digest" } elliptic-curve = { version = "...
2
2
2
89549f28c7235c0199819506798a782cd9b80903
Tony Arcieri
2021-01-06T16:24:22
signature/derive: fix rustdoc links (#458) Links were previously busted. Not sure if there's better way to link to types in an external crate which will render correctly on https://docs.rs but this should at least fix the immediate problem.
diff --git a/signature/derive/src/lib.rs b/signature/derive/src/lib.rs index 1059318..be06742 100644 --- a/signature/derive/src/lib.rs +++ b/signature/derive/src/lib.rs @@ -45,6 +45,9 @@ decl_derive! { /// complete signature algorithm implementation. /// /// [`Digest`]: https://docs.rs/digest/latest/dige...
1
6
0
33c8a5347bc4b2e6740eb8d9f64b86f60a91c48c
Tony Arcieri
2021-01-06T16:09:07
signature: bump `rand_core` dependency to v0.6 (#457)
diff --git a/Cargo.lock b/Cargo.lock index ce6f956..7c6df62 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -164,7 +164,7 @@ dependencies = [ "group", "hex-literal", "pkcs8", - "rand_core 0.6.1", + "rand_core", "subtle", "zeroize", ] @@ -176,7 +176,7 @@ source = "registry+https://github.com/rust-lang/crates.io-i...
2
5
11
fad96a6cd3c9731d5edcbf9c87348e70475ed142
Tony Arcieri
2021-01-06T15:57:12
elliptic-curve: bump `ff` and `group` crates to v0.9.0 (#452) Also bumps `rand_core` to v0.6 (for the `elliptic-curve` crate only). This is a breaking change, so the `elliptic-curve` crate version is also bumped to v0.9.0-pre.
diff --git a/Cargo.lock b/Cargo.lock index 30bc269..ce6f956 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -41,12 +41,13 @@ dependencies = [ [[package]] name = "bitvec" -version = "0.18.3" +version = "0.20.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "64143ed23541fe0c6e2235905eaae37...
11
41
75
80b4bcb6bffd40e8b13515e010621992fb291330
Tony Arcieri
2021-01-06T05:48:23
password-hash: add `version` field (#456) Support for PHC string variant with an additional version field: https://github.com/P-H-C/phc-string-format/pull/4 This is used by Argon2.
diff --git a/password-hash/src/lib.rs b/password-hash/src/lib.rs index ef3f589..07c34a1 100644 --- a/password-hash/src/lib.rs +++ b/password-hash/src/lib.rs @@ -141,6 +141,18 @@ pub struct PasswordHash<'a> { /// symbolic name for the function. pub algorithm: Ident<'a>, + /// Optional version field. + ...
3
62
30
0c8f887baaefcbf972f2a4e7880de0e1dd6c3dbb
Tony Arcieri
2021-01-06T05:20:45
password-hash: simplify module structure (#454)
diff --git a/password-hash/src/lib.rs b/password-hash/src/lib.rs index 6aaf8c6..ef3f589 100644 --- a/password-hash/src/lib.rs +++ b/password-hash/src/lib.rs @@ -41,13 +41,10 @@ extern crate alloc; #[cfg(feature = "std")] extern crate std; -pub mod b64; -pub mod errors; -pub mod params; - -mod ident; -mod output; -m...
4
19
20
c541031fd892a1d115b43a0609f0b2f4dd53737b
Tony Arcieri
2021-01-06T03:23:06
password-hash: simplify error types (#453) Consolidates ParseError and SaltError into a single enum
diff --git a/password-hash/src/errors.rs b/password-hash/src/errors.rs index 38d4564..8552fd5 100644 --- a/password-hash/src/errors.rs +++ b/password-hash/src/errors.rs @@ -44,9 +44,6 @@ pub enum HashError { /// Parse error. Parse(ParseError), - - /// Salt error. - Salt(SaltError), } impl fmt::Dis...
6
65
161
79668938724515a84a85eef14c59df87c3bddd89
Tony Arcieri
2021-01-05T15:28:25
password-hash: rustdoc fixups (#449) Fixes some dangling rustdoc links left over from refactoring.
diff --git a/password-hash/src/errors.rs b/password-hash/src/errors.rs index 0610b2b..e917f3b 100644 --- a/password-hash/src/errors.rs +++ b/password-hash/src/errors.rs @@ -175,7 +175,7 @@ impl fmt::Display for ParseError { #[cfg(feature = "std")] impl std::error::Error for ParseError {} -/// Errors generating pass...
4
9
8
20f6d24d0ff87f167cbfccd794388b4f6276dd66
Tony Arcieri
2021-01-05T14:49:53
aead: add `alloc`-based APIs to `stream` module (#447) Adds a corresponding set of allocating APIs to `StreamPrimitive`, `Decryptor`, and `Encryptor`.
diff --git a/aead/src/stream.rs b/aead/src/stream.rs index 3e220b6..554284b 100644 --- a/aead/src/stream.rs +++ b/aead/src/stream.rs @@ -24,6 +24,9 @@ use generic_array::{ ArrayLength, GenericArray, }; +#[cfg(feature = "alloc")] +use {crate::Payload, alloc::vec::Vec}; + /// Nonce as used by a given AEAD constr...
1
90
6
e4b1c9f35709afa6bebc32bd05ce885bf9a9d1c1
Tony Arcieri
2021-01-03T16:31:51
aead: impl NewStream for StreamBE32/StreamLE31 (#445) Support for instantiating STREAM primitives
diff --git a/aead/src/stream.rs b/aead/src/stream.rs index d2ec4d4..3e220b6 100644 --- a/aead/src/stream.rs +++ b/aead/src/stream.rs @@ -277,6 +277,20 @@ where nonce: Nonce<A, Self>, } +impl<A> NewStream<A> for StreamBE32<A> +where + A: AeadInPlace, + A::NonceSize: Sub<U5>, + <<A as AeadInPlace>::Nonce...
1
28
0
2e9d89d009b448f51c003e286fdf1af0adb83931
Tony Arcieri
2020-12-30T16:16:31
cipher v0.3.0-pre.4 (#443)
diff --git a/Cargo.lock b/Cargo.lock index b30bd41..433b33c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -85,7 +85,7 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] name = "cipher" -version = "0.3.0-pre.3" +version = "0.3.0-pre.4" dependencies = [ "blobby 0.3.0", "ge...
4
4
4
9ecdcfc42bcc7dea78cd1273aebdf387b3378eb2
Tony Arcieri
2020-12-30T16:08:43
cipher + crypto-mac: use `new_from_slice(s)` naming convention (#442) Renames `new_var`(key) methods to use `new_from_slice(s)` as discussed earlier here: https://github.com/RustCrypto/traits/pull/435#discussion_r550227781
diff --git a/cipher/src/block.rs b/cipher/src/block.rs index 8643fca..d38da8f 100644 --- a/cipher/src/block.rs +++ b/cipher/src/block.rs @@ -34,7 +34,7 @@ pub trait NewBlockCipher: Sized { /// /// Default implementation will accept only keys with length equal to /// `KeySize`, but some ciphers can accept...
6
19
18
f40e69880966707cbea4d8cb804474a2ad67d9e9
Tony Arcieri
2020-12-30T14:50:00
cipher: block cipher trait blanket impls for refs (#441) Previously `cipher` contained blanket impls of block cipher traits for reference types, which was leveraged in e.g. `aes-gcm` and `aes-gcm-siv`. However, somewhere in the course of refactoring they were removed. This commit adds them back.
diff --git a/cipher/src/block.rs b/cipher/src/block.rs index 4e08dc2..8643fca 100644 --- a/cipher/src/block.rs +++ b/cipher/src/block.rs @@ -156,3 +156,44 @@ impl<Alg: BlockDecrypt> BlockDecryptMut for Alg { self.decrypt_block(block); } } + +// Impls of block cipher traits for reference types + +impl<Alg...
1
41
0
5aa64b2e6ef59106011fefd8138f3785947f207c
Tony Arcieri
2020-12-30T04:18:05
cipher v0.3.0-pre.3 (#440)
diff --git a/Cargo.lock b/Cargo.lock index 9be4836..b30bd41 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -85,7 +85,7 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] name = "cipher" -version = "0.3.0-pre.2" +version = "0.3.0-pre.3" dependencies = [ "blobby 0.3.0", "ge...
4
4
4
2f6287c288f22c477e3c881b3ff48a0fed06ad66
Tony Arcieri
2020-12-30T04:09:24
cipher: revert SeekNum::from_block_byte change (#439) This reverts the implementation of `SeekNum::from_block_byte` which was merged as part of #435. I'm not exactly sure what the issue is and it's somewhat difficult to debug in that it's code that involves both generics and macros causing an error as part of an...
diff --git a/cipher/src/stream.rs b/cipher/src/stream.rs index 843ff56..3bea728 100644 --- a/cipher/src/stream.rs +++ b/cipher/src/stream.rs @@ -114,17 +114,8 @@ macro_rules! impl_seek_num { impl SeekNum for $t { fn from_block_byte<T: TryInto<Self>>(block: T, byte: u8, bs: u8) -> Result<Se...
1
2
11
629d323d33b91ce952a195998de43090f12687ae
Tony Arcieri
2020-12-30T01:55:42
cipher v0.3.0-pre.2 (#438)
diff --git a/Cargo.lock b/Cargo.lock index bbe5421..9be4836 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -85,7 +85,7 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] name = "cipher" -version = "0.3.0-pre" +version = "0.3.0-pre.2" dependencies = [ "blobby 0.3.0", "gene...
4
4
4
d5d137d17ac51b0b31854b2693de6ec4ffc9fb8d
Tony Arcieri
2020-12-30T01:38:53
cipher: v0.3 changes (#435) - remove `SeekNum` impls for signed integers - fix block mode compilation bug - change `SeekNum` impls to fit with the new `BlockBuffer` - return `SeenNum` impl for `i32` - re-export `blobby` from root - reorganize modules Co-authored-by: Артём Павлов [Artyom Pavlov] <newpavlov@gmai...
diff --git a/cipher/src/block.rs b/cipher/src/block.rs index 16205ba..4e08dc2 100644 --- a/cipher/src/block.rs +++ b/cipher/src/block.rs @@ -9,21 +9,17 @@ //! [1]: https://en.wikipedia.org/wiki/Block_cipher //! [2]: https://en.wikipedia.org/wiki/Symmetric-key_algorithm -#[cfg(feature = "dev")] -#[cfg_attr(docsrs, d...
9
136
158
37ddc60b05afd86d4a2b01fd2723be1d7a54e343
Tony Arcieri
2020-12-22T14:55:09
elliptic-curve: impl `pkcs8::ToPublicKey` for `PublicKey` (#427) Adds support for serializing `PublicKey` as ASN.1 DER and PEM.
diff --git a/elliptic-curve/src/lib.rs b/elliptic-curve/src/lib.rs index 08fd5c5..f993810 100644 --- a/elliptic-curve/src/lib.rs +++ b/elliptic-curve/src/lib.rs @@ -139,4 +139,12 @@ pub trait FromDigest<C: Curve> { pub trait AlgorithmParameters: Curve { /// Object Identifier (OID) for this curve const OID: p...
3
73
25
6380870fe0f9b74ccf4ad8edee3540401cdbfdfa
Tony Arcieri
2020-12-22T05:25:11
elliptic-curve: bump `pkcs8` dependency to v0.3.3 (#425)
diff --git a/Cargo.lock b/Cargo.lock index 3a2eb25..e5dc631 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -94,7 +94,8 @@ dependencies = [ [[package]] name = "const-oid" version = "0.4.1" -source = "git+https://github.com/RustCrypto/utils.git#005b32230010de490fc75d6ca6e58dd8b0c90837" +source = "registry+https://github....
3
9
9
a499a3cc62be019878e79e307634381f68901219
Tony Arcieri
2020-12-22T04:54:41
elliptic-curve: PKCS#8 cleanups (#424)
diff --git a/elliptic-curve/src/secret_key.rs b/elliptic-curve/src/secret_key.rs index 2aa4e92..0225570 100644 --- a/elliptic-curve/src/secret_key.rs +++ b/elliptic-curve/src/secret_key.rs @@ -27,6 +27,9 @@ use crate::{ weierstrass, AffinePoint, ProjectiveArithmetic, ProjectivePoint, }; +#[cfg(all(docsrs, featu...
2
6
6
1ad0a7da6c8f301a20bf07b6f0336c3b6990279a
Tony Arcieri
2020-12-22T04:39:54
elliptic-curve: impl `pkcs8::ToPrivateKey` for `SecretKey` (#423) Adds support for serializing `SecretKey` as PKCS#8.
diff --git a/Cargo.lock b/Cargo.lock index f20e083..3a2eb25 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -94,7 +94,7 @@ dependencies = [ [[package]] name = "const-oid" version = "0.4.1" -source = "git+https://github.com/RustCrypto/utils.git#022007f591e92bfb14a16bd3192309d398d2f2f0" +source = "git+https://github.com/R...
6
221
114
0d2b2a053f371f822cf45f6a79a99f922dfff955
Tony Arcieri
2020-12-22T02:56:14
elliptic-curve: use `der` crate to parse `SecretKey` (#422) Replaces the previous handrolled ASN.1 DER parsing code with a parser based on the `der` crate.
diff --git a/Cargo.lock b/Cargo.lock index a9c7353..f20e083 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -93,9 +93,8 @@ dependencies = [ [[package]] name = "const-oid" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "069b46dab00267d018567b1154f38b706d6ed93c4915301a2fa...
4
83
50
f4321c76c0424b454fbf5bd9c407c7b2a0db9cda
Tony Arcieri
2020-12-22T00:36:20
elliptic-curve: regression test for PublicKey::from_encoded_point (#420) The invariant of `PublicKey` is that the inner affine point is *NOT* the identity, however there was a bug in the `FromEncodedPoint` implementation which was fixed in #416. However, at the time we couldn't add a regression test because there...
diff --git a/elliptic-curve/src/dev.rs b/elliptic-curve/src/dev.rs index cba84e2..a18d14f 100644 --- a/elliptic-curve/src/dev.rs +++ b/elliptic-curve/src/dev.rs @@ -8,6 +8,7 @@ use crate::{ group, rand_core::RngCore, scalar::ScalarBits, + sec1::{FromEncodedPoint, ToEncodedPoint}, subtle::{Choice,...
3
78
4
6d3a69e9952d4815e99e688cf7daeb1672207d3c
Tony Arcieri
2020-12-19T18:22:57
elliptic-curve: low-level ECDH API (#418) Adds an `elliptic_curve::ecdh::diffie_hellman()` function which operates on types which can be coerced to `NonZeroScalar` and `AffinePoint` for a particular elliptic curve, returning a `SharedSecret` This function is an extraction of and used to implement ECDHE. This f...
diff --git a/elliptic-curve/src/ecdh.rs b/elliptic-curve/src/ecdh.rs index c307d68..781ae68 100644 --- a/elliptic-curve/src/ecdh.rs +++ b/elliptic-curve/src/ecdh.rs @@ -1,24 +1,30 @@ -//! Elliptic Curve Diffie-Hellman (Ephemeral) Support. +//! Elliptic Curve Diffie-Hellman Support. //! //! This module contains a gene...
1
80
17
487430a1779dbfb0d4f8c37af97f084049045ad2
Michael Rosenberg
2020-12-18T19:15:34
Make PublicKey::from_encoded_point go through PublicKey::from_affine (#416)
diff --git a/elliptic-curve/src/public_key.rs b/elliptic-curve/src/public_key.rs index 45571a9..be2abe0 100644 --- a/elliptic-curve/src/public_key.rs +++ b/elliptic-curve/src/public_key.rs @@ -208,7 +208,8 @@ where { /// Initialize [`PublicKey`] from an [`EncodedPoint`] fn from_encoded_point(encoded_point: &...
1
2
1
8be528d93bf285c37c201705925743b98ceabaa8
Tony Arcieri
2020-12-17T05:30:18
elliptic-curve: fix build on nightly (#412)
diff --git a/elliptic-curve/src/public_key.rs b/elliptic-curve/src/public_key.rs index f610a24..45571a9 100644 --- a/elliptic-curve/src/public_key.rs +++ b/elliptic-curve/src/public_key.rs @@ -85,7 +85,7 @@ where pub fn from_secret_scalar(scalar: &NonZeroScalar<C>) -> Self { // `NonZeroScalar` ensures the...
2
2
2