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
e93dda2c74131f078a9b6e95dd9263433c93ef45
Arthur Gautier
2025-05-27T19:56:33
digest: alias core_api with a depreciation notice (#1861) Alternative to #1859
diff --git a/digest/src/lib.rs b/digest/src/lib.rs index 91ab8fb..31bb0f2 100644 --- a/digest/src/lib.rs +++ b/digest/src/lib.rs @@ -74,6 +74,13 @@ pub use crypto_common::{Output, OutputSizeUser, Reset, array, typenum, typenum:: pub use mac::{CtOutput, Mac, MacError, MacMarker}; pub use xof_fixed::XofFixedWrapper; ...
1
7
0
abab6dc5f800c85689f8f9a64d376b7561ab1558
Tony Arcieri
2025-05-27T19:50:13
elliptic-curve: apply digest API breaking changes (#1860) Alternative to #1859
diff --git a/Cargo.lock b/Cargo.lock index 54d058d..f11b4d8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -20,7 +20,7 @@ dependencies = [ "arrayvec", "blobby", "bytes", - "crypto-common 0.2.0-rc.2", + "crypto-common", "heapless", "inout", ] @@ -122,7 +122,7 @@ name = "cipher" version = "0.5.0-pre.8" dependen...
3
21
41
a9489959bccbfd4b39e7cc367095ace6f051c682
daxpedda
2025-05-23T12:23:19
Use pre-computation tables for `PublicKey::from_secret_scalar()` (#1856) Potentially use pre-computation tables for calculating the `PublicKey` from a `SecretKey`. Though AFAICS currently only `k256` uses pre-computation tables.
diff --git a/elliptic-curve/src/public_key.rs b/elliptic-curve/src/public_key.rs index cd0389c..40bc93a 100644 --- a/elliptic-curve/src/public_key.rs +++ b/elliptic-curve/src/public_key.rs @@ -109,7 +109,7 @@ where pub fn from_secret_scalar(scalar: &NonZeroScalar<C>) -> Self { // `NonZeroScalar` ensures t...
1
1
1
663b4450e69910c94ff09c627d3f0dee64169f9d
daxpedda
2025-05-22T19:23:58
Require `TryInto<Non/Identity/ZeroScalar>` (#1853) This PR adds the following requirements: - `CurveArithmetic::Scalar`: `TryInto<NonZeroScalar>` - `CurveArithmetic::ProjectivePoint`: `TryInto<NonIdentity<ProjectivePoint>>` - `CurveArithmetic::AffinePoint`: `TryInto<NonIdentity<AffinePoint>>` Companion PR to https:/...
diff --git a/elliptic-curve/src/arithmetic.rs b/elliptic-curve/src/arithmetic.rs index d0d17bc..6e18774 100644 --- a/elliptic-curve/src/arithmetic.rs +++ b/elliptic-curve/src/arithmetic.rs @@ -1,7 +1,7 @@ //! Elliptic curve arithmetic traits. use crate::{ - Curve, FieldBytes, NonZeroScalar, PrimeCurve, ScalarPri...
2
29
2
22ae23d4748e7b0e96f658fcbf4b2531c3d59fd7
daxpedda
2025-05-22T14:59:39
Implement `Mul<NonIdentity>` for `NonZeroScalar` (#1855) This implements `Mul<NonIdentity> for NonZeroScalar`. Analogous to #1854.
diff --git a/elliptic-curve/src/point/non_identity.rs b/elliptic-curve/src/point/non_identity.rs index 9dddba6..9121782 100644 --- a/elliptic-curve/src/point/non_identity.rs +++ b/elliptic-curve/src/point/non_identity.rs @@ -175,20 +175,32 @@ where } } -impl<C, P> Mul<&NonZeroScalar<C>> for &NonIdentity<P> +imp...
2
63
2
91d6acda098602f9026442bac7481f6e60db11a1
Tony Arcieri
2025-05-22T02:20:57
elliptic-curve: scalar `Mul` bounds (#1854) Adds bounds on `CurveArithmetic::Scalar` that it has a `Mul<P>` impl for both `AffinePoint` and `ProjectivePoint`
diff --git a/elliptic-curve/src/arithmetic.rs b/elliptic-curve/src/arithmetic.rs index e1cc299..d0d17bc 100644 --- a/elliptic-curve/src/arithmetic.rs +++ b/elliptic-curve/src/arithmetic.rs @@ -2,7 +2,7 @@ use crate::{ Curve, FieldBytes, NonZeroScalar, PrimeCurve, ScalarPrimitive, - ops::{Invert, LinearCombin...
2
37
1
d131d740cf047e27f6cfb6e21701b0adab83fb9f
daxpedda
2025-05-21T13:38:18
Implement `Mul<&NonZeroScalar>` for `NonIdentity` (#1852)
diff --git a/elliptic-curve/src/point/non_identity.rs b/elliptic-curve/src/point/non_identity.rs index c985ba7..9dddba6 100644 --- a/elliptic-curve/src/point/non_identity.rs +++ b/elliptic-curve/src/point/non_identity.rs @@ -163,6 +163,18 @@ where } } +impl<C, P> Mul<&NonZeroScalar<C>> for NonIdentity<P> +where...
1
12
0
2dcad3553c830b9bc7f4748a361914bb44d9539d
daxpedda
2025-05-19T17:03:38
Add `type ExpandMsg` to `VoprfParameters` (#1814) Main motivation was that `decaf448` (https://github.com/RustCrypto/elliptic-curves/pull/1121) requires `ExpandMsgXof` instead of `ExpandMsgXmd`. I was briefly tempted to add a `type Hash` to the `ExpandMsg` trait to be able to write `type ExpandMsg = ExpandMsg<Hash = ...
diff --git a/elliptic-curve/Cargo.toml b/elliptic-curve/Cargo.toml index 32c103e..f60db0e 100644 --- a/elliptic-curve/Cargo.toml +++ b/elliptic-curve/Cargo.toml @@ -69,7 +69,7 @@ jwk = ["dep:base64ct", "dep:serde_json", "alloc", "serde", "zeroize/alloc"] pkcs8 = ["dep:pkcs8", "sec1"] pem = ["dep:pem-rfc7468", "alloc"...
2
8
1
6c9bad3ed1086af153b86d389042f426d73c3ac0
daxpedda
2025-05-19T17:02:34
Require `From<NonZeroScalar<C>>` for `Scalar<C>` (#1847) This adds a new requirement to `CurveArithmetic::Scalar`: `From<NonZeroScalar<C>>`. Its currently a bit cumbersome to go through `Deref` or `AsRef` every time and then `Copy`. `Into` seems much more straightforward to me. Companion PR: https://github.com/RustC...
diff --git a/elliptic-curve/src/arithmetic.rs b/elliptic-curve/src/arithmetic.rs index ed9f221..e1cc299 100644 --- a/elliptic-curve/src/arithmetic.rs +++ b/elliptic-curve/src/arithmetic.rs @@ -1,7 +1,7 @@ //! Elliptic curve arithmetic traits. use crate::{ - Curve, FieldBytes, PrimeCurve, ScalarPrimitive, + Cu...
2
8
1
4b37715368ce485f3e99de134f10c75e00b999e9
daxpedda
2025-05-19T11:16:00
Use `Output = True` instead of `NonZero` (#1850) Bounds like `IsLess` aren't actually enforced unless the `IsLess::Output` is checked. This was done by adding `Le<...>: NonZero`. This PR simplifies this check by adding `IsLess<..., Output = True>`.
diff --git a/crypto-common/src/lib.rs b/crypto-common/src/lib.rs index 3e070ad..94b1115 100644 --- a/crypto-common/src/lib.rs +++ b/crypto-common/src/lib.rs @@ -79,17 +79,11 @@ pub trait BlockSizes: ArraySize + sealed::BlockSizes {} impl<T: ArraySize + sealed::BlockSizes> BlockSizes for T {} mod sealed { - use c...
4
28
32
26119c29126bc869bdee3208da87471031bab354
daxpedda
2025-05-17T17:04:42
elliptic-curve: require `From<NonIdentity>` for `Projective/AffinePoint` (#1849) Equivalent of #1847 for `Projective/AffinePoint`. Companion PR to https://github.com/RustCrypto/elliptic-curves/pull/1190.
diff --git a/elliptic-curve/src/arithmetic.rs b/elliptic-curve/src/arithmetic.rs index 86d0947..ed9f221 100644 --- a/elliptic-curve/src/arithmetic.rs +++ b/elliptic-curve/src/arithmetic.rs @@ -3,7 +3,7 @@ use crate::{ Curve, FieldBytes, PrimeCurve, ScalarPrimitive, ops::{Invert, LinearCombination, Reduce, Sh...
2
16
2
ae58a7766614dab71973fb3286754f782ed90820
daxpedda
2025-05-14T22:53:02
Implement `PartialEq + Eq` for `NonIdentity` and `NonZeroScalar` (#1834) This is done by the fact that the underlying types implement these traits already.
diff --git a/elliptic-curve/src/point/non_identity.rs b/elliptic-curve/src/point/non_identity.rs index 3068afa..c985ba7 100644 --- a/elliptic-curve/src/point/non_identity.rs +++ b/elliptic-curve/src/point/non_identity.rs @@ -18,7 +18,7 @@ use crate::{CurveArithmetic, NonZeroScalar, Scalar}; /// /// In the context of ...
2
12
1
73ffc4055c0d0b4ccfb0fecee8c7a217d0d53cec
Arthur Gautier
2025-05-13T22:05:58
chore(deps): bump `crypto-bigint` to `0.7.0-pre.3` (#1845)
diff --git a/Cargo.lock b/Cargo.lock index b2ad325..a11618c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -158,9 +158,9 @@ dependencies = [ [[package]] name = "crypto-bigint" -version = "0.7.0-pre.2" +version = "0.7.0-pre.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "87a5061ea0870b...
3
4
4
622b6c0341b2ba11040affdd4688ec98f9b3c552
Tony Arcieri
2025-05-01T04:04:08
Revert "Revert "Various fixes and improvements to hash2curve (#1813)"" This reverts commit 2ab0f99f7058f38a9f4740c33e9bfb9384996a2a. Reverting the revert now that we can pin to the hash with the revert
diff --git a/elliptic-curve/src/hash2curve/group_digest.rs b/elliptic-curve/src/hash2curve/group_digest.rs index 2a663a1..8fa27c4 100644 --- a/elliptic-curve/src/hash2curve/group_digest.rs +++ b/elliptic-curve/src/hash2curve/group_digest.rs @@ -3,6 +3,7 @@ use super::{ExpandMsg, FromOkm, MapToCurve, hash_to_field}; u...
5
102
50
2ab0f99f7058f38a9f4740c33e9bfb9384996a2a
Tony Arcieri
2025-05-01T04:01:18
Revert "Various fixes and improvements to hash2curve (#1813)" This reverts commit 5d3e03178b822f13e85ce46316e1f524ed7921c4. Temporarily reverting to unblock updating https://github.com/RustCrypto/elliptic-curves
diff --git a/elliptic-curve/src/hash2curve/group_digest.rs b/elliptic-curve/src/hash2curve/group_digest.rs index 8fa27c4..2a663a1 100644 --- a/elliptic-curve/src/hash2curve/group_digest.rs +++ b/elliptic-curve/src/hash2curve/group_digest.rs @@ -3,7 +3,6 @@ use super::{ExpandMsg, FromOkm, MapToCurve, hash_to_field}; u...
5
50
102
d676b98c5537e166f69e2ca7845e012f390ad34b
Tony Arcieri
2025-05-01T03:48:22
elliptic-curve: use `crypto_bigint::Invert` trait (#1839) Replaces `elliptic_curve::ops::Invert` which has an identical shape
diff --git a/Cargo.lock b/Cargo.lock index 2e81d88..6f01205 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -158,9 +158,9 @@ dependencies = [ [[package]] name = "crypto-bigint" -version = "0.7.0-pre.1" +version = "0.7.0-pre.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6957fb7344601c...
3
4
23
ddee7f8d6bf1559f1b000e82f7aed5235df951f9
Tony Arcieri
2025-04-30T18:48:42
elliptic-curve: remove `tap` hack (#1838) This is hopefully no longer relevant
diff --git a/Cargo.lock b/Cargo.lock index d62e0eb..2e81d88 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -243,7 +243,6 @@ dependencies = [ "sha2", "sha3", "subtle", - "tap", "zeroize", ] diff --git a/elliptic-curve/Cargo.toml b/elliptic-curve/Cargo.toml index 2e9efd2..c8eaf16 100644 --- a/elliptic-curve/Cargo...
2
1
3
beac4d7999a658fc59b1255b7480c27f4e2520ec
daxpedda
2025-04-30T13:43:13
Add `CollisionResistance` trait (#1820) This PR adds a new trait called `CollisionResistance` which can be applied to hashes and MACs to signify their collision resistance.
diff --git a/digest/src/core_api/ct_variable.rs b/digest/src/core_api/ct_variable.rs index eeb9cd5..d8ad3e8 100644 --- a/digest/src/core_api/ct_variable.rs +++ b/digest/src/core_api/ct_variable.rs @@ -4,7 +4,7 @@ use super::{ }; #[cfg(feature = "mac")] use crate::MacMarker; -use crate::{CustomizedInit, HashMarker, V...
5
38
6
f44963a897af10d125efe3af89b20930ebe4a999
daxpedda
2025-04-29T12:44:04
Add `NonIdentity::mul_by_generator()` (#1833) This PR adds `NonIdentity::mul_by_generator()`, which is similar to the `MulByGenerator` trait, but returns a `NonIdentity` instead of a `ProjectivePoint`. This is quite useful for getting the public key from a `NonZeroScalar` without having to go through the whole convers...
diff --git a/elliptic-curve/src/point/non_identity.rs b/elliptic-curve/src/point/non_identity.rs index dbee44e..3068afa 100644 --- a/elliptic-curve/src/point/non_identity.rs +++ b/elliptic-curve/src/point/non_identity.rs @@ -2,7 +2,7 @@ use core::ops::{Deref, Mul}; -use group::{Curve, GroupEncoding, prime::PrimeCu...
1
27
3
515c951e09a46a05ceb2a694336c7acd021d078f
daxpedda
2025-04-27T19:23:17
elliptic-curve: impl `Zeroize` for `NonIdentity` (#1832) This PR implements `Zeroize` for `NonIdentity` setting it to `G` to prevent breaking any invariants.
diff --git a/elliptic-curve/src/point/non_identity.rs b/elliptic-curve/src/point/non_identity.rs index d76463e..dbee44e 100644 --- a/elliptic-curve/src/point/non_identity.rs +++ b/elliptic-curve/src/point/non_identity.rs @@ -8,6 +8,7 @@ use subtle::{Choice, ConditionallySelectable, ConstantTimeEq, CtOption}; #[cfg(f...
1
20
0
5d3e03178b822f13e85ce46316e1f524ed7921c4
daxpedda
2025-04-23T18:04:00
Various fixes and improvements to hash2curve (#1813) This was mainly to fix a bug in handling large DSTs for `expand_message_xof`. - `ExpandMsg::expand_message()`s `len_in_bytes` parameter is now a `NonZero`, moving one run-time error to the type system. - In tandem `FromOkm::Length` now requires `typenum::NonZero`. ...
diff --git a/elliptic-curve/src/hash2curve/group_digest.rs b/elliptic-curve/src/hash2curve/group_digest.rs index 2a663a1..8fa27c4 100644 --- a/elliptic-curve/src/hash2curve/group_digest.rs +++ b/elliptic-curve/src/hash2curve/group_digest.rs @@ -3,6 +3,7 @@ use super::{ExpandMsg, FromOkm, MapToCurve, hash_to_field}; u...
5
102
50
ef4b78d5a066f0e1613cde1f0378bf29362c088b
Tony Arcieri
2025-04-23T18:02:57
signature: allow AFIT globally (#1830)
diff --git a/signature/src/lib.rs b/signature/src/lib.rs index 5f6048b..b8678e3 100644 --- a/signature/src/lib.rs +++ b/signature/src/lib.rs @@ -6,6 +6,7 @@ )] #![cfg_attr(docsrs, feature(doc_auto_cfg))] #![forbid(unsafe_code)] +#![allow(async_fn_in_trait)] #![warn( clippy::mod_module_files, clippy::unwra...
2
1
3
ba9dbacd95e51200b697ca6f7dfdfc200129b3d6
Tony Arcieri
2025-04-20T21:04:28
elliptic-curve: use `crypto-bigint` release (#1826) Switches to the v0.7.0-pre.1 release
diff --git a/Cargo.lock b/Cargo.lock index 5baa70f..ebd49e9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -158,8 +158,9 @@ dependencies = [ [[package]] name = "crypto-bigint" -version = "0.7.0-pre.0" -source = "git+https://github.com/RustCrypto/crypto-bigint.git#e1065ce5fa73ee15e73f36a2ed0c6d4ca7b8fe8f" +version = "0...
3
4
7
5417c7f9321e3df2e1f024854fc715dad10d9cee
Tony Arcieri
2025-04-20T20:37:50
signature v2.3.0-pre.7 (#1825)
diff --git a/Cargo.lock b/Cargo.lock index 8bcaa83..5baa70f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -583,7 +583,7 @@ dependencies = [ [[package]] name = "signature" -version = "2.3.0-pre.6" +version = "2.3.0-pre.7" dependencies = [ "digest 0.11.0-pre.10 (registry+https://github.com/rust-lang/crates.io-index)...
3
3
3
2dc47f8d1461a2a7a22b68e2afafeb4b59e13420
Arthur Gautier
2025-04-19T15:34:51
password-hash: cleanup errors (#1824)
diff --git a/Cargo.lock b/Cargo.lock index acf3785..8bcaa83 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -52,9 +52,9 @@ checksum = "4c7f02d4ea65f2c1853089ffd8d2787bdbc63de2f0d29dedbcf8ccdfa0ccd4cf" [[package]] name = "base64ct" -version = "1.6.0" +version = "1.7.3" source = "registry+https://github.com/rust-lang/cr...
3
4
5
61f68398106c8b1998ed0d1eef62b04533f91404
Arthur Gautier
2025-04-19T15:34:20
elliptic-curve: cleanup TODOs (#1823) Those TODOs should have been removed in #1774
diff --git a/elliptic-curve/src/scalar/nonzero.rs b/elliptic-curve/src/scalar/nonzero.rs index 06e39b4..4d2e4c5 100644 --- a/elliptic-curve/src/scalar/nonzero.rs +++ b/elliptic-curve/src/scalar/nonzero.rs @@ -52,7 +52,6 @@ where // While this method isn't constant-time, the attacker shouldn't learn //...
1
0
2
829328e9405143cc86b81c297b39f1a6161700c8
Arthur Gautier
2025-04-18T12:50:41
elliptic-curve: deprecate `MulByGenerator` (#1822) This now should use `group::Group` directly. Followup to #1821
diff --git a/elliptic-curve/src/arithmetic.rs b/elliptic-curve/src/arithmetic.rs index 20fc57b..86d0947 100644 --- a/elliptic-curve/src/arithmetic.rs +++ b/elliptic-curve/src/arithmetic.rs @@ -2,7 +2,7 @@ use crate::{ Curve, FieldBytes, PrimeCurve, ScalarPrimitive, - ops::{Invert, LinearCombination, MulByGen...
3
2
18
b46b3d185459416fdd86a0ac2713f716f1bd183e
Arthur Gautier
2025-04-18T05:00:36
elliptic-curve: bump ff and group to pre-releases (#1821)
diff --git a/Cargo.lock b/Cargo.lock index 584b578..acf3785 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -248,8 +248,9 @@ dependencies = [ [[package]] name = "ff" -version = "0.13.0" -source = "git+https://github.com/zkcrypto/ff.git?branch=release-0.14.0#1bb634588722b1b7ce986d239c263e332bedda7f" +version = "0.14.0-p...
3
11
26
25962771e032b3684cc72412df2000b37056586e
daxpedda
2025-04-14T14:22:06
digest: add `XofFixedWrapper` (#1815)
diff --git a/digest/src/lib.rs b/digest/src/lib.rs index b0febdf..6537d84 100644 --- a/digest/src/lib.rs +++ b/digest/src/lib.rs @@ -55,6 +55,7 @@ pub mod core_api; mod digest; #[cfg(feature = "mac")] mod mac; +mod xof_fixed; #[cfg(feature = "core-api")] pub use block_buffer; @@ -70,6 +71,7 @@ pub use crypto_com...
2
148
0
ad1c1acbc1027c0c58880651b597c59e03283df4
Tony Arcieri
2025-04-14T10:54:01
aead: move `Aead` ahead of `AeadInOut` (#1817) This follows an alphabetic ordering and ordering-of-interest, which should improve documentation
diff --git a/aead/src/lib.rs b/aead/src/lib.rs index 140c6e1..a78c470 100644 --- a/aead/src/lib.rs +++ b/aead/src/lib.rs @@ -159,6 +159,88 @@ pub trait AeadCore { } } +/// Authenticated Encryption with Associated Data (AEAD) algorithm. +#[cfg(feature = "alloc")] +pub trait Aead: AeadCore { + /// Encrypt the ...
1
82
82
6fbdc179756379c823a53c0d5a60e0a40baeb765
Artyom Pavlov
2025-04-08T01:40:10
Remove explicit passing of the `docsrs` configuration flag (#1811) The flag is passed automatically by docs.rs.
diff --git a/aead/Cargo.toml b/aead/Cargo.toml index f004bc6..359edd7 100644 --- a/aead/Cargo.toml +++ b/aead/Cargo.toml @@ -34,4 +34,3 @@ rand_core = ["crypto-common/rand_core"] [package.metadata.docs.rs] all-features = true -rustdoc-args = ["--cfg", "docsrs"] diff --git a/async-signature/Cargo.toml b/async-signat...
11
0
11
4206e67077ac64f1f107c314784c018bd5de4c82
Arthur Gautier
2025-03-31T16:06:24
Relax Sized requirement on RNG types (#1777)
diff --git a/Cargo.lock b/Cargo.lock index 9ee8e00..192ae78 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -293,7 +293,7 @@ dependencies = [ [[package]] name = "group" version = "0.13.0" -source = "git+https://github.com/pinkforest/group.git?branch=bump-rand-0.9#06ac6fb11ced26fbf980ee65e74fced4da66ec3e" +source = "git+...
12
36
25
de72c67026c5a0aee2a9beb2c9f25f3a19ec2bc8
Arthur Gautier
2025-03-24T01:07:11
elliptic-curve: make `SecretKey::new` failible (#1804) This fixes an invariant violation where you could create a secret key from an all-zero scalar and convert it to a non-zero scala. Fixes: https://github.com/RustCrypto/traits/issues/1607
diff --git a/elliptic-curve/src/secret_key.rs b/elliptic-curve/src/secret_key.rs index 1c15dc7..f1559c8 100644 --- a/elliptic-curve/src/secret_key.rs +++ b/elliptic-curve/src/secret_key.rs @@ -11,7 +11,7 @@ mod pkcs8; use crate::{Curve, Error, FieldBytes, Result, ScalarPrimitive}; use core::fmt::{self, Debug}; use h...
1
7
3
d2b4b596fa9f16134e3140cc5ceb3f56ec0e6f3a
Artyom Pavlov
2025-03-21T13:30:23
aead: remove `stream` module (#1801) The module contents do not need to be defined in `aead` and can be moved to the `aead-stream` crate.
diff --git a/aead/src/lib.rs b/aead/src/lib.rs index b61fbf0..e2307cb 100644 --- a/aead/src/lib.rs +++ b/aead/src/lib.rs @@ -19,8 +19,6 @@ extern crate alloc; #[cfg(feature = "dev")] pub mod dev; -pub mod stream; - pub use crypto_common::{ Key, KeyInit, KeySizeUser, array::{self, typenum::consts}, @@ -12...
2
2
314
80dffedc4d46cfb7c4542435b6c945842ef13c86
Artyom Pavlov
2025-03-21T12:56:25
aead: add `AeadCore::TAG_POSITION` and move `AeadInPlace` methods to `AeadInOut` (#1798)
diff --git a/aead/Cargo.toml b/aead/Cargo.toml index 10c425d..2665704 100644 --- a/aead/Cargo.toml +++ b/aead/Cargo.toml @@ -17,16 +17,16 @@ such as AES-GCM as ChaCha20Poly1305, which provide a high-level API [dependencies] crypto-common = { version = "0.2.0-rc.1", path = "../crypto-common" } +inout = "0.2.0-rc.4" ...
3
113
116
204a4e030fa98863429ccd3797e12f9e7c45dc33
Tony Arcieri
2025-03-12T17:44:58
aead: add `inout` support (#1793) Renames `AeadInPlaceDetached` to `AeadInOut`, and changes the type signature so the provided `buffer` is now an `InOutBuf`
diff --git a/Cargo.lock b/Cargo.lock index 972a00a..33d3068 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -22,6 +22,7 @@ dependencies = [ "bytes", "crypto-common 0.2.0-rc.2", "heapless", + "inout", ] [[package]] diff --git a/aead/Cargo.toml b/aead/Cargo.toml index 66a4ae4..10c425d 100644 --- a/aead/Cargo.toml +...
3
51
42
7b82f397511d68f823d06a0fe50867e9011dd0f0
Sylvain Pelissier
2025-03-12T12:50:14
Add hash customization trait for variable output hash (#1787) New trait for customized hash function with variable output `CtVariableCoreWrapper` like Blake2 to implement the `CustomizedInit` trait.
diff --git a/digest/src/core_api/ct_variable.rs b/digest/src/core_api/ct_variable.rs index 57a093d..983f610 100644 --- a/digest/src/core_api/ct_variable.rs +++ b/digest/src/core_api/ct_variable.rs @@ -2,9 +2,9 @@ use super::{ AlgorithmName, Buffer, BufferKindUser, FixedOutputCore, Reset, TruncSide, UpdateCore, ...
2
22
1
266b044bf30cd74feda3a715b7211c457d5eaba3
Artyom Pavlov
2025-03-10T14:12:41
Use the standard order of the `[package]` section fields (#1773)
diff --git a/aead/Cargo.toml b/aead/Cargo.toml index 6259fcf..66a4ae4 100644 --- a/aead/Cargo.toml +++ b/aead/Cargo.toml @@ -1,19 +1,19 @@ [package] name = "aead" version = "0.6.0-rc.0" -description = """ -Traits for Authenticated Encryption with Associated Data (AEAD) algorithms, -such as AES-GCM as ChaCha20Poly130...
12
67
72
bd209960fa1cf9d5627a6045028b857675e279bd
Arthur Gautier
2025-03-09T23:06:40
elliptic-curve:: adds `try_from_rng` method to `SecretKey` and `EphemeralSecret` (#1789) Follow up to https://github.com/RustCrypto/traits/pull/1774
diff --git a/elliptic-curve/src/dev.rs b/elliptic-curve/src/dev.rs index 26b14d9..4f1c588 100644 --- a/elliptic-curve/src/dev.rs +++ b/elliptic-curve/src/dev.rs @@ -99,17 +99,6 @@ impl Field for Scalar { const ZERO: Self = Self(ScalarPrimitive::ZERO); const ONE: Self = Self(ScalarPrimitive::ONE); - fn ra...
3
25
13
1548d2a7d7ce71a278a783d19d94b59b0103ab15
Artyom Pavlov
2025-03-05T17:07:56
password-hash: add `Error::OutOfMemory` variant (#1782)
diff --git a/password-hash/src/errors.rs b/password-hash/src/errors.rs index 11efd67..ff5b098 100644 --- a/password-hash/src/errors.rs +++ b/password-hash/src/errors.rs @@ -63,6 +63,9 @@ pub enum Error { /// Invalid algorithm version. Version, + + /// Out of memory (heap allocation failure). + OutOfMe...
1
4
0
27835aa66710bded06caef143284892dda83dda5
Arthur Gautier
2025-03-04T23:08:15
elliptic-curve: adds Scalar::try_from_rng method (#1774) Depends: - https://github.com/zkcrypto/ff/pull/126 - https://github.com/zkcrypto/ff/pull/127 This is to provide an `ecdsa::SigningKey::try_from_rng` API (https://github.com/RustCrypto/signatures/pull/915)
diff --git a/Cargo.lock b/Cargo.lock index 631bb06..1a2f3ae 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -237,7 +237,6 @@ dependencies = [ [[package]] name = "ff" version = "0.13.0" -source = "git+https://github.com/pinkforest/ff.git?branch=bump-rand-core#c734f7f21d6639bc6494dde538209d0770207c49" dependencies = [ ...
4
32
8
d39ad3012ea1c68f6e515b5aef1ee16adae77a48
Tony Arcieri
2025-02-28T11:13:36
aead: factor apart `AeadInPlace`/`*Detached` (#1714) Factors apart the detached methods of `AeadInPlace` into a separate `AeadInPlaceDetached` trait, which itself can now more easily be further refactored (by adding e.g. `inout` support). Also adds a `PostfixTagged` trait which is used to gate the blanket impls.
diff --git a/aead/src/lib.rs b/aead/src/lib.rs index 0294b6f..edc0760 100644 --- a/aead/src/lib.rs +++ b/aead/src/lib.rs @@ -206,7 +206,7 @@ pub trait Aead: AeadCore { ) -> Result<Vec<u8>>; } -/// In-place stateless AEAD trait. +/// In-place AEAD trait. /// /// This trait is both object safe and has no depend...
1
48
23
3fa125f4ec6f7610de112220d38ce40113c18f2c
Tony Arcieri
2025-02-24T18:54:27
digest: bump `const-oid` dependency to v0.10 (#1772) Release notes: https://github.com/RustCrypto/formats/pull/1672
diff --git a/Cargo.lock b/Cargo.lock index e25126e..631bb06 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -117,9 +117,9 @@ dependencies = [ [[package]] name = "const-oid" -version = "0.10.0-rc.3" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "68ff6be19477a1bd5441f38...
2
3
3
8c1a1d0e385b37ebba56bbc1e2158c1052cc45d0
Arthur Gautier
2025-02-24T16:46:18
Patch `hmac` from RustCrypto/MACs (#1771)
diff --git a/Cargo.lock b/Cargo.lock index b20d0a4..e25126e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -309,7 +309,7 @@ dependencies = [ [[package]] name = "hmac" version = "0.13.0-pre.4" -source = "git+https://github.com/baloo/MACs.git?branch=baloo%2Fedition-2024#cea718c1fcec0504c7ba030a2ad465d7b1881047" +source =...
2
2
2
f19d414233d03ebd611cea5a8bd821999e3436d3
Artyom Pavlov
2025-02-24T12:39:09
Fix patch of sha2 and sha3 (#1769)
diff --git a/Cargo.lock b/Cargo.lock index 3c89109..b20d0a4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -147,7 +147,7 @@ dependencies = [ [[package]] name = "crypto-bigint" version = "0.7.0-pre.0" -source = "git+https://github.com/RustCrypto/crypto-bigint.git#8fe22cba8196b08acd06546757f2f474aa20db1e" +source = "git+...
2
8
9
28b6e0d3231fa0fb31dc7f6bfdb62d6558bcfdf6
Arthur Gautier
2025-02-23T21:58:08
elliptic-curve: relax `Sized` requirements on Rng (#1767)
diff --git a/elliptic-curve/src/scalar/nonzero.rs b/elliptic-curve/src/scalar/nonzero.rs index 0500abe..88f82a8 100644 --- a/elliptic-curve/src/scalar/nonzero.rs +++ b/elliptic-curve/src/scalar/nonzero.rs @@ -47,7 +47,7 @@ where C: CurveArithmetic, { /// Generate a random `NonZeroScalar`. - pub fn random<...
1
1
1
96dfc4a608c5ddf2972ff926ae3d695cae0275c7
Arthur Gautier
2025-02-22T22:02:26
signature: Relax `Sized` requirements on async signer traits (#1766) Follow up on https://github.com/RustCrypto/traits/pull/1765
diff --git a/signature/src/hazmat.rs b/signature/src/hazmat.rs index 25cc900..075fc48 100644 --- a/signature/src/hazmat.rs +++ b/signature/src/hazmat.rs @@ -43,7 +43,7 @@ pub trait RandomizedPrehashSigner<S> { /// /// Allowed lengths are algorithm-dependent and up to a particular /// implementation to de...
2
5
5
f17b96292641666b8c1de9c77d689092af264f78
Arthur Gautier
2025-02-22T21:47:12
signature: relax `Sized` requirements on rng (#1765)
diff --git a/signature/src/signer.rs b/signature/src/signer.rs index 22f2e6a..1ff2360 100644 --- a/signature/src/signer.rs +++ b/signature/src/signer.rs @@ -86,7 +86,7 @@ pub trait DigestSigner<D: Digest, S> { #[cfg(feature = "rand_core")] pub trait RandomizedSigner<S> { /// Sign the given message and return a d...
1
23
8
ad7adbbf269076de8b05f6385a4743b24f42464b
Artyom Pavlov
2025-02-22T19:04:20
cipher: release v0.5.0-pre.8 (#1764)
diff --git a/Cargo.lock b/Cargo.lock index b6035d1..bab9ae8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -95,7 +95,7 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" [[package]] name = "cipher" -version = "0.5.0-pre.7" +version = "0.5.0-pre.8" dependencies = [ "blobby", "crypto-c...
2
3
3
be696aa8f811a71633c3456c8030af5048d547ea
Artyom Pavlov
2025-02-22T18:58:37
digest: release v0.11.0-pre.10 (#1763)
diff --git a/Cargo.lock b/Cargo.lock index 70493eb..b6035d1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -116,7 +116,7 @@ dependencies = [ "aead", "cipher", "crypto-common 0.2.0-rc.2", - "digest 0.11.0-pre.9", + "digest 0.11.0-pre.10", "elliptic-curve", "password-hash", "signature 2.3.0-pre.6", @@ -138,19 +1...
2
18
18
9aad4bfc217598a95471c850374c675e8a26155f
Artyom Pavlov
2025-02-22T18:52:01
crypto-common: release v0.2.0-rc.2 (#1762)
diff --git a/Cargo.lock b/Cargo.lock index 85567be..70493eb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -9,7 +9,7 @@ dependencies = [ "arrayvec", "blobby", "bytes", - "crypto-common 0.2.0-rc.1", + "crypto-common 0.2.0-rc.2", "heapless", ] @@ -98,7 +98,7 @@ name = "cipher" version = "0.5.0-pre.7" dependenci...
2
13
13
e22a9f6a8be72ee376eff0a9d9b29b1cbfb10fa1
Artyom Pavlov
2025-02-21T08:21:03
elliptic-curve: fix Nightly compiler warnings (#1758) `#[must_use]` annotations have no effect on trait methods.
diff --git a/elliptic-curve/src/dev.rs b/elliptic-curve/src/dev.rs index 5a5c38e..1fd44bb 100644 --- a/elliptic-curve/src/dev.rs +++ b/elliptic-curve/src/dev.rs @@ -114,12 +114,10 @@ impl Field for Scalar { self.0.is_zero() } - #[must_use] fn square(&self) -> Self { unimplemented!(); ...
1
0
3
1fdcdc7daae1dd00f7b881fb9fdca78003c4a121
Artyom Pavlov
2025-02-21T08:07:39
kem: remove tests, update to rand_core v0.9 (#1757) As discussed [here][0] the tests are not particularity useful and block migration to rand_core v0.9. [0]: https://github.com/RustCrypto/traits/issues/1642#issuecomment-2660481543
diff --git a/Cargo.lock b/Cargo.lock index b1d6473..a73daea 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -23,31 +23,6 @@ dependencies = [ "heapless", ] -[[package]] -name = "aes" -version = "0.8.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b169f7a6d4742236a0a00c541b845991d0ac43e...
6
43
871
41fa95fde4953ffb2bc4af1ab9c7dd9151d83cb7
Arthur Gautier
2025-02-20T09:23:06
signature v2.3.0-pre.6 (#1755)
diff --git a/Cargo.lock b/Cargo.lock index 3f130ad..b1d6473 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -58,7 +58,7 @@ checksum = "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50" name = "async-signature" version = "0.6.0-pre.4" dependencies = [ - "signature 2.3.0-pre.5", + "signature 2.3.0-pre.6", ...
3
4
4
684e9bcb0c530324b78de17f4543b5562ffd2344
Arthur Gautier
2025-02-15T05:07:42
signature: Prehash should accept a `TryCryptoRng` (#1752) This is so that a `RandomizedDigestSigner` can call into `hazmat::RandomizedPrehashSigner` directly with the provided rng. Example use: https://github.com/RustCrypto/signatures/pull/901
diff --git a/signature/src/hazmat.rs b/signature/src/hazmat.rs index 4c549af..25cc900 100644 --- a/signature/src/hazmat.rs +++ b/signature/src/hazmat.rs @@ -9,7 +9,7 @@ use crate::Error; #[cfg(feature = "rand_core")] -use crate::rand_core::CryptoRng; +use crate::rand_core::TryCryptoRng; /// Sign the provided mes...
1
7
3
0c41df9a50721fa426ff8c86514672e44ac404d5
Tony Arcieri
2025-02-12T23:42:08
signature v2.3.0-pre.5 (#1750)
diff --git a/Cargo.lock b/Cargo.lock index bd4561b..3f130ad 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -58,7 +58,7 @@ checksum = "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50" name = "async-signature" version = "0.6.0-pre.4" dependencies = [ - "signature 2.3.0-pre.4", + "signature 2.3.0-pre.5", ...
3
4
4
2e4bd57648ec464ba8c1af63fe30dcb1072a4640
Tony Arcieri
2025-02-12T22:53:56
signature: async `rand_core` v0.9 updates (#1749) Followup to #1720
diff --git a/signature/src/hazmat.rs b/signature/src/hazmat.rs index cfd274f..4c549af 100644 --- a/signature/src/hazmat.rs +++ b/signature/src/hazmat.rs @@ -99,9 +99,9 @@ pub trait AsyncRandomizedPrehashSigner<S> { /// /// Allowed lengths are algorithm-dependent and up to a particular /// implementation ...
2
7
7
30b826f628665adad481ce5bc355700ff565d06a
Artyom Pavlov
2025-02-12T14:24:22
Partial migration to `rand_core` v0.9 (#1746) `kem` and `elliptic-curve` can not be migrated because of upstream dependencies which still use `rand_core` v0.6 and expose it in their public API. `getrandom` crate features are renamed to `os_rng` following the similar change in `rand_core`.
diff --git a/Cargo.lock b/Cargo.lock index d9498e3..bd4561b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -166,15 +166,15 @@ checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" [[package]] name = "bytes" -version = "1.9.0" +version = "1.10.0" source = "registry+https://github.com/rust-lang/...
17
206
134
efe27ed0cca4ac6bc1ce993c8e49b156cd74f9d8
Arthur Gautier
2025-02-11T22:18:47
cipher: propagate the zeroize to hybrid-array (#1747) Example use: https://github.com/RustCrypto/block-ciphers/pull/467
diff --git a/cipher/Cargo.toml b/cipher/Cargo.toml index 95c239f..9f3d430 100644 --- a/cipher/Cargo.toml +++ b/cipher/Cargo.toml @@ -26,6 +26,7 @@ block-padding = ["inout/block-padding"] # Enable random key and IV generation methods rand_core = ["crypto-common/rand_core"] dev = ["blobby"] +zeroize = ["dep:zeroize", ...
2
2
0
99f7bc9c264ebae9ee31a5327c3e3202e77c09f7
Artyom Pavlov
2025-02-01T00:26:44
crypto-common: add methods for weak key testing (#1742)
diff --git a/crypto-common/src/lib.rs b/crypto-common/src/lib.rs index 3b503d4..79f7857 100644 --- a/crypto-common/src/lib.rs +++ b/crypto-common/src/lib.rs @@ -163,6 +163,19 @@ pub trait KeyInit: KeySizeUser + Sized { /// Create new value from fixed size key. fn new(key: &Key<Self>) -> Self; + /// Check...
1
54
0
b5fbe3437a83ea1c475b8c524d97660b21da1556
Artyom Pavlov
2025-01-31T16:35:55
Update getrandom to v0.3 (#1741)
diff --git a/Cargo.lock b/Cargo.lock index eb4d560..d9498e3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -88,6 +88,12 @@ dependencies = [ "serde", ] +[[package]] +name = "bitflags" +version = "2.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8f68f53c83ab957f72c32642f3868eec03eb9...
4
148
48
88b327429ebf771e3ded6785442caeb127cb6e58
Tony Arcieri
2025-01-30T20:24:59
aead: remove stateful AEAD traits (`AeadMut*`) (#1740) We currently have no implementations which require these traits, or plans to implement any. If we do wind up needing these, they can be easily added back.
diff --git a/aead/src/lib.rs b/aead/src/lib.rs index dc7f6bc..7f35e45 100644 --- a/aead/src/lib.rs +++ b/aead/src/lib.rs @@ -149,9 +149,6 @@ pub trait AeadCore { } /// Authenticated Encryption with Associated Data (AEAD) algorithm. -/// -/// This trait is intended for use with stateless AEAD algorithms. The -/// [`...
1
10
177
1a770afb1818162f9958d0dff70f3504f4f6e73d
Artyom Pavlov
2025-01-30T20:15:12
cipher: add traits for tweakable block ciphers (#1721) The trait design generally follows the `BlockCipherEnc/Dec` traits. We currently do not have tweakable block cipher implementations which use the backend capability, but I think it's still worth to include it for API consistency and to future-proof the traits. Som...
diff --git a/cipher/src/lib.rs b/cipher/src/lib.rs index 7e34bba..9fff63c 100644 --- a/cipher/src/lib.rs +++ b/cipher/src/lib.rs @@ -36,9 +36,11 @@ pub mod block; #[cfg(feature = "dev")] mod dev; pub mod stream; +pub mod tweak; pub use block::*; pub use stream::*; +pub use tweak::*; pub use crypto_common::{ ...
4
313
0
fb85f4677002dce1352f6ac46e023443be8258d0
Tony Arcieri
2025-01-28T23:11:18
aead: remove `AeadCore::CiphertextOverhead` (#1737) This size was intended for AEADs based on padded block cipher modes such as CBC in order to express the underlying cipher's block size and therefore the maximum amount of possible padding overhead beyond the original plaintext, which is a full block (in the case a se...
diff --git a/aead/src/lib.rs b/aead/src/lib.rs index 2a3560c..dc7f6bc 100644 --- a/aead/src/lib.rs +++ b/aead/src/lib.rs @@ -85,10 +85,6 @@ pub trait AeadCore { /// The maximum length of the tag. type TagSize: ArraySize; - /// The upper bound amount of additional space required to support a - /// ciph...
1
2
8
2b9e5f585a5fda5392ac81240ea5bfd9e2cc1790
nathan haim
2025-01-09T16:24:19
fix IsHigh trait comment (#1726) The comment was saying that function informs if the scalar is **"greater or equal to"** whereas the implementation informs if the scalar is **"strictly greater than"**
diff --git a/elliptic-curve/src/scalar.rs b/elliptic-curve/src/scalar.rs index a53b93e..9f3abda 100644 --- a/elliptic-curve/src/scalar.rs +++ b/elliptic-curve/src/scalar.rs @@ -49,6 +49,6 @@ pub trait FromUintUnchecked { /// - For scalars 0 through n / 2: `Choice::from(0)` /// - For scalars (n / 2) + 1 through n - 1:...
1
1
1
8bb338103292e9e709c9b45009c568ed9a6276f9
Artyom Pavlov
2024-11-18T13:51:28
password-hash: fix `needless_as_bytes` Clippy lint (#1715)
diff --git a/password-hash/src/params.rs b/password-hash/src/params.rs index d23d279..0d80740 100644 --- a/password-hash/src/params.rs +++ b/password-hash/src/params.rs @@ -173,7 +173,7 @@ impl FromStr for ParamsString { type Err = Error; fn from_str(s: &str) -> Result<Self> { - if s.as_bytes().len()...
3
6
6
70d3103b9f681697369a87255e05b96e26f7da89
Artyom Pavlov
2024-11-13T17:05:24
Update Cargo.lock (#1712)
diff --git a/Cargo.lock b/Cargo.lock index 8b6ef2a..136d93a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -160,15 +160,15 @@ checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" [[package]] name = "bytes" -version = "1.7.2" +version = "1.8.0" source = "registry+https://github.com/rust-lang/c...
1
18
18
a1ade1baa00de8c9f9e76ef673734db8f36d6982
Tony Arcieri
2024-10-22T14:02:26
elliptic-curve: include curve OID in SEC1 private keys (#1707) The OID identifies the particular elliptic curve the key is for. Without it, OpenSSL can't parse these keys. See #1706.
diff --git a/elliptic-curve/src/secret_key.rs b/elliptic-curve/src/secret_key.rs index 87f4b79..09b6ba5 100644 --- a/elliptic-curve/src/secret_key.rs +++ b/elliptic-curve/src/secret_key.rs @@ -29,7 +29,7 @@ use { sec1::{EncodedPoint, ModulusSize, ValidatePublicKey}, FieldBytesSize, }, - sec1::...
2
31
13
c450cb72fe14bbe52f9ca800c2308dbc21ba59f2
Tony Arcieri
2024-10-21T20:17:34
elliptic-curve: clippy fixes (#1703) Runs `cargo clippy --all-features --fix` using 1.83.0-beta.1
diff --git a/elliptic-curve/src/hash2curve/hash2field/expand_msg/xmd.rs b/elliptic-curve/src/hash2curve/hash2field/expand_msg/xmd.rs index 4d397d4..fdd298c 100644 --- a/elliptic-curve/src/hash2curve/hash2field/expand_msg/xmd.rs +++ b/elliptic-curve/src/hash2curve/hash2field/expand_msg/xmd.rs @@ -53,7 +53,7 @@ where ...
2
4
4
326b60639657a3a5c15fd1e83af38ac404da2de9
Tony Arcieri
2024-10-21T20:13:29
elliptic-curve: leverage `core::error::Error` (#1702) This trait is now stable in `core`
diff --git a/elliptic-curve/src/error.rs b/elliptic-curve/src/error.rs index ba2d0b3..1944839 100644 --- a/elliptic-curve/src/error.rs +++ b/elliptic-curve/src/error.rs @@ -9,6 +9,8 @@ pub type Result<T> = core::result::Result<T, Error>; #[derive(Copy, Clone, Debug, Eq, PartialEq)] pub struct Error; +impl core::err...
2
4
3
8a27953d1f725728b1e05bc9fb7e4556cffb8f3c
Tony Arcieri
2024-10-21T19:58:02
Bump `hybrid-array` to v0.2 (final) (#1701) Notably in the `crypto-common` and `elliptic-curve` crates which have direct dependencies on `hybrid-array`.
diff --git a/Cargo.lock b/Cargo.lock index d4921e4..44e41f5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -63,9 +63,9 @@ dependencies = [ [[package]] name = "autocfg" -version = "1.3.0" +version = "1.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c4b4d0bd25bd0b74681c0ad21497610ce...
3
60
53
e0a048617e03ea592469ebfe7a5c448134736884
Artyom Pavlov
2024-10-09T12:55:38
Add compatibility section to the `SerializableState` docs (#1694)
diff --git a/crypto-common/src/hazmat.rs b/crypto-common/src/hazmat.rs index 22672be..b8df738 100644 --- a/crypto-common/src/hazmat.rs +++ b/crypto-common/src/hazmat.rs @@ -28,6 +28,16 @@ impl core::error::Error for DeserializeStateError {} /// Types which can serialize the internal state and be restored from it. /...
1
10
0
e78de7510753b34830cbaee43efafbd53b8f6242
Tony Arcieri
2024-10-08T21:55:02
aead: use `core::error`; remove `std` feature (#1692) Switches from `std::error::Error` to `core::error::Error` which was stabilized in Rust 1.81, which is already the `aead` crate's current MSRV. Since this was the only usage of `std`, also removes the `std` feature.
diff --git a/aead/Cargo.toml b/aead/Cargo.toml index b0a7bc2..9cfaa2f 100644 --- a/aead/Cargo.toml +++ b/aead/Cargo.toml @@ -27,7 +27,6 @@ heapless = { version = "0.8", optional = true, default-features = false } [features] default = ["rand_core"] alloc = [] -std = ["alloc"] dev = ["blobby"] getrandom = ["crypto-c...
2
1
6
5acedcdc2ea6fc629822d465c92df84caa7b0398
Casey Rodarmor
2024-10-08T01:08:37
Remove signature error source from display message (#1689) Since errors returned by `std::error::Error::source()` are commonly printed separately, this avoids double-printing the source error message. Fixes #1685.
diff --git a/signature/src/error.rs b/signature/src/error.rs index 6518f17..7d716a1 100644 --- a/signature/src/error.rs +++ b/signature/src/error.rs @@ -73,16 +73,7 @@ impl Debug for Error { impl Display for Error { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - f.write_str("signature error...
1
1
10
78662ae561cd5598dfdb21602bfb8ac03cceb9be
Tony Arcieri
2024-09-30T19:13:15
cipher: bump `inout` to v0.2.0-rc.1 (#1679) Notably this version removes the `std` feature, a breaking change from the previous `rc.0`
diff --git a/Cargo.lock b/Cargo.lock index 098e8ba..85cf8c3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -145,9 +145,9 @@ dependencies = [ [[package]] name = "block-padding" -version = "0.4.0-rc.0" +version = "0.4.0-rc.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0d7992d59cd95a98...
2
8
8
a981f42932b8cfdf7c47f65bdb2e7c9862975143
Tony Arcieri
2024-09-30T19:09:26
digest: bump `block-buffer` to v0.11.0-rc.2 (#1678) Notably this version drops the `crypto-common` dependency
diff --git a/Cargo.lock b/Cargo.lock index b686cb1..098e8ba 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -126,11 +126,11 @@ dependencies = [ [[package]] name = "block-buffer" -version = "0.11.0-rc.0" +version = "0.11.0-rc.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "17092d478f4fa...
2
5
5
badd347252b709af3f8042a380bd0c971bb78b6a
Artyom Pavlov
2024-09-27T15:33:07
elliptic-curve: add missing `Debug` impls (#1675)
diff --git a/elliptic-curve/src/ecdh.rs b/elliptic-curve/src/ecdh.rs index c64a696..243c617 100644 --- a/elliptic-curve/src/ecdh.rs +++ b/elliptic-curve/src/ecdh.rs @@ -30,7 +30,7 @@ use crate::{ point::AffineCoordinates, AffinePoint, Curve, CurveArithmetic, FieldBytes, NonZeroScalar, ProjectivePoint, PublicK...
10
46
2
7dfeb9905f2fa01b4dc9710814468b4cdce39f76
Tony Arcieri
2024-09-20T18:51:52
elliptic-curve v0.14.0-rc.1 (#1671)
diff --git a/elliptic-curve/Cargo.toml b/elliptic-curve/Cargo.toml index 1c9b3e1..69dac92 100644 --- a/elliptic-curve/Cargo.toml +++ b/elliptic-curve/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "elliptic-curve" -version = "0.14.0-rc.0" +version = "0.14.0-rc.1" description = """ General purpose Elliptic Curve Crypto...
1
1
1
19a3593a2f4cbb6cb26e083929f980e32e0a15b5
Tony Arcieri
2024-09-20T18:44:00
elliptic-curve: bump `serdect` to v0.3.0-rc.0 (#1670)
diff --git a/Cargo.lock b/Cargo.lock index ea6632b..cebf88f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -510,7 +510,7 @@ dependencies = [ "pem-rfc7468 1.0.0-rc.1", "pkcs8 0.11.0-rc.1", "rand_core", - "sec1 0.8.0-rc.1", + "sec1 0.8.0-rc.2", "serde_json", "serdect", "sha2 0.11.0-pre.4", @@ -1068,9 +1068,9 @@ ...
2
7
7
62ee195e59f8870a5bd8459586895ff2c5b3ac79
Arthur Gautier
2024-09-06T17:25:57
elliptic-curve: publish pre-release 0.14.0-rc.0 (#1661)
diff --git a/Cargo.lock b/Cargo.lock index 8a02a67..50603db 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -496,7 +496,7 @@ dependencies = [ [[package]] name = "elliptic-curve" -version = "0.14.0-pre.6" +version = "0.14.0-rc.0" dependencies = [ "base16ct", "base64ct", @@ -508,9 +508,9 @@ dependencies = [ "hkdf ...
3
13
14
64277691b0abeef47b6a8725939ad90cd1727b7e
Arthur Gautier
2024-09-05T21:59:46
elliptic-curve: pkcs8 API changes (#1650) see https://github.com/RustCrypto/formats/pull/1483
diff --git a/Cargo.lock b/Cargo.lock index 33d0183..8a02a67 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -894,8 +894,7 @@ dependencies = [ [[package]] name = "pkcs8" version = "0.11.0-rc.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "66180445f1dce533620a7743467ef85fe1c5e80cdaf7c7053...
3
16
10
7fb782a00eb729ded573f9f635095ce852afe62e
Luna Saphie Mittelbach
2024-09-05T18:01:40
password-hash: Add `Output::with_encoding` method (#1657) Allows `Display`/`Debug` printing `Output` with a specific `Encoding` without needing to go through `encode`/`b64_encode`, if e.g. it was created using `init_with`. Maybe a version of `init_with` that allows specifying an encoding (similar to `new_with_en...
diff --git a/password-hash/src/output.rs b/password-hash/src/output.rs index 7f1998f..65ee348 100644 --- a/password-hash/src/output.rs +++ b/password-hash/src/output.rs @@ -182,6 +182,11 @@ impl Output { self.encoding } + /// Creates a copy of this [`Output`] with the specified [`Encoding`]. + pub...
1
5
0
3ebd677b37533ebdb6a7cc4efcb980f8197246c7
Artyom Pavlov
2024-08-14T13:40:30
cipher: rework backend traits (#1636) This PR splits `BlockBackend` traits into 4 specific traits: `BlockCipherEncBackend`, `BlockCipherDecBackend`, `BlockModeEncBackend`, and `BlockModeDecBackend`. Same for `BlockClosure`. This allows for cipher backends to remove awkard `&mut &backend` juggling (see https://gith...
diff --git a/Cargo.lock b/Cargo.lock index ac9536a..33d0183 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -19,7 +19,7 @@ dependencies = [ "arrayvec", "blobby", "bytes", - "crypto-common 0.2.0-rc.0 (registry+https://github.com/rust-lang/crates.io-index)", + "crypto-common 0.2.0-rc.0", "heapless", ] @@ -130,7 +1...
13
472
281
f1ae691906681e7399db5a4088c24b4a44faa712
riskrose
2024-08-02T02:44:09
digest: fix doc comment (#1640)
diff --git a/digest/src/hashwriter.rs b/digest/src/hashwriter.rs index e3d01f0..3545903 100644 --- a/digest/src/hashwriter.rs +++ b/digest/src/hashwriter.rs @@ -1,4 +1,4 @@ -//! Adds hashing to any writer. Inspired by implemention in phase2 crate. +//! Adds hashing to any writer. Inspired by implementation in phase2 cr...
1
1
1
332267526d98eb107ece2ab79ca8ee480ec1d189
Tony Arcieri
2024-07-27T21:09:11
async-signature v0.6.0-pre.4 (#1632)
diff --git a/async-signature/Cargo.toml b/async-signature/Cargo.toml index d89f8d8..50ac9a7 100644 --- a/async-signature/Cargo.toml +++ b/async-signature/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "async-signature" description = "Traits for cryptographic signature algorithms (e.g. ECDSA, Ed25519)" -version = "0.6.0...
1
1
1
00945f0633c1ac48980a28a2aa92e639c8e0a523
Tony Arcieri
2024-07-27T19:59:28
password-hash v0.6.0-rc.0 (#1631)
diff --git a/Cargo.lock b/Cargo.lock index 64de161..960c1d9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -838,7 +838,7 @@ dependencies = [ [[package]] name = "password-hash" -version = "0.6.0-pre.0" +version = "0.6.0-rc.0" dependencies = [ "base64ct", "rand_core", diff --git a/password-hash/Cargo.toml b/passwor...
2
2
2
666d443a3beac63b1168336cae6a638468852466
Tony Arcieri
2024-07-27T00:15:21
signature v2.3.0-pre.4 (#1629)
diff --git a/Cargo.lock b/Cargo.lock index c2b9e70..64de161 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -58,7 +58,7 @@ checksum = "96d30a06541fbafbc7f82ed10c06164cfbd2c401138f6addd8404629c4b16711" name = "async-signature" version = "0.6.0-pre.1" dependencies = [ - "signature 2.3.0-pre.3", + "signature 2.3.0-pre.4", ...
3
16
16
532c57167e6a46c2a47927f77e1f81ace113f093
Tony Arcieri
2024-07-26T23:59:26
elliptic-curve v0.14.0-pre.6 (#1628)
diff --git a/Cargo.lock b/Cargo.lock index bf1b5fe..c2b9e70 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -496,7 +496,7 @@ dependencies = [ [[package]] name = "elliptic-curve" -version = "0.14.0-pre.5" +version = "0.14.0-pre.6" dependencies = [ "base16ct", "base64ct", diff --git a/elliptic-curve/Cargo.toml b/ell...
2
2
2
0e2b463230762311dbf8d4dfc9383f3c5081bd6b
Tony Arcieri
2024-07-26T23:44:09
elliptic-curve: bump `crypto-bigint` to v0.6.0-rc.2 (#1627)
diff --git a/Cargo.lock b/Cargo.lock index d1bafad..bf1b5fe 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -292,9 +292,9 @@ dependencies = [ [[package]] name = "crypto-bigint" -version = "0.6.0-rc.0" +version = "0.6.0-rc.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cf4d6fbc60a5516f...
2
4
4
12d384f14a1d07f0847129f659963d5e00381422
Tony Arcieri
2024-07-26T23:21:41
Use `digest` v0.11.0-pre.9 crate releases (#1626) Re-unifies the workspace now that the circular dev-dependencies have been updated
diff --git a/Cargo.lock b/Cargo.lock index be95504..d1bafad 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -61,6 +61,12 @@ dependencies = [ "signature 2.3.0-pre.3", ] +[[package]] +name = "autocfg" +version = "1.3.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0c4b4d0bd25bd0b74681c0...
5
321
91
77e2ea109f23096c30d90e394ef074783b133933
Tony Arcieri
2024-07-26T21:53:33
cipher v0.5.0-pre.6 (#1625)
diff --git a/Cargo.lock b/Cargo.lock index b910d51..be95504 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -199,7 +199,7 @@ dependencies = [ [[package]] name = "cipher" -version = "0.5.0-pre.5" +version = "0.5.0-pre.6" dependencies = [ "blobby", "crypto-common 0.2.0-rc.0 (registry+https://github.com/rust-lang/cra...
2
2
2
f1005a309e3c8ecc7900cb202edd89f0bd6fba69
Tony Arcieri
2024-07-26T21:37:36
cipher: fix `hybrid-array` deprecations in macros (#1624) The `block_cipher_test!` macro was using deprecated APIs in `hybrid-array` (i.e. `clone_from_slice`)
diff --git a/cipher/src/dev/block.rs b/cipher/src/dev/block.rs index 81b1118..80ea552 100644 --- a/cipher/src/dev/block.rs +++ b/cipher/src/dev/block.rs @@ -14,7 +14,7 @@ macro_rules! block_cipher_test { fn run_test(key: &[u8], pt: &[u8], ct: &[u8]) -> bool { let mut state = <$cipher as Ke...
1
2
2
350a3b213bfd1c73f935d6f2d458c9cca8af2c00
Tony Arcieri
2024-07-26T20:00:06
digest v0.11.0-pre.9 (#1623) Due to circular dependencies, it was necessary to temporarily split `elliptic-curve` out of the workspace. It also can't currently resolve a solution for `elliptic-curve`'s Cargo.lock due to `digest`. Excluding `elliptic-curve`, all of the other crates work. The main causes of this a...
diff --git a/Cargo.lock b/Cargo.lock index f34deee..b910d51 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -61,12 +61,6 @@ dependencies = [ "signature 2.3.0-pre.3", ] -[[package]] -name = "autocfg" -version = "1.3.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c4b4d0bd25bd0b74681c0...
5
103
333
2783387f23821b1c33c157092330115cda6212bd
Tony Arcieri
2024-07-26T19:54:14
aead v0.6.0-rc.0 (#1622)
diff --git a/Cargo.lock b/Cargo.lock index c6c6451..f34deee 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -14,7 +14,7 @@ dependencies = [ [[package]] name = "aead" -version = "0.6.0-pre.0" +version = "0.6.0-rc.0" dependencies = [ "arrayvec", "blobby", diff --git a/aead/Cargo.toml b/aead/Cargo.toml index 7ce4b18....
2
2
2
bbf7d5ab6a722b82d142f21c0b0ef8c542d5df33
Tony Arcieri
2024-07-26T19:40:20
cipher v0.5.0-pre.5 (#1621) Note: leaving this as a `.pre` instead of an `.rc` so we can experiment with newtypes first before doing an `.rc`
diff --git a/Cargo.lock b/Cargo.lock index 487121f..c6c6451 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -217,7 +217,7 @@ dependencies = [ [[package]] name = "cipher" -version = "0.5.0-pre.4" +version = "0.5.0-pre.5" dependencies = [ "blobby", "crypto-common 0.2.0-rc.0 (registry+https://github.com/rust-lang/cra...
2
3
3
47e01e39a9a962b9b726fcba01aead34dbee12f0
Tony Arcieri
2024-07-26T19:10:00
universal-hash v0.6.0-rc.0 (#1620)
diff --git a/universal-hash/Cargo.toml b/universal-hash/Cargo.toml index 66113e1..d98e8dd 100644 --- a/universal-hash/Cargo.toml +++ b/universal-hash/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "universal-hash" -version = "0.6.0-pre.0" +version = "0.6.0-rc.0" description = "Traits which describe the functionality of...
1
1
1
626cc3fb2a85ce2b72d941ddd7d4822d87277aa4
Tony Arcieri
2024-07-26T18:56:55
digest,elliptic-curve: bump format crate prereleases (#1619) Bumps the following dependencies: - `const-oid` v0.10.0-rc.0 - `der` v0.8.0-rc.0 - `pem-rfc7468` v1.0.0-rc.0 - `pkcs8` v0.11.0-rc.0 - `sec1` v0.8.0-rc.0 - `spki` v0.8.0-rc.0 This also relaxes the version requirements to remove the `=*` pinning to ...
diff --git a/Cargo.lock b/Cargo.lock index 2f0ab51..487121f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -239,9 +239,9 @@ checksum = "c2459377285ad874054d797f3ccebf984978aa39129f6eafde5cdc8315b612f8" [[package]] name = "const-oid" -version = "0.10.0-pre.2" +version = "0.10.0-rc.0" source = "registry+https://github....
3
27
27
0cf1f5f06b2c5cebfbf15edddb314919a6e9d7d1
Tony Arcieri
2024-07-26T16:17:35
Bump `crypto-common`, `block-buffer`, and `inout` (#1618) Bumps the following versions: - `block-buffer` v0.11.0-rc.0 - `crypto-common` v0.2.0-rc.0 - `inout` v0.2.0-rc.0
diff --git a/Cargo.lock b/Cargo.lock index cffd9e2..2f0ab51 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -19,7 +19,7 @@ dependencies = [ "arrayvec", "blobby", "bytes", - "crypto-common 0.2.0-pre.5", + "crypto-common 0.2.0-rc.0 (registry+https://github.com/rust-lang/crates.io-index)", "heapless", ] @@ -126,11 ...
6
29
40
13b2c8ec946dc1daf310f38e8560569a4fec5f3c
Tony Arcieri
2024-07-26T14:53:43
Cargo.lock: bump dependencies (#1617) Updates the following dependencies: $ cargo update Updating crates.io index Locking 9 packages to latest compatible versions Updating cc v1.0.98 -> v1.1.6 Updating jobserver v0.1.31 -> v0.1.32 Removing once_cell v1.19.0 Updating proc-macro2 v1...
diff --git a/Cargo.lock b/Cargo.lock index 13860c8..aa51ef9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -166,13 +166,12 @@ checksum = "a12916984aab3fa6e39d655a33e09c0071eb36d6ab3aea5c2d78551f1df6d952" [[package]] name = "cc" -version = "1.0.98" +version = "1.1.6" source = "registry+https://github.com/rust-lang/cra...
1
18
25
5621847ca7183e2f5bd8fb2e21e499e1bac71138
Tony Arcieri
2024-07-26T14:24:19
Bump `hybrid-array` to v0.2.0-rc.9 (#1616) Also fixes the deprecation warnings
diff --git a/Cargo.lock b/Cargo.lock index 5755006..13860c8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -731,9 +731,9 @@ dependencies = [ [[package]] name = "hybrid-array" -version = "0.2.0-rc.8" +version = "0.2.0-rc.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "53668f5da5a41d9ea...
8
24
17