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
8733c84e880e16c90b3bf8a308204c6f444cce0f
vladikoff
2018-08-21T00:29:59
(cargo-release) version 0.6.0
diff --git a/hkdf/Cargo.toml b/hkdf/Cargo.toml index 643715a..4b72b09 100644 --- a/hkdf/Cargo.toml +++ b/hkdf/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "hkdf" -version = "0.5.1-alpha.0" +version = "0.6.0" authors = ["vladikoff", "warner", "RustCrypto Developers"] license = "MIT/Apache-2.0" homepage = "https://gi...
1
1
1
0d4290cd9137c7a564b5498bfd98467f6b2d4f8c
Vlad Filippov
2018-06-09T17:13:18
Fix cargo bench for hkdf (#17) r=@newpavlov
diff --git a/hkdf/benches/hkdf.rs b/hkdf/benches/hkdf.rs index 7c2f15f..47cfabe 100644 --- a/hkdf/benches/hkdf.rs +++ b/hkdf/benches/hkdf.rs @@ -8,17 +8,17 @@ use hkdf::Hkdf; use sha2::Sha256; fn sha256_10(b: &mut Bencher) { - b.iter(|| Hkdf::<Sha256>::new(&[], &[]).derive(&[], 10)); + b.iter(|| Hkdf::<Sha256...
1
3
3
5f2ce31c03718dd3db1c21ad49478e0df48d0026
vladikoff
2018-05-20T21:02:04
(cargo-release) start next development iteration 0.5.1-alpha.0
diff --git a/hkdf/Cargo.toml b/hkdf/Cargo.toml index eb9e9ce..5dc8069 100644 --- a/hkdf/Cargo.toml +++ b/hkdf/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "hkdf" -version = "0.5.0" +version = "0.5.1-alpha.0" authors = ["vladikoff", "warner", "RustCrypto Developers"] license = "MIT/Apache-2.0" homepage = "https://gi...
1
1
1
dbd386d31144f065427368a8230135e5ee193f14
vladikoff
2018-05-20T21:01:54
(cargo-release) version 0.5.0
diff --git a/hkdf/Cargo.toml b/hkdf/Cargo.toml index ff22a36..eb9e9ce 100644 --- a/hkdf/Cargo.toml +++ b/hkdf/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "hkdf" -version = "0.4.1-alpha.0" +version = "0.5.0" authors = ["vladikoff", "warner", "RustCrypto Developers"] license = "MIT/Apache-2.0" homepage = "https://gi...
1
1
1
8240c79e854ea4c6cadc3ac87329c7c6c563c82e
Vlad Filippov
2018-05-20T20:46:48
Fix omitting HKDF salt and remove deprecated methods (#16)
diff --git a/hkdf/examples/main.rs b/hkdf/examples/main.rs index 45aaaa2..5e6a6b6 100644 --- a/hkdf/examples/main.rs +++ b/hkdf/examples/main.rs @@ -10,7 +10,7 @@ fn main() { let salt = hex::decode("000102030405060708090a0b0c").unwrap(); let info = hex::decode("f0f1f2f3f4f5f6f7f8f9").unwrap(); - let hk =...
2
27
26
3aca08186f52dce474c94f4db880dca43f7e239d
vladikoff
2018-03-21T03:20:48
(cargo-release) start next development iteration 0.4.1-alpha.0
diff --git a/Cargo.toml b/Cargo.toml index 52138bf..840c093 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "hkdf" -version = "0.4.0" +version = "0.4.1-alpha.0" authors = ["vladikoff", "warner"] license = "MIT" homepage = "https://github.com/vladikoff/rust-hkdf/"
1
1
1
833e352e30067338be384883d1918a9dc1bb904c
vladikoff
2018-03-21T03:20:07
(cargo-release) version 0.4.0
diff --git a/Cargo.toml b/Cargo.toml index e832976..52138bf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "hkdf" -version = "0.3.1-alpha.0" +version = "0.4.0" authors = ["vladikoff", "warner"] license = "MIT" homepage = "https://github.com/vladikoff/rust-hkdf/"
1
1
1
52cc3ea5aedc37a10561dfa2b20a94391a146131
Benjamin Saunders
2018-03-14T02:08:34
RFC-inspired interface
diff --git a/examples/main.rs b/examples/main.rs index ee837c3..45aaaa2 100644 --- a/examples/main.rs +++ b/examples/main.rs @@ -10,8 +10,8 @@ fn main() { let salt = hex::decode("000102030405060708090a0b0c").unwrap(); let info = hex::decode("f0f1f2f3f4f5f6f7f8f9").unwrap(); - let hk = Hkdf::<Sha256>::new...
2
28
17
7feadeb26358e8cadd48396b92eb56904076d438
Benjamin Saunders
2018-03-13T04:50:53
Reduce heap allocation, remove unnecessary mut, derive Clone
diff --git a/examples/main.rs b/examples/main.rs index f7495bf..ee837c3 100644 --- a/examples/main.rs +++ b/examples/main.rs @@ -10,7 +10,7 @@ fn main() { let salt = hex::decode("000102030405060708090a0b0c").unwrap(); let info = hex::decode("f0f1f2f3f4f5f6f7f8f9").unwrap(); - let mut hk = Hkdf::<Sha256>:...
2
16
14
864cb3338de1a565dd71a2eafac40f0503de97c2
Brian Warner
2017-11-30T02:43:33
update to hex-0.3 (#9)
diff --git a/Cargo.toml b/Cargo.toml index df94e71..e832976 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,7 +20,7 @@ hmac = "0.5.*" [dev-dependencies] crypto-tests = "0.5.*" -hex = "0.2.*" +hex = "0.3.*" sha-1 = "0.7.*" sha2 = "0.7.*" bencher = "0.1" diff --git a/examples/main.rs b/examples/main.rs index 47864...
3
23
24
cbc37942e51fce9f21aeb724fb0da8b580386b04
Brian Warner
2017-11-30T02:40:29
add "cargo bench" to run some simple benchmarks (#10)
diff --git a/Cargo.toml b/Cargo.toml index 3b16b33..df94e71 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -23,3 +23,8 @@ crypto-tests = "0.5.*" hex = "0.2.*" sha-1 = "0.7.*" sha2 = "0.7.*" +bencher = "0.1" + +[[bench]] +name = "hkdf" +harness = false diff --git a/benches/hkdf.rs b/benches/hkdf.rs new file mode 100644 ...
2
36
0
e35e489454ef230b6fd881d691063e3f5a336a8a
Vlad Filippov
2017-11-29T18:41:57
(cargo-release) start next development iteration 0.3.1-alpha.0
diff --git a/Cargo.toml b/Cargo.toml index de23406..3b16b33 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "hkdf" -version = "0.3.0" +version = "0.3.1-alpha.0" authors = ["vladikoff", "warner"] license = "MIT" homepage = "https://github.com/vladikoff/rust-hkdf/"
1
1
1
310f8ff6744d023690557479cf9ceedf105e3b22
Vlad Filippov
2017-11-29T18:41:44
(cargo-release) version 0.3.0
diff --git a/Cargo.toml b/Cargo.toml index de74af9..de23406 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "hkdf" -version = "0.2.1-alpha.0" +version = "0.3.0" authors = ["vladikoff", "warner"] license = "MIT" homepage = "https://github.com/vladikoff/rust-hkdf/"
1
1
1
916ae15f12bc62ac857edc65333eef9fd60e0579
Brian Warner
2017-11-29T16:10:47
update dependencies: digest-0.7, hmac-0.5 (#7) * update dependencies: digest-0.7, hmac-0.5 This involves a few internal API changes. Applications or libraries which use hkdf will almost certainly need to depend on e.g. sha2-0.7 instead of sha2-0.6, so when this change is released, we should bump the hkdf version ...
diff --git a/Cargo.toml b/Cargo.toml index d95d468..de74af9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,11 +15,11 @@ path = "src/hkdf.rs" [dependencies] generic-array = "0.9.*" -digest = "0.6.*" -hmac = "0.4.*" +digest = "0.7.*" +hmac = "0.5.*" [dev-dependencies] crypto-tests = "0.5.*" hex = "0.2.*" -sha-1...
2
17
11
81a2ec101c4461e811e1b8c1c989c0dba0d2f9c1
vladikoff
2017-09-21T18:04:18
(cargo-release) start next development iteration 0.2.1-alpha.0
diff --git a/Cargo.toml b/Cargo.toml index 3096ac9..d95d468 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "hkdf" -version = "0.2.0" +version = "0.2.1-alpha.0" authors = ["vladikoff", "warner"] license = "MIT" homepage = "https://github.com/vladikoff/rust-hkdf/"
1
1
1
f2ffe09a336028d2c4daaa8efea7f54688b9e71a
vladikoff
2017-09-21T18:03:59
(cargo-release) version 0.2.0
diff --git a/Cargo.toml b/Cargo.toml index 89560a7..3096ac9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "hkdf" -version = "0.1.3-alpha.0" +version = "0.2.0" authors = ["vladikoff", "warner"] license = "MIT" homepage = "https://github.com/vladikoff/rust-hkdf/"
1
1
1
b317274086ede1e83ffe62f35d1625f110bb9665
Brian Warner
2017-09-21T17:56:01
switch to RustCrypto traits, change API This moves away from rust-crypto to RustCrypto, which my rust+crypto friends tell me is the preferred approach these days. It modifies the HKDF API to instantiate the Hkdf object around a Digest trait, so instead of passing in "sha256" as a string, you use sha2::Sha256 and then ...
diff --git a/Cargo.toml b/Cargo.toml index c22fba7..8deeda6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,5 +14,12 @@ name = "hkdf" path = "src/hkdf.rs" [dependencies] -rust-crypto = "0.2.36" -rustc-serialize = "0.3.24" +generic-array = "0.9.*" +digest = "0.6.*" +hmac = "0.4.*" + +[dev-dependencies] +crypto-tests...
3
146
59
62afc81279e09e5913b2ca784aff0b83519f68b6
vladikoff
2017-09-21T17:04:37
(cargo-release) start next development iteration 0.1.3-alpha.0
diff --git a/Cargo.toml b/Cargo.toml index f0c963c..c22fba7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "hkdf" -version = "0.1.2" +version = "0.1.3-alpha.0" authors = ["vladikoff"] license = "MIT" homepage = "https://github.com/vladikoff/rust-hkdf/"
1
1
1
637ab8c49741f683b48ca79fd8b832e91617ee7b
vladikoff
2017-09-21T17:04:25
(cargo-release) version 0.1.2
diff --git a/Cargo.toml b/Cargo.toml index 8321648..f0c963c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "hkdf" -version = "0.1.1" +version = "0.1.2" authors = ["vladikoff"] license = "MIT" homepage = "https://github.com/vladikoff/rust-hkdf/"
1
1
1
94debf3f1e0df05d01cdb16d2fe49458d3487ab7
vladikoff
2017-09-21T17:04:19
Lock deps for publish
diff --git a/Cargo.toml b/Cargo.toml index 1bc8fd2..8321648 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,5 +14,5 @@ name = "hkdf" path = "src/hkdf.rs" [dependencies] -rust-crypto = "*" -rustc-serialize = "*" +rust-crypto = "0.2.36" +rustc-serialize = "0.3.24"
1
2
2
18ce5d8960a803874170c43b8e7149d306b8fa89
vladikoff
2017-09-21T16:57:54
Fix Digest import
diff --git a/src/hkdf.rs b/src/hkdf.rs index 45115ef..419924a 100644 --- a/src/hkdf.rs +++ b/src/hkdf.rs @@ -3,7 +3,6 @@ extern crate rustc_serialize; use std::cmp; use crypto::hmac; -use crypto::digest::Digest; use crypto::mac::Mac; use crypto::sha2::Sha256;
1
0
1
3673cf0f3c1825ad30d74aaf5c700495c1b91b75
Brian Warner
2015-12-21T07:20:02
test more lengths
diff --git a/src/hkdf.rs b/src/hkdf.rs index 26297da..45115ef 100644 --- a/src/hkdf.rs +++ b/src/hkdf.rs @@ -128,11 +128,20 @@ mod tests { } } + const MAX_SHA256_LENGTH: usize = 255 * (256 / 8); // =8160 + #[test] fn test_lengths() { let mut hkdf = Hkdf::new("SHA-256", &[], &[]); -...
1
13
4
7ee66a5a49ce3c3c791fd87a779ac54d86451c3d
Brian Warner
2015-12-21T05:00:14
fix block_size, clean up the expansion phase, do less work Crypto Background: HKDF generates the desired number of output bytes by running HMAC multiple times (as a chained PRNG that includes an incrementing counter for each block). HMAC itself is parameterized with a particular hash function (so there's HMAC-SHA256,...
diff --git a/src/hkdf.rs b/src/hkdf.rs index 9ef5d25..26297da 100644 --- a/src/hkdf.rs +++ b/src/hkdf.rs @@ -1,6 +1,7 @@ extern crate crypto; extern crate rustc_serialize; +use std::cmp; use crypto::hmac; use crypto::digest::Digest; use crypto::mac::Mac; @@ -8,7 +9,7 @@ use crypto::sha2::Sha256; pub struct Hk...
1
38
19
ef6dcdbb9872539daf26afe21721ebd9c48bea9a
Brian Warner
2015-12-21T02:40:41
run through rustfmt
diff --git a/src/hkdf.rs b/src/hkdf.rs index 248c8d2..9ef5d25 100644 --- a/src/hkdf.rs +++ b/src/hkdf.rs @@ -8,14 +8,14 @@ use crypto::sha2::Sha256; pub struct Hkdf { pub prk: Vec<u8>, - pub block_size: usize + pub block_size: usize, } impl Hkdf { pub fn new(digest: &str, ikm: &[u8], salt: &[u8])...
1
48
45
23a971c592eb1d9c8686712d16148837639644e5
Brian Warner
2015-12-21T02:38:36
tests: remove .to_string() calls, use &str instead
diff --git a/src/hkdf.rs b/src/hkdf.rs index 36f95ce..248c8d2 100644 --- a/src/hkdf.rs +++ b/src/hkdf.rs @@ -67,45 +67,45 @@ mod tests { use Hkdf; use rustc_serialize::hex::{ToHex,FromHex}; - struct Test { - digest: String, - ikm: String, - salt: String, - info: String, + s...
1
26
26
99c49ca71e4ffcf4168549b9e76c5f96b7df8ab4
Brian Warner
2015-12-21T00:44:04
update to work with rustc-1.5.0
diff --git a/examples/main.rs b/examples/main.rs index ceed396..b46bbe7 100644 --- a/examples/main.rs +++ b/examples/main.rs @@ -1,4 +1,4 @@ -extern crate "rustc-serialize" as rustc_serialize; +extern crate rustc_serialize; extern crate hkdf; use rustc_serialize::hex::{ToHex,FromHex}; @@ -9,8 +9,8 @@ fn main() { ...
2
23
28
267d9015a4fb0504caf16076a695dba0af448c86
Tony Arcieri
2026-04-14T17:28:29
Cargo.lock: bump dependencies (#881)
diff --git a/Cargo.lock b/Cargo.lock index fefccb1..7c2929a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -61,15 +61,15 @@ dependencies = [ [[package]] name = "belt-block" -version = "0.1.2" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d9aa1eef3994e2ccd304a78fe3fea...
1
31
31
e698b38ada047aa3b52bafae8e593dc4bd611459
Tony Arcieri
2026-04-07T20:35:00
argon2: add regression test for RustCrypto/traits#2352 (#879) This adds a test that non-default output lengths are correctly supported which was implemented in RustCrypto/traits#2370
diff --git a/Cargo.lock b/Cargo.lock index a3d9858..fefccb1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -421,8 +421,7 @@ dependencies = [ [[package]] name = "password-hash" version = "0.6.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ccbd25f71dd5249dba9ed843d52500c8757a25511560d01...
3
20
3
1bcae95527d18c2db1b5289c8344590df91996c6
Artyom Pavlov
2026-04-05T15:10:13
pbkdf2: remove outdated `Sync` bounds (#876) `Sync` bounds were used for `rayon`-based parallel processing support. It was removed in #702, but we forgot to remove the `Sync` bounds.
diff --git a/pbkdf2/src/lib.rs b/pbkdf2/src/lib.rs index ab66d46..782b0f3 100644 --- a/pbkdf2/src/lib.rs +++ b/pbkdf2/src/lib.rs @@ -163,7 +163,7 @@ pub fn pbkdf2<PRF>( res: &mut [u8], ) -> Result<(), InvalidLength> where - PRF: KeyInit + Update + FixedOutput + Clone + Sync, + PRF: KeyInit + Update + Fixed...
1
8
10
57d89c4bfabf1d0db2c8ba2f7f03ee7202595989
Tony Arcieri
2026-03-30T23:25:19
Bump `salsa20` dependency to v0.11 (#875) Release PR: RustCrypto/stream-ciphers#553
diff --git a/Cargo.lock b/Cargo.lock index 182a1fe..279989d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -535,9 +535,9 @@ checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d" [[package]] name = "salsa20" -version = "0.11.0-rc.2" +version = "0.11.0" source = "registry+https://github.com/rust...
3
4
4
4db687c3f934f8545c3d084a4efafb68cd4571ee
Tony Arcieri
2026-03-30T17:09:41
pbkdf2: bump `belt-hash` to v0.2 (#874)
diff --git a/pbkdf2/Cargo.toml b/pbkdf2/Cargo.toml index 37032af..bb606bc 100644 --- a/pbkdf2/Cargo.toml +++ b/pbkdf2/Cargo.toml @@ -24,7 +24,7 @@ password-hash = { version = "0.6", default-features = false, optional = true } sha2 = { version = "0.11", default-features = false, optional = true } [dev-dependencies] ...
1
1
1
e012984c5881f5041edb8ddc5b33cce50864baf7
Tony Arcieri
2026-03-30T16:43:12
Bump `sha1`, `sha2`, and `streebog` to v0.11 (#872) Release PRs: - `sha1`: RustCrypto/hashes#810 - `sha2`: RustCrypto/hashes#806 - `streebog`: RustCrypto/hashes#812
diff --git a/Cargo.lock b/Cargo.lock index 59ac87d..de3af0b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -14,7 +14,7 @@ version = "0.6.0-rc.8" dependencies = [ "base64ct", "blake2", - "cpufeatures 0.3.0", + "cpufeatures", "hex-literal", "kdf", "password-hash", @@ -156,15 +156,6 @@ version = "0.1.0" source = ...
7
18
27
1149045c09230eef5c6883df6699527f4195d358
Tony Arcieri
2026-03-30T16:30:21
Bump `hmac` dependency to v0.13 (#870) Release PR: RustCrypto/MACs#263
diff --git a/Cargo.lock b/Cargo.lock index 964bd60..59ac87d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -303,9 +303,9 @@ checksum = "e712f64ec3850b98572bffac52e2c6f282b29fe6c5fa6d42334b30be438d95c1" [[package]] name = "hmac" -version = "0.13.0-rc.6" +version = "0.13.0" source = "registry+https://github.com/rust-la...
3
5
5
8eddee880f9293f65fb3b51a49a96fd0fdca2403
Sebastian Messmer
2026-03-28T15:45:25
scrypt: remove incorrect N upper-bound check from Params::new (#867) RFC 7914 specifies `N < 2^(128 * r / 8)`, i.e. `log_n < r * 16`, but this constraint contains a unit error: a bit count was treated as a byte count. The correct bound from the original scrypt paper is `N < 2^(128*r)`, which far exceeds any practical ...
diff --git a/scrypt/src/params.rs b/scrypt/src/params.rs index de49a62..5609323 100644 --- a/scrypt/src/params.rs +++ b/scrypt/src/params.rs @@ -76,12 +76,15 @@ impl Params { // check that p * r * 128 doesn't overflow r128.checked_mul(p).ok_or(InvalidParams)?; - // This check required by Scry...
1
9
6
75491823086bd7049c2893aaba22843f0293d1db
Mike Mulchrone
2026-03-23T16:24:19
pbkdf2: add benchmarks for OWASP-recommended parameters (#862)
diff --git a/pbkdf2/benches/lib.rs b/pbkdf2/benches/lib.rs index 3045029..b9cbdfa 100644 --- a/pbkdf2/benches/lib.rs +++ b/pbkdf2/benches/lib.rs @@ -18,6 +18,19 @@ pub fn pbkdf2_hmac_sha256_16384_20(bh: &mut Bencher) { }); } +/// Benchmark PBKDF2-HMAC-SHA256 with 600,000 rounds. This is the recommended configur...
1
26
0
c6539fdd15bdc59ea6ee1dc10f361be3b97baaed
Tony Arcieri
2026-03-22T02:36:29
argon2 v0.6.0-rc.8 (#861)
diff --git a/Cargo.lock b/Cargo.lock index 6c5cb30..954fdb5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -10,7 +10,7 @@ checksum = "7f202df86484c868dbad7eaa557ef785d5c66295e41b460ef922eca0723b842c" [[package]] name = "argon2" -version = "0.6.0-rc.7" +version = "0.6.0-rc.8" dependencies = [ "base64ct", "blake2",...
2
2
2
e2040007a556c95e668ef0ca6fa339703f2c6718
Tony Arcieri
2026-03-20T16:06:51
pbkdf2 v0.13.0-rc.10 (#860)
diff --git a/Cargo.lock b/Cargo.lock index b015f4f..6c5cb30 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -440,7 +440,7 @@ dependencies = [ [[package]] name = "pbkdf2" -version = "0.13.0-rc.9" +version = "0.13.0-rc.10" dependencies = [ "belt-hash", "digest", diff --git a/bcrypt-pbkdf/Cargo.toml b/bcrypt-pbkdf/Ca...
6
6
6
e035b7f84f0efc617561fb19a3cf8ab59718cb63
Tony Arcieri
2026-03-20T15:52:27
Bump `hmac` to v0.13.0-rc.6 (#858)
diff --git a/Cargo.lock b/Cargo.lock index b88aced..1e8573b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -231,9 +231,9 @@ dependencies = [ [[package]] name = "digest" -version = "0.11.1" +version = "0.11.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "285743a676ccb6b3e116bc14cc69319...
3
7
7
7daa160aa1cf89c025df17a1ff73eb5c197bb2f0
Mike Mulchrone
2026-03-20T15:31:11
PBKDF2 OWASP Iteration Recommendations (#857) See https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html#pbkdf2 The OWASP recommended iterations for SHA512 is lower than 600,000. We already have removed SHA1 so we don't need to worry about that. The proposed solution for 210,000 iterations f...
diff --git a/pbkdf2/src/lib.rs b/pbkdf2/src/lib.rs index 3f011d9..ab66d46 100644 --- a/pbkdf2/src/lib.rs +++ b/pbkdf2/src/lib.rs @@ -297,10 +297,16 @@ pub struct Pbkdf2 { #[cfg(feature = "sha2")] impl Pbkdf2 { /// PBKDF2 configured with SHA-256 as the default. - pub const SHA256: Self = Self::new(Algorithm::P...
4
88
6
9f67258c5064acd6d82e8ac77ba463adb43e3656
Alexandr Kitaev
2026-03-19T14:44:31
pbkdf2: fix typo in STB number (#854)
diff --git a/pbkdf2/tests/pbkdf2.rs b/pbkdf2/tests/pbkdf2.rs index bd81a2e..b2182f7 100644 --- a/pbkdf2/tests/pbkdf2.rs +++ b/pbkdf2/tests/pbkdf2.rs @@ -80,7 +80,7 @@ fn pbkdf2_streebog() { ); } -/// Test vector from STB 4.101.45-2013 (page 33): +/// Test vector from STB 34.101.45-2013 (page 33): /// https://a...
1
1
1
58cbcbe2fd47ee2d7e88f40ac3fbe04e3d7c3b7a
Tony Arcieri
2026-03-10T01:03:29
Bump `digest` dependency to v0.11 (#849) Release PR: RustCrypto/traits#2300
diff --git a/balloon-hash/Cargo.toml b/balloon-hash/Cargo.toml index a1f2615..186b102 100644 --- a/balloon-hash/Cargo.toml +++ b/balloon-hash/Cargo.toml @@ -14,7 +14,7 @@ edition = "2024" rust-version = "1.85" [dependencies] -digest = { version = "0.11.0-rc.11", default-features = false } +digest = { version = "0.1...
2
2
2
b35d3616ea9de5367d8d5331e8e67700c916695a
Tony Arcieri
2026-03-10T00:44:38
Bump `password-hash` dependency to v0.6 (#848) Release PR: RustCrypto/traits#2338
diff --git a/Cargo.lock b/Cargo.lock index 289bdab..b88aced 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -14,7 +14,7 @@ version = "0.6.0-rc.7" dependencies = [ "base64ct", "blake2", - "cpufeatures", + "cpufeatures 0.3.0", "hex-literal", "kdf", "password-hash", @@ -165,6 +165,15 @@ dependencies = [ "libc", ...
8
23
14
4af0766d493284e49ac5f85e5e283b5d9f6379fe
Tony Arcieri
2026-03-09T23:56:56
argon2: bump `cpufeatures` to v0.3 (#847)
diff --git a/argon2/Cargo.toml b/argon2/Cargo.toml index c58e218..c25cf1a 100644 --- a/argon2/Cargo.toml +++ b/argon2/Cargo.toml @@ -27,7 +27,7 @@ password-hash = { version = "0.6.0-rc.12", optional = true, features = ["phc"] } zeroize = { version = "1", default-features = false, optional = true } [target.'cfg(any(...
1
1
1
6d24ae356d2bd49a294d52cfc15e9dbb5f19463e
Tony Arcieri
2026-03-08T18:57:04
Migrate from `subtle` to `ctutils` (#845) See RustCrypto/meta#29
diff --git a/Cargo.lock b/Cargo.lock index 2990de9..8a948d0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -548,6 +548,7 @@ name = "scrypt" version = "0.12.0-rc.10" dependencies = [ "cfg-if", + "ctutils", "kdf", "mcf", "password-hash", @@ -555,7 +556,6 @@ dependencies = [ "rayon", "salsa20", "sha2", - "sub...
7
11
17
f18321369e2b5b2db4b3ab91e2b21f9bba45ae70
Tony Arcieri
2026-03-08T18:44:40
Cargo.lock: bump dependencies (#843) Updates the following dependencies: $ cargo update Updating crates.io index Locking 21 packages to latest compatible versions Updating anyhow v1.0.101 -> v1.0.102 Updating bitflags v2.10.0 -> v2.11.0 Updating block-buffer v0.11.0 -> v0.12.0 Updating bu...
diff --git a/Cargo.lock b/Cargo.lock index 41952d0..2990de9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4,9 +4,9 @@ version = 4 [[package]] name = "anyhow" -version = "1.0.101" +version = "1.0.102" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5f0e0fee31ef5ed1ba1316088939cea399010e...
1
44
44
1e0f55385e004d6ef394bc01816f37fce22671fc
Tony Arcieri
2026-03-08T18:37:02
Bump `mcf` to v0.6 (#842) Release PR: RustCrypto/formats#2253
diff --git a/Cargo.lock b/Cargo.lock index b76a62a..41952d0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -379,9 +379,9 @@ checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897" [[package]] name = "mcf" -version = "0.6.0-rc.3" +version = "0.6.0" source = "registry+https://github.com/rust-lang/...
5
6
6
35b0f2ce169c0faa126e905a23ecf75637128824
Tony Arcieri
2026-02-02T04:12:17
Bump `kdf` dependency to v0.1 (#834) Initial stable release: RustCrypto/traits#2256
diff --git a/Cargo.lock b/Cargo.lock index cb69577..49daa03 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -348,9 +348,9 @@ dependencies = [ [[package]] name = "kdf" -version = "0.1.0-pre.1" +version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4852c654c9650d06a4293146ead04b...
6
7
7
7f42ad475074649aa526a409b99b3673b3ad8c64
Tony Arcieri
2026-01-24T17:12:24
Bump `password-hash` to v0.6.0-rc.11 (#829)
diff --git a/Cargo.lock b/Cargo.lock index 0b75ee8..576daeb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2,6 +2,12 @@ # It is not intended for manual editing. version = 4 +[[package]] +name = "anyhow" +version = "1.0.100" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a23eb6b1614318a...
8
303
14
53cd99e770546f344829078bf398b2582fdd9193
Artyom Pavlov
2026-01-21T17:57:43
scrypt: fix doctest gating (#828)
diff --git a/scrypt/src/lib.rs b/scrypt/src/lib.rs index 6993332..3402243 100644 --- a/scrypt/src/lib.rs +++ b/scrypt/src/lib.rs @@ -17,8 +17,14 @@ //! //! # Usage (simple PHC password hash usage with default params) //! -#![cfg_attr(all(feature = "alloc", feature = "getrandom"), doc = "```")] -#![cfg_attr(not(all(f...
1
8
2
747932ff07a82c653fe2d8f7d3a87a37c13013af
Tony Arcieri
2026-01-21T16:25:16
Cut new prereleases (#825) Releases the following: - `argon2` v0.6.0-rc.6 - `balloon-hash` v0.5.0-rc.4 - `bcrypt-pbkdf` v0.11.0-rc.3 - `pbkdf2` v0.13.0-rc.8 - `scrypt` v0.12.0-rc.9 - `sha-crypt` v0.6.0-rc.3 - `yescrypt` v0.1.0-rc.4
diff --git a/Cargo.lock b/Cargo.lock index d5336de..0b75ee8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4,7 +4,7 @@ version = 4 [[package]] name = "argon2" -version = "0.6.0-rc.5" +version = "0.6.0-rc.6" dependencies = [ "base64ct", "blake2", @@ -24,7 +24,7 @@ checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c08670...
9
23
23
449bd9e75355946090d23ed42ec4623a84dbc4af
Tony Arcieri
2026-01-21T00:16:43
scrypt: remove `Display`/`FromStr` impls from `Params` (#824) Also bumps `password-hash` to v0.6.0-rc.10, which permits these bounds. They were previously impl'd using the PHC params syntax, but now that we've added MCF support (#806) there isn't one-true-serialization that actually makes sense to use. In such a cas...
diff --git a/Cargo.lock b/Cargo.lock index 2f5475d..d5336de 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -325,9 +325,9 @@ dependencies = [ [[package]] name = "password-hash" -version = "0.6.0-rc.9" +version = "0.6.0-rc.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "35d7cb93fb02e6e...
9
10
35
cd61372f9957a10422bd47ee4b723c5980d37121
Tony Arcieri
2026-01-20T18:59:48
bcrypt-pbkdf + password-auth: remove/disable `std` features (#822) These features are literally doing nothing other than linking `std`. They seem to be vestiges of `std::error::Error`. - Removes the feature from `bcrypt-pbkdf` completely - Makes it a no-op in `password-auth`, but doesn't remove it because it would be...
diff --git a/bcrypt-pbkdf/Cargo.toml b/bcrypt-pbkdf/Cargo.toml index e125b94..ee8fb73 100644 --- a/bcrypt-pbkdf/Cargo.toml +++ b/bcrypt-pbkdf/Cargo.toml @@ -25,9 +25,8 @@ zeroize = { version = "1", default-features = false, optional = true } hex-literal = "1" [features] -default = ["alloc", "std"] +default = ["allo...
4
3
8
be593db72744e2f90373f5f70a94986bc2d4ff93
Tony Arcieri
2026-01-20T18:33:58
Bump `password-hash` to v0.6.0-rc.9 (#821)
diff --git a/Cargo.lock b/Cargo.lock index a3ddd07..b5c45cd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -317,9 +317,9 @@ dependencies = [ [[package]] name = "password-hash" -version = "0.6.0-rc.8" +version = "0.6.0-rc.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f77af9403a6489b7...
8
11
11
a6bc5d42aced30598b67cea5d179794e90783e59
Tony Arcieri
2026-01-20T18:18:34
bcrypt-pbkdf: move `pub fn`s to top of file (#820) Puts the public API at the forefront, rather than the implementation details
diff --git a/bcrypt-pbkdf/src/lib.rs b/bcrypt-pbkdf/src/lib.rs index e1ed574..aef7a17 100644 --- a/bcrypt-pbkdf/src/lib.rs +++ b/bcrypt-pbkdf/src/lib.rs @@ -37,80 +37,6 @@ const BHASH_WORDS: usize = 8; const BHASH_OUTPUT_SIZE: usize = BHASH_WORDS * 4; const BHASH_SEED: &[u8; BHASH_OUTPUT_SIZE] = b"OxychromaticBlowfis...
1
74
74
07dd94075c252a128b165cd34b008878bdaa3f8b
Tony Arcieri
2026-01-12T14:29:29
Bump pbkdf2 to v0.13.0-rc.7
diff --git a/bcrypt-pbkdf/Cargo.toml b/bcrypt-pbkdf/Cargo.toml index efa9740..e125b94 100644 --- a/bcrypt-pbkdf/Cargo.toml +++ b/bcrypt-pbkdf/Cargo.toml @@ -15,7 +15,7 @@ rust-version = "1.85" [dependencies] blowfish = { version = "0.10.0-rc.2", features = ["bcrypt"] } -pbkdf2 = { version = "0.13.0-rc.6", default-f...
4
4
4
85b5c61d79df5650b982dd5dd64b592ae054b4cf
Tony Arcieri
2026-01-12T14:13:45
pbkdf2 v0.13.0-rc.7 (#818)
diff --git a/Cargo.lock b/Cargo.lock index 45be5bf..84b0b02 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -328,7 +328,7 @@ dependencies = [ [[package]] name = "pbkdf2" -version = "0.13.0-rc.6" +version = "0.13.0-rc.7" dependencies = [ "belt-hash", "digest", diff --git a/pbkdf2/Cargo.toml b/pbkdf2/Cargo.toml inde...
2
2
2
bf6c9560d0e7f99929fadccd2efc1e8be1f2f633
Tony Arcieri
2026-01-12T04:56:17
pbkdf2: use `Base64::Pbkdf2` (#815) Use support for PBKDF2's special Base64 alphabet now natively implemented in the `base64ct` and `mcf` crates in RustCrypto/formats#2168.
diff --git a/Cargo.lock b/Cargo.lock index 0ca2c6c..828c71a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -36,9 +36,9 @@ dependencies = [ [[package]] name = "base64ct" -version = "1.8.2" +version = "1.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7d809780667f4410e7c41b07f52439b94...
4
19
39
1b669a0615ee96501b18afb2ea54171f8264dde0
Tony Arcieri
2026-01-12T01:02:13
sha-crypt: add `ShaCrypt::SHA256` and `ShaCrypt::SHA512` (#813) Associated constants which are each configured using the default recommended `Parameters` but the respective SHA-family algorithm
diff --git a/sha-crypt/src/mcf.rs b/sha-crypt/src/mcf.rs index 889499e..13fcfdd 100644 --- a/sha-crypt/src/mcf.rs +++ b/sha-crypt/src/mcf.rs @@ -23,8 +23,14 @@ pub struct ShaCrypt { } impl ShaCrypt { + /// SHA-crypt configured with SHA-256 as the default. + pub const SHA256: Self = Self::new(Algorithm::Sha256...
2
15
6
2ac5d0d4e1932e3e7d5f99609d8244d53eed087e
Tony Arcieri
2026-01-12T00:52:58
password-auth v1.1.0-rc.1 (#812)
diff --git a/Cargo.lock b/Cargo.lock index d92f23a..0ca2c6c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -306,7 +306,7 @@ checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d" [[package]] name = "password-auth" -version = "1.1.0-rc.0" +version = "1.1.0-rc.1" dependencies = [ "argon2", "g...
5
6
6
bbbd84040eae63a6b8e792e4bd40dc024fcfc068
Tony Arcieri
2026-01-12T00:45:31
pbkdf2 v0.13.0-rc.6 (#811)
diff --git a/Cargo.lock b/Cargo.lock index 564b306..d92f23a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -328,7 +328,7 @@ dependencies = [ [[package]] name = "pbkdf2" -version = "0.13.0-rc.5" +version = "0.13.0-rc.6" dependencies = [ "belt-hash", "digest", diff --git a/pbkdf2/Cargo.toml b/pbkdf2/Cargo.toml inde...
4
5
11
2d1dbd20c5c5c6ad0d41662690b325542c539b22
Tony Arcieri
2026-01-12T00:38:51
pbkdf2: fallible `Params` constructors (#810) Ensures the rounds are set to an acceptable minimum and that the output length falls within the range `10..=64` bytes.
diff --git a/pbkdf2/src/mcf.rs b/pbkdf2/src/mcf.rs index 988a329..7304a44 100644 --- a/pbkdf2/src/mcf.rs +++ b/pbkdf2/src/mcf.rs @@ -40,7 +40,7 @@ impl CustomizedPasswordHasher<PasswordHash> for Pbkdf2 { return Err(Error::Version); } - let mut buffer = [0u8; Params::MAX_LENGTH]; + ...
3
51
30
a5b3e25d49ac8892d950e30adf6910e2d4ad27b3
Tony Arcieri
2026-01-12T00:23:49
pbkdf2: impl `PasswordVerifier<mcf::PasswordHash>` (#809) Adds support for verifying password hashes in MCF format.
diff --git a/pbkdf2/src/mcf.rs b/pbkdf2/src/mcf.rs index dfd531a..988a329 100644 --- a/pbkdf2/src/mcf.rs +++ b/pbkdf2/src/mcf.rs @@ -1,22 +1,25 @@ //! Implementation of the `password-hash` traits for Modular Crypt Format (MCF) password hash -//! strings which begin with `$7$`: +//! strings which begin with `$pbkdf$`, ...
1
91
11
7c232a7bd8c654b53882fbdac1c3259a932243e5
Tony Arcieri
2026-01-11T23:59:36
pbkdf2: fix MCF Base64; add SHA-512 MCF support (#808) I discovered these test vectors from a Go port of Passlib: https://github.com/hlandau/passlib/blob/8f820e0/hash/pbkdf2/pbkdf2_test.go ...and also checked against the Python implementation of Passlib itself, and discovered PBKDF2 seems to use its own variant of B...
diff --git a/pbkdf2/src/lib.rs b/pbkdf2/src/lib.rs index f11a5f6..b04e1f9 100644 --- a/pbkdf2/src/lib.rs +++ b/pbkdf2/src/lib.rs @@ -93,6 +93,9 @@ //! # } //! ``` +#[cfg(feature = "mcf")] +extern crate alloc; + #[cfg(feature = "mcf")] pub mod mcf; #[cfg(feature = "phc")] @@ -270,6 +273,15 @@ pub struct Pbkdf2 { ...
4
97
30
53498b3138729dfa491f730664587eb9ec3c1c7c
Tony Arcieri
2026-01-11T23:22:58
Bump `password-hash` dependency to v0.6.0-rc.8 (#807)
diff --git a/Cargo.lock b/Cargo.lock index c70950c..564b306 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -317,8 +317,9 @@ dependencies = [ [[package]] name = "password-hash" -version = "0.6.0-rc.7" -source = "git+https://github.com/RustCrypto/traits#e90f599772cfeb6adf375eebf4ce3c320f9b7f1b" +version = "0.6.0-rc.8" +...
9
10
11
74c160d5b5af1514827321ba7b338296692e1926
Tony Arcieri
2026-01-11T23:04:45
pbkdf2: initial MCF `(Customized)PasswordHasher` support (#806) Initial support for computing password hash strings in Modular Crypt Format (MCF) instead of the PHC string format. Tested against a vector from passlib: https://passlib.readthedocs.io/en/stable/lib/passlib.hash.pbkdf2_digest.html TODO: `PasswordVerifi...
diff --git a/.readme/Cargo.toml b/.readme/Cargo.toml index 6907078..d67e13b 100644 --- a/.readme/Cargo.toml +++ b/.readme/Cargo.toml @@ -8,5 +8,5 @@ publish = false [dependencies] password-hash = "0.6.0-rc.3" argon2 = { path = "../argon2" } -pbkdf2 = { path = "../pbkdf2", features = ["password-hash"] } +pbkdf2 = { p...
16
326
156
62dd4ad6543fbcf729ab8cd3d1b63e1bbf59a9e0
Tony Arcieri
2026-01-11T19:43:37
pbkdf2: have `Pbkdf2::new` take algorithm/params args (#805) Changes this constructor to allow it to customize both the algorithm and params, leaving `From` impls for `Algorithm` and `Params` as the way to customize one or the other while using defaults for the one not explicitly specified.
diff --git a/pbkdf2/src/lib.rs b/pbkdf2/src/lib.rs index 55f3760..eef6fcb 100644 --- a/pbkdf2/src/lib.rs +++ b/pbkdf2/src/lib.rs @@ -69,8 +69,8 @@ //! Pbkdf2 //! }; //! -//! let pbkdf2 = Pbkdf2::new(); // Uses `Params::RECOMMENDED` -//! let password = b"hunter42"; // Bad password; don't actually use! +//! let pb...
3
14
10
b0de9cbab0215140184c3168a31eb69fc61cb9cd
Tony Arcieri
2026-01-11T19:25:55
yescrypt v0.1.0-rc.3 (#804)
diff --git a/Cargo.lock b/Cargo.lock index 2cd235e..aca1df6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -575,7 +575,7 @@ checksum = "f17a85883d4e6d00e8a97c586de764dabcc06133f7f1d55dce5cdc070ad7fe59" [[package]] name = "yescrypt" -version = "0.1.0-rc.2" +version = "0.1.0-rc.3" dependencies = [ "hex-literal", "h...
2
2
2
2fc7af5ab9b3cd3b7963dd0dd467507770901c69
Tony Arcieri
2026-01-11T19:21:09
pbkdf2: factor `Algorithm` and `Params` into modules (#803) Moves these types out of the `phc` module, which should make it easier to add MCF support (#747)
diff --git a/Cargo.lock b/Cargo.lock index dbb1cd3..2cd235e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -444,7 +444,7 @@ dependencies = [ [[package]] name = "sha-crypt" -version = "0.6.0-rc.1" +version = "0.6.0-rc.2" dependencies = [ "base64ct", "mcf", diff --git a/pbkdf2/src/algorithm.rs b/pbkdf2/src/algorith...
6
247
240
90adb3088600e4fa7e31819aaaabbdcf1d29be47
Tony Arcieri
2026-01-11T19:07:48
yescrypt: configurable `Params` for `Yescrypt` hasher (#802) Support for configuring the default `Params` to use when computing new Modular Crypt Format (MCF) hashes from a given password and salt
diff --git a/yescrypt/src/lib.rs b/yescrypt/src/lib.rs index 35df40b..f65e49e 100644 --- a/yescrypt/src/lib.rs +++ b/yescrypt/src/lib.rs @@ -32,12 +32,13 @@ //! //! use yescrypt::{Yescrypt, PasswordHasher, PasswordVerifier}; //! +//! let yescrypt = Yescrypt::default(); //! let password = b"pleaseletmein"; // don't ...
3
22
10
271e78071b6a65f4514d346d234529f4af04872f
Tony Arcieri
2026-01-11T18:51:26
sha-crypt: customized `Params` for `ShaCrypt` (#801) Adds the ability to customize the default params used by `ShaCrypt`, the Modular Crypt Format password hasher.
diff --git a/sha-crypt/src/lib.rs b/sha-crypt/src/lib.rs index 28d3748..3120900 100644 --- a/sha-crypt/src/lib.rs +++ b/sha-crypt/src/lib.rs @@ -71,7 +71,7 @@ pub const BLOCK_SIZE_SHA512: usize = 64; /// - `params`: the parameters to use /// /// **WARNING: Make sure to compare this value in constant time!** -pub f...
3
35
12
bc20e5d45d8a2e671251d81f4072aed5d8d80450
Tony Arcieri
2026-01-03T22:52:37
Cut new prereleases of `mcf`-dependent crates (#796) Releases the following: - `scrypt` v0.12.0-rc.8 - `sha-crypt` v0.6.0-rc.1 - `yescrypt` v0.1.0-rc.2
diff --git a/Cargo.lock b/Cargo.lock index d69860a..eedf9e5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -430,7 +430,7 @@ dependencies = [ [[package]] name = "scrypt" -version = "0.12.0-rc.7" +version = "0.12.0-rc.8" dependencies = [ "cfg-if", "mcf", @@ -444,7 +444,7 @@ dependencies = [ [[package]] name = "...
4
6
6
cc29c9322a0680a89b6127ad8a4772b75b93ec29
Tony Arcieri
2026-01-03T22:39:02
Cargo.lock: bump dependencies (#795) Updates the following dependencies: $ cargo update Updating crates.io index Locking 12 packages to latest compatible versions Updating base64ct v1.8.1 -> v1.8.2 Updating bumpalo v3.19.0 -> v3.19.1 Updating cipher v0.5.0-rc.2 -> v0.5.0-rc.3 Adding cmo...
diff --git a/Cargo.lock b/Cargo.lock index 3d4c296..d69860a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -36,9 +36,9 @@ dependencies = [ [[package]] name = "base64ct" -version = "1.8.1" +version = "1.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0e050f626429857a27ddccb31e0aca213...
1
36
22
918ad45ff3a2b74d427f737bd70e952efda2d9fe
Tony Arcieri
2026-01-03T22:34:36
Bump `mcf` to v0.6.0-rc.2 (#794)
diff --git a/Cargo.lock b/Cargo.lock index a3d3f26..3d4c296 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -97,9 +97,9 @@ dependencies = [ [[package]] name = "bumpalo" -version = "3.19.1" +version = "3.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5dd9dc738b7a8311c7ade152424974d8...
7
21
21
1c5b8f4aece39e191c1fc9ef3410ed21ca9eb3ef
饺子w (Yumechi)
2025-12-29T15:45:57
scrypt: SSE2/simd128 RoMix data layout optimization (#622) Prearranged data into 128bit lanes so we don't have to transpose back and forth in the BlockMix Salsa20 kernel on SSE2. The permute constants are the same as https://github.com/RustCrypto/stream-ciphers/blob/07ee501/salsa20/src/backends/soft.rs#L54-L57 read c...
diff --git a/Cargo.lock b/Cargo.lock index 46528d6..a3d3f26 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -418,6 +418,7 @@ dependencies = [ name = "scrypt" version = "0.12.0-rc.7" dependencies = [ + "cfg-if", "mcf", "password-hash", "pbkdf2", diff --git a/scrypt/Cargo.toml b/scrypt/Cargo.toml index fd99ebd..39fe...
9
305
38
31bbe6e4476876357eddd4161d2941f8eaf83ff8
Tony Arcieri
2025-12-27T16:42:57
Bump `mcf` to v0.6.0-rc.1 (#789)
diff --git a/Cargo.lock b/Cargo.lock index 01d08b2..e5b43cb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -268,9 +268,9 @@ checksum = "2874a2af47a2325c2001a6e6fad9b16a53b802102b528163885171cf92b15976" [[package]] name = "mcf" -version = "0.6.0-rc.0" +version = "0.6.0-rc.1" source = "registry+https://github.com/rust-...
4
5
5
495f34086a0c85af2bc59a1481b91b6fd7d8c5b5
Tony Arcieri
2025-12-19T00:29:47
scrypt: rename `rayon` feature to `parallel` (#785) `rayon` is an implementation detail of parallel password hash computation, not the actual feature. `parallel` matches the existing `argon2` crate feature.
diff --git a/scrypt/Cargo.toml b/scrypt/Cargo.toml index 137d9ee..91123fc 100644 --- a/scrypt/Cargo.toml +++ b/scrypt/Cargo.toml @@ -31,7 +31,7 @@ getrandom = ["password-hash", "password-hash/getrandom"] mcf = ["alloc", "password-hash", "dep:mcf", "dep:subtle"] phc = ["password-hash/phc"] rand_core = ["password-hash...
2
5
5
a2755f882431cb1f6a53bc052c59b2271353b980
Tony Arcieri
2025-12-18T23:46:54
scrypt v0.12.0-rc.7 (#784)
diff --git a/Cargo.lock b/Cargo.lock index 7bc970c..01d08b2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -416,7 +416,7 @@ dependencies = [ [[package]] name = "scrypt" -version = "0.12.0-rc.6" +version = "0.12.0-rc.7" dependencies = [ "mcf", "password-hash", diff --git a/scrypt/Cargo.toml b/scrypt/Cargo.toml ind...
2
2
2
3f071f21a2c0e4b17434f654549b7bd2699b8293
Tony Arcieri
2025-12-17T01:14:37
yescrypt: small `Params` code improvements and comments (#782)
diff --git a/scrypt/src/mcf.rs b/scrypt/src/mcf.rs index 2621f11..74a783b 100644 --- a/scrypt/src/mcf.rs +++ b/scrypt/src/mcf.rs @@ -203,10 +203,10 @@ fn decode64_uint32(src: &[u8]) -> Result<u32> { for i in 0..ENCODED_U32_LEN { let n = *src .get(i) - .and_then(|&b| ATOI64.get(b as...
2
19
10
b8f1d1663cc76f39c813d0dee06d3a9a54cd483e
Tony Arcieri
2025-12-17T00:56:14
scrypt: add MCF support (#781) Information about the scrypt MCF format comes largely from libxcrypt: https://github.com/besser82/libxcrypt/blob/a74a677/lib/crypt-scrypt.c The format is somewhat like yescrypt in that it uses a special binary encoding of the parameters which is then serialized as little endian crypt-l...
diff --git a/.readme/Cargo.toml b/.readme/Cargo.toml index 3fe88d6..6907078 100644 --- a/.readme/Cargo.toml +++ b/.readme/Cargo.toml @@ -9,4 +9,4 @@ publish = false password-hash = "0.6.0-rc.3" argon2 = { path = "../argon2" } pbkdf2 = { path = "../pbkdf2", features = ["password-hash"] } -scrypt = { path = "../scrypt...
11
369
66
ff2f419bcb497cf64bcc6813ab5b32c97d5c3d8a
Tony Arcieri
2025-12-14T19:30:25
Add `PasswordVerifier<str>` impls (#779) For algorithms where there is only one canonical encoding (PHC or MCF), adds `PasswordVerifier<str>` impls which mean the user doesn't have to first parse the hash. It would be good if there were a better conversion from `mcf::Error` to `password_hash::Error`, perhaps the latt...
diff --git a/argon2/src/lib.rs b/argon2/src/lib.rs index 674e463..0794561 100644 --- a/argon2/src/lib.rs +++ b/argon2/src/lib.rs @@ -649,7 +649,7 @@ impl PasswordHasher<PasswordHash> for Argon2<'_> { password: &[u8], salt: &[u8], ) -> password_hash::Result<PasswordHash> { - let salt = Salt...
6
45
8
ff35e769c5b0e53e8ab3f00dd030c1386ac6a7f0
Tony Arcieri
2025-12-13T22:28:33
Cut new releases (#778) Releases the following crates: - argon2 v0.6.0-rc.5 - balloon-hash v0.5.0-rc.3 - password-auth v1.1.0-rc.0 - pbkdf2 v0.13.0-rc.5 - scrypt v0.12.0-rc.6 - sha-crypt v0.6.0-rc.0 - yescrypt v0.1.0-rc.1
diff --git a/Cargo.lock b/Cargo.lock index 83c29a5..b681e90 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4,7 +4,7 @@ version = 4 [[package]] name = "argon2" -version = "0.6.0-rc.4" +version = "0.6.0-rc.5" dependencies = [ "base64ct", "blake2", @@ -23,7 +23,7 @@ checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c08670...
8
20
20
13c57bed685efe0b981511f991618ccd4caa3f5c
Tony Arcieri
2025-12-13T22:17:56
Bump `password-hash` dependency to v0.6.0-rc.6 (#777)
diff --git a/Cargo.lock b/Cargo.lock index 50539d8..83c29a5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -303,8 +303,9 @@ dependencies = [ [[package]] name = "password-hash" -version = "0.6.0-rc.5" -source = "git+https://github.com/RustCrypto/traits#19aa016b72368f2635dfa712e9621f95e184df2a" +version = "0.6.0-rc.6" +...
8
9
10
185833afc71a893f39ccf6c922c54126e77767ea
Tony Arcieri
2025-12-12T20:26:02
sha-crypt: unify `ShaCrypt` trait impls for Sha256/512 (#773) Adds a `ShaCryptCore` trait and impls it for `ShaCrypt<Sha256>` and `ShaCrypt<Sha512>`, which specifies the MCF ID and core function, including handling the digest-specific transposition tables. This allows the `(Customized)PasswordHasher` and `PasswordVer...
diff --git a/sha-crypt/src/consts.rs b/sha-crypt/src/consts.rs deleted file mode 100644 index f7fb4c0..0000000 --- a/sha-crypt/src/consts.rs +++ /dev/null @@ -1,50 +0,0 @@ -/// Block size for SHA256 -pub const BLOCK_SIZE_SHA256: usize = 32; - -/// Block size for SHA512 -pub const BLOCK_SIZE_SHA512: usize = 64; - -/// I...
5
107
210
d48762ae26a963edd166a2bd374ef88df96b331f
Tony Arcieri
2025-12-12T17:54:24
sha-crypt: unify `Params` type (#772) The previous `Sha256Params` and `Sha512Params` types were otherwise identical, so this commit unifies them into a single type
diff --git a/sha-crypt/src/errors.rs b/sha-crypt/src/errors.rs index d471cfd..e7bf4d2 100644 --- a/sha-crypt/src/errors.rs +++ b/sha-crypt/src/errors.rs @@ -2,6 +2,9 @@ use core::fmt; +/// Result type for the `sha-crypt` crate with its [`Error`] type. +pub type Result<T> = core::result::Result<T, Error>; + /// Er...
5
91
143
98465de65ad0cd74f5ad14a1f80a189ea165de43
Tony Arcieri
2025-12-11T21:55:00
Use `mcf` and `password-hash` crate releases (#770) Switches from git to `mcf` v0.6.0-rc.0 and `password-hash` v0.6.0-rc.5
diff --git a/Cargo.lock b/Cargo.lock index 1a69876..dbd1bab 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -270,8 +270,9 @@ checksum = "2874a2af47a2325c2001a6e6fad9b16a53b802102b528163885171cf92b15976" [[package]] name = "mcf" -version = "0.6.0-pre" -source = "git+https://github.com/RustCrypto/formats#6863922a04b2fce8...
9
14
15
3b54ad00af8dfbad192af0410d515e61da5a24b1
Tony Arcieri
2025-12-11T05:20:43
Leverage `password-hash/getrandom` (#769) Companion PR to RustCrypto/traits#2123 The aforementioned traits PR renames `PasswordHash::hash_password` to `hash_password_with_salt`, so this PR updates the method name change accordingly. When the `getrandom` feature is enabled, it provides a new `PasswordHash::hash_passw...
diff --git a/Cargo.lock b/Cargo.lock index 0ba51b4..1a69876 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -306,8 +306,9 @@ dependencies = [ [[package]] name = "password-hash" version = "0.6.0-rc.4" -source = "git+https://github.com/RustCrypto/traits#c1a92e9ac52f9201e1a3503b2ecd63007027b157" +source = "git+https://gith...
18
62
65
c0a6be5882df0ee335ab71e1508b8d851aad92b7
Tony Arcieri
2025-12-11T05:00:55
argon2+ballon-hash: remove `std` feature (#768) After #767 it is no longer used This is technically true of `password-hash` as well, but as a post-1.0 crate we can't remove the `std` feature there
diff --git a/argon2/Cargo.toml b/argon2/Cargo.toml index d830c86..6a25e05 100644 --- a/argon2/Cargo.toml +++ b/argon2/Cargo.toml @@ -35,7 +35,6 @@ hex-literal = "1" [features] default = ["alloc", "getrandom", "simple"] alloc = ["password-hash?/alloc"] -std = ["alloc", "base64ct/std"] getrandom = ["simple", "phc/g...
4
1
9
6555ab2e23463b94a0039cc04774db013213b0e6
Tony Arcieri
2025-12-11T04:49:42
Switch from `std::error::Error` to `core::error::Error` (#767) The latter was being used in some places, but not consistently. Notably this gets rid of the `std` dependency on various test examples.
diff --git a/argon2/src/lib.rs b/argon2/src/lib.rs index 0a1b7a2..5fc1f3c 100644 --- a/argon2/src/lib.rs +++ b/argon2/src/lib.rs @@ -32,12 +32,9 @@ //! password-based authentication. Do not use this API to derive cryptographic //! keys: see the "key derivation" usage example below. //! -#![cfg_attr(all(feature = "pa...
7
34
36
0fe48381b19201d71af78bfad6cdf11dbeb7d43b
Tony Arcieri
2025-12-11T00:40:02
yescrypt: rename `yescrypt_kdf` => `yescrypt` (#766) There is no longer a conflict with the Modular Crypt Format (MCF) API after #765. This renames the KDF function to match the crate name, similar to `pbkdf2::pbkdf2` and `scrypt::scrypt`.
diff --git a/yescrypt/src/lib.rs b/yescrypt/src/lib.rs index e844871..eb3313a 100644 --- a/yescrypt/src/lib.rs +++ b/yescrypt/src/lib.rs @@ -50,7 +50,7 @@ //! let params = yescrypt::Params::default(); // use recommended settings //! //! let mut output = [0u8; 32]; // can be sized as desired -//! yescrypt::yescrypt_k...
3
48
37
86182f6728d96cc3fbb9c2ae456819680dfcc377
Tony Arcieri
2025-12-10T20:01:20
yescrypt: impl `password-hash` traits (#765) Now that the password hash traits have been decoupled from the PHC format, this impls them for `yescrypt`, replacing the previous `simple` API with one based on the traits. In the process this also bumps `mcf` to the latest prerelease which included some useful changes to ...
diff --git a/Cargo.lock b/Cargo.lock index 11993d7..0ba51b4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -270,9 +270,8 @@ checksum = "2874a2af47a2325c2001a6e6fad9b16a53b802102b528163885171cf92b15976" [[package]] name = "mcf" -version = "0.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checks...
8
171
118
d77b99157f304d7eca8985ee2fddd1710c6ae06c
Tony Arcieri
2025-12-10T01:44:21
Cut new prereleases (#763) These use the recently extracted `phc` crate (#761) Releases the following: - `argon2` v0.6.0-rc.4 - `balloon-hash` v0.5.0-rc.2 - `password-auth` v1.1.0-pre.3 - `pbkdf2` v0.13.0-rc.4 - `scrypt` v0.12.0-rc.5
diff --git a/Cargo.lock b/Cargo.lock index fe28163..11993d7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4,7 +4,7 @@ version = 4 [[package]] name = "argon2" -version = "0.6.0-rc.3" +version = "0.6.0-rc.4" dependencies = [ "base64ct", "blake2", @@ -24,14 +24,13 @@ checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086...
9
21
18
18fa3cdd95df9940b4d61dc84823906856467f7f
Tony Arcieri
2025-12-10T00:50:14
Use `phc` crate prerelease (#762) Switches from git for sourcing `password-hash` and `phc` to the following crate prereleases: - `password-hash` v0.6.0-rc.4 - `phc` v0.6.0-rc.0
diff --git a/Cargo.lock b/Cargo.lock index 0f5d588..fe28163 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -307,8 +307,9 @@ dependencies = [ [[package]] name = "password-hash" -version = "0.6.0-rc.3" -source = "git+https://github.com/RustCrypto/traits#8b33a0834d1222b290bf5af28802f166ae18c58c" +version = "0.6.0-rc.4" +...
7
16
18
c9efabb2596f1c90559c209bcfa8ca359691569f
Tony Arcieri
2025-12-09T20:11:50
pbkdf2: remove `std` feature (#760) It no longer does anything
diff --git a/pbkdf2/Cargo.toml b/pbkdf2/Cargo.toml index b16d371..a22565d 100644 --- a/pbkdf2/Cargo.toml +++ b/pbkdf2/Cargo.toml @@ -32,7 +32,6 @@ belt-hash = "0.2.0-rc.3" [features] default = ["hmac"] -std = [] getrandom = ["simple", "password-hash/getrandom"] simple = ["getrandom", "hmac", "password-hash", "sha...
1
0
1
c30aea6f10754b2f7dcfcf6d41de0e202be657c7
Tony Arcieri
2025-12-07T17:12:31
Cut new prereleases (#758) Releases the following: - `argon2` v0.6.0-rc.3 - `balloon-hash` v0.5.0-rc.1 - `password-auth` v1.1.0-pre.2 - `pbkdf2` v0.13.0-rc.3 - `scrypt` v0.12.0-rc.4
diff --git a/.readme/Cargo.toml b/.readme/Cargo.toml index 4f8fea9..c957c27 100644 --- a/.readme/Cargo.toml +++ b/.readme/Cargo.toml @@ -1,12 +1,12 @@ [package] name = "readme" description = "rustdoc tests for toplevel README.md" -version = "0.1.0" +version = "0.0.0" edition = "2021" publish = false [dependenci...
7
13
13
27e28401be25be714d68be72b50334add3982837
Tony Arcieri
2025-12-07T04:23:56
Bump `password-hash` to v0.6.0-rc.3 (#757) Also fixes deprecations
diff --git a/Cargo.lock b/Cargo.lock index 9577ac6..eae06ce 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -304,8 +304,9 @@ dependencies = [ [[package]] name = "password-hash" -version = "0.6.0-rc.2" -source = "git+https://github.com/RustCrypto/traits#9c5a7f6b3c7dddfe1360c0245fb188697fe9e084" +version = "0.6.0-rc.3" +...
12
25
24
2915b8662c903d39d409518c9ff4afa1941a855b
Tony Arcieri
2025-12-07T02:59:59
Remove `Salt` lifetime (#755) Companion PR to RustCrypto/traits#2109
diff --git a/Cargo.lock b/Cargo.lock index 88cd9e8..cd95fe1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -305,7 +305,7 @@ dependencies = [ [[package]] name = "password-hash" version = "0.6.0-rc.2" -source = "git+https://github.com/RustCrypto/traits#dcd3c66232e4c1953f2d7a4d5f5f54b7bacf90a2" +source = "git+https://gith...
14
94
110
9a459c3ab3bcf8c88042b733e20d10c8cb7834c5
Tony Arcieri
2025-12-06T21:45:39
Remove `phc::Ident` lifetime (#754) Companion PR to RustCrypto/traits#2107
diff --git a/Cargo.lock b/Cargo.lock index 204f7ac..88cd9e8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -305,7 +305,7 @@ dependencies = [ [[package]] name = "password-hash" version = "0.6.0-rc.2" -source = "git+https://github.com/RustCrypto/traits#ac8d6ed0cf25a467ce4f00a235d425ca68b4466a" +source = "git+https://gith...
6
25
25
8f8d753a7ef7f0c9e6e5f7bf572a01a75c1acf71
Tony Arcieri
2025-12-06T00:52:22
Updates for `password-hash` trait `Params` bound changes (#753) Companion PR to RustCrypto/traits#2106 The afforementioned upstream PR changed the bounds from ones which work on PHC types like `phc::PasswordHash` and `phc::ParamsString` to core traits like `Display` and `FromStr`. This updates the `Params` types in ...
diff --git a/Cargo.lock b/Cargo.lock index 6362cd6..204f7ac 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -305,7 +305,7 @@ dependencies = [ [[package]] name = "password-hash" version = "0.6.0-rc.2" -source = "git+https://github.com/RustCrypto/traits#85ce438cffe141361b36492d28e9784070c9df2d" +source = "git+https://gith...
5
192
63
cb37cc2c688dbc371c4a45174f5261ff7d9526a6
Tony Arcieri
2025-12-05T03:26:36
Updates for `password-hash` API changes (#752) Includes updates for the following: - Extract `phc` submodule (RustCrypto/traits#2103) - Extract `CustomizedPasswordHasher` trait (RustCrypto/traits#2105)
diff --git a/Cargo.lock b/Cargo.lock index 7013c0a..6362cd6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -305,8 +305,7 @@ dependencies = [ [[package]] name = "password-hash" version = "0.6.0-rc.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a7d47a2d1aee5a339aa6c740d9128211a8a3d2bdf0...
17
202
147
40b0048ea59bcd15a1c1a3c22f418db41b4c2465
Artyom Pavlov
2025-11-18T18:11:49
argon2: check `p_cost < Params::MIN_P_COST` before `m_cost < p_cost * 8` (#745) `p_cost * 8` overflows for `p_cost` values larger than `u32::MAX / 8`, which can trigger panic with enabled overflow checks.
diff --git a/argon2/src/params.rs b/argon2/src/params.rs index 195f230..b043ed0 100644 --- a/argon2/src/params.rs +++ b/argon2/src/params.rs @@ -114,16 +114,6 @@ impl Params { return Err(Error::MemoryTooLittle); } - // Note: we don't need to check `MAX_M_COST`, since it's `u32::MAX` - - ...
1
10
10