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 |
|---|---|---|---|---|---|---|---|
390f9f3b1e477a4182f817c0ac18e19e3381a6d6 | Artyom Pavlov | 2025-05-28T12:03:09 | Update `hmac` (#598)
The `EagerHash` trait was moved to the root of `hmac`. | diff --git a/Cargo.lock b/Cargo.lock
index c138e4f..101750a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -60,7 +60,7 @@ checksum = "1b8e56985ec62d17e9c1001dc89c88ecd7dc08e47eba5ec7c29c7b5eeecde967"
[[package]]
name = "blake2"
version = "0.11.0-pre.5"
-source = "git+https://github.com/RustCrypto/hashes.git#7d44caf065d... | 2 | 9 | 9 |
aaf653989744a0c791d0d932bd6eb7fca8c154a6 | Arthur Gautier | 2025-05-27T18:44:33 | chore(deps): use digest newtypes (#592)
Depends;
- https://github.com/RustCrypto/password-hashes/pull/593
- https://github.com/RustCrypto/traits/pull/1799
- https://github.com/RustCrypto/hashes/pull/678
- https://github.com/RustCrypto/MACs/pull/186 | diff --git a/Cargo.lock b/Cargo.lock
index 0261f8e..c138e4f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -60,8 +60,7 @@ checksum = "1b8e56985ec62d17e9c1001dc89c88ecd7dc08e47eba5ec7c29c7b5eeecde967"
[[package]]
name = "blake2"
version = "0.11.0-pre.5"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-... | 3 | 30 | 40 |
68c5d80962210dbbb4f1c1fe7436e03dc34e62c8 | Arthur Gautier | 2025-05-13T22:18:06 | chore(deps): bump `crypto-bigint` to `0.7.0-pre.3` (#593) | diff --git a/balloon-hash/Cargo.toml b/balloon-hash/Cargo.toml
index 9cd7411..3fefda0 100644
--- a/balloon-hash/Cargo.toml
+++ b/balloon-hash/Cargo.toml
@@ -15,7 +15,7 @@ rust-version = "1.85"
[dependencies]
digest = { version = "=0.11.0-pre.10", default-features = false }
-crypto-bigint = { version = "=0.7.0-pre.2... | 1 | 1 | 1 |
ccd175da9be699c1fccdccc6e821b48893d34767 | Arthur Gautier | 2025-05-11T13:02:11 | chore(deps): bump `crypto-bigint` to `0.7.0-pre.2` (#591) | diff --git a/Cargo.lock b/Cargo.lock
index 71c35ed..700c54f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -155,8 +155,9 @@ checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28"
[[package]]
name = "crypto-bigint"
-version = "0.7.0-pre.0"
-source = "git+https://github.com/RustCrypto/crypto-bigin... | 3 | 5 | 6 |
f6abd5107554b7a76c77f68e5133018455e07e77 | Артём Павлов [Artyom Pavlov] | 2025-04-18T15:24:30 | Update Cargo.lock | diff --git a/Cargo.lock b/Cargo.lock
index 7c11242..908bba0 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -36,9 +36,9 @@ dependencies = [
[[package]]
name = "base64ct"
-version = "1.7.1"
+version = "1.7.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bb97d56060ee67d285efb8001fec9d2a4... | 1 | 33 | 92 |
dd4e1375c105061e2da6a26e56e3cc6ddbad47aa | Artyom Pavlov | 2025-03-12T13:22:22 | argon2: use base64ct v1.7 (#580) | diff --git a/Cargo.lock b/Cargo.lock
index ccc8597..7c11242 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -156,7 +156,7 @@ checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28"
[[package]]
name = "crypto-bigint"
version = "0.7.0-pre.0"
-source = "git+https://github.com/RustCrypto/crypto-bigint.... | 3 | 22 | 45 |
75b706a442745cda4f89a6d7b240e530223d1f36 | Arthur Gautier | 2025-03-10T06:52:30 | Remove git dependency on `hmac` (#578) | diff --git a/Cargo.lock b/Cargo.lock
index a4b5a20..1539581 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -212,8 +212,9 @@ checksum = "bcaaec4551594c969335c98c903c1397853d4198408ea609190f420500f6be71"
[[package]]
name = "hmac"
-version = "0.13.0-pre.4"
-source = "git+https://github.com/RustCrypto/MACs.git#48d909bc7c0... | 4 | 6 | 7 |
70e379e1e5a5666e29713e9445171ac460575f43 | Arthur Gautier | 2025-03-07T06:27:52 | Use pre.5 releases of hash crates (#577) | diff --git a/Cargo.lock b/Cargo.lock
index 99378f7..a4b5a20 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -59,8 +59,9 @@ checksum = "5c8214115b7bf84099f1309324e63141d4c5d7cc26862f97a0a857dbefe165bd"
[[package]]
name = "blake2"
-version = "0.11.0-pre.4"
-source = "git+https://github.com/RustCrypto/hashes.git#374a7a03e... | 9 | 34 | 25 |
56d8918c74c689e9158cf80aca44108f3db0d362 | Artyom Pavlov | 2025-03-05T17:18:27 | argon2: use `password_hash::Error::OutOfMemory` (#574) | diff --git a/.readme/Cargo.lock b/.readme/Cargo.lock
index 3dd816c..11ae044 100644
--- a/.readme/Cargo.lock
+++ b/.readme/Cargo.lock
@@ -14,14 +14,14 @@ dependencies = [
[[package]]
name = "base64ct"
-version = "1.7.0"
+version = "1.6.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = ... | 3 | 16 | 75 |
6679cbdb6c0b6dfd176b8b1a1b76e88011637004 | Artyom Pavlov | 2025-03-05T13:14:13 | argon2: detect allocation failures in `hash_password_into` (#568) | diff --git a/argon2/src/block.rs b/argon2/src/block.rs
index fcf89d7..cd2ffef 100644
--- a/argon2/src/block.rs
+++ b/argon2/src/block.rs
@@ -154,3 +154,47 @@ impl Zeroize for Block {
self.0.zeroize();
}
}
+
+/// Custom implementation of `Box<[Block]>` until `Box::try_new_zeroed_slice` is stabilized.
+#[c... | 3 | 54 | 4 |
cbaf167ec450d21677414365351616388e4363dc | Artyom Pavlov | 2025-03-05T12:20:44 | Update Cargo.lock (#572)
Using the yanked version of `base64ct` results in a security audit warning:
https://github.com/RustCrypto/password-hashes/actions/runs/13675565491/job/38235226692 | diff --git a/Cargo.lock b/Cargo.lock
index 164d47f..be29ac2 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -16,9 +16,9 @@ dependencies = [
[[package]]
name = "autocfg"
-version = "1.1.0"
+version = "1.4.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "d468802bab17cbc0cc575e9b053f41e72a... | 3 | 80 | 106 |
5fc7a4c8c0976e015491ff0d543968cef253a07d | Artyom Pavlov | 2025-03-05T12:05:25 | sha-crypt: bump `rand` to v0.9 (#570) | diff --git a/Cargo.lock b/Cargo.lock
index cd1e753..164d47f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -28,7 +28,7 @@ dependencies = [
"digest",
"hex-literal",
"password-hash",
- "rand_core 0.9.2",
+ "rand_core",
"rayon",
"sha2",
"zeroize",
@@ -207,17 +207,6 @@ version = "1.9.0"
source = "registry+https:/... | 3 | 17 | 43 |
815eff162ad3c22e21a1d374f8913d4224be6a75 | Artyom Pavlov | 2025-03-05T11:47:19 | Fix Clippy lints (#569) | diff --git a/bcrypt-pbkdf/tests/test_vectors.rs b/bcrypt-pbkdf/tests/test_vectors.rs
index e54098d..c5c1d8f 100644
--- a/bcrypt-pbkdf/tests/test_vectors.rs
+++ b/bcrypt-pbkdf/tests/test_vectors.rs
@@ -85,7 +85,8 @@ fn test_openbsd_vectors() {
for t in tests.iter() {
let mut out = vec![0; t.out.len()];
-... | 2 | 4 | 3 |
510a3a66e5e7d005eb1f30a3fec2ca54c679ec24 | Michael | 2025-02-14T15:50:17 | argon2: add a peppering example to the docs (#559) | diff --git a/argon2/src/lib.rs b/argon2/src/lib.rs
index 8230117..b3e8468 100644
--- a/argon2/src/lib.rs
+++ b/argon2/src/lib.rs
@@ -64,6 +64,58 @@
//! # }
//! ```
//!
+//! To [pepper] as well as salt your passwords:
+//!
+//! [pepper]: https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html... | 1 | 52 | 0 |
59bc1794b2b87c6652ca0db91c1f477272dd7eda | Tony Arcieri | 2025-01-21T18:18:57 | benches: bump `pprof` to v0.14 (#554)
This clears a security warning | diff --git a/benches/Cargo.toml b/benches/Cargo.toml
index e36cbdb..6109e6a 100644
--- a/benches/Cargo.toml
+++ b/benches/Cargo.toml
@@ -9,7 +9,7 @@ publish = false
[dev-dependencies]
argon2 = { path = "../argon2" }
criterion = { version = "0.4", features = ["html_reports"] }
-pprof = { version = "0.11", features = ... | 1 | 1 | 1 |
eeefe4b5d0b8f55d1c7b09dc4fc811e132aed7ae | Shun Sakai | 2024-12-10T18:08:02 | scrypt: add `Params::n` method (#544)
Currently, the `N` parameter can be obtained by raising 2 to the power
of `Params::log_n`.
```rust
// example of raising 2 to the power of `Params::log_n`
let n = 1 << params.log_n();
```
It's easier to read to use a method which gets the `N` parameter
directly instead of this w... | diff --git a/scrypt/src/params.rs b/scrypt/src/params.rs
index d957a01..449f758 100644
--- a/scrypt/src/params.rs
+++ b/scrypt/src/params.rs
@@ -102,11 +102,20 @@ impl Params {
/// log₂ of the Scrypt parameter `N`, the work factor.
///
- /// Memory and CPU usage scale linearly with `N`.
+ /// Memory a... | 1 | 10 | 1 |
dbc051ad5fccd6eab888109b4631f8af1da2447a | Artyom Pavlov | 2024-12-09T09:24:23 | argon2: mention requiring `std` crate feature for `OsRng` (#543) | diff --git a/argon2/src/lib.rs b/argon2/src/lib.rs
index cfbd1f1..3f1b8e9 100644
--- a/argon2/src/lib.rs
+++ b/argon2/src/lib.rs
@@ -38,6 +38,7 @@
//! # fn main() -> Result<(), Box<dyn std::error::Error>> {
//! use argon2::{
//! password_hash::{
+//! // `OsRng` requires enabled `std` crate feature
//! ... | 1 | 1 | 0 |
fa7df793e8c23f3ec89eac3e25423e4d20b85e84 | ros-cr | 2024-11-25T17:04:26 | Add explicit `zeroize` features (#539) | diff --git a/argon2/Cargo.toml b/argon2/Cargo.toml
index 4415ab3..66d295c 100644
--- a/argon2/Cargo.toml
+++ b/argon2/Cargo.toml
@@ -38,6 +38,7 @@ std = ["alloc", "password-hash?/std"]
rand = ["password-hash?/rand_core"]
simple = ["password-hash"]
+zeroize = ["dep:zeroize"]
[lints.rust.unexpected_cfgs]
level = ... | 3 | 3 | 0 |
34bbf65987b88b2013606404c0f0b4246efb4057 | Artyom Pavlov | 2024-11-01T12:56:13 | fuzz: add upper bound for scrypt's password and salt sizes (#535)
Also change ranges used to generate scrypt parameters to prevent
potential timeout issues. | diff --git a/fuzz/fuzz_targets/scrypt.rs b/fuzz/fuzz_targets/scrypt.rs
index 48916da..23da6dd 100644
--- a/fuzz/fuzz_targets/scrypt.rs
+++ b/fuzz/fuzz_targets/scrypt.rs
@@ -12,8 +12,8 @@ pub struct ScryptRandParams(pub scrypt::Params);
impl<'a> Arbitrary<'a> for ScryptRandParams {
fn arbitrary(u: &mut Unstructure... | 1 | 10 | 5 |
c4d58597c24875e5a00849fa1427e8931dc5ba70 | Arthur Gautier | 2024-10-07T19:42:42 | scrypt: 0.12.0-pre.2 (#533) | diff --git a/Cargo.lock b/Cargo.lock
index b6f74ea..9a5e488 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -426,8 +426,9 @@ dependencies = [
[[package]]
name = "salsa20"
-version = "0.11.0-pre.1"
-source = "git+https://github.com/RustCrypto/stream-ciphers.git#9fcbf802c3ec29672f6fa2f22fc6ac1abce24996"
+version = "0.11.... | 5 | 8 | 11 |
1121caba83fdaf7b19797d85f9c952b2e6c4d082 | Arthur Gautier | 2024-09-28T12:23:45 | bump cipher to 0.5.0-pre.7 (#529) | diff --git a/Cargo.lock b/Cargo.lock
index 069713d..21e47cd 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -70,9 +70,9 @@ dependencies = [
[[package]]
name = "blowfish"
-version = "0.10.0-pre.1"
+version = "0.10.0-pre.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7f27c154f70281cf277... | 4 | 13 | 10 |
eefdb540f62de993d0d827af9b9b8c5f997635ee | BlackHoleFox | 2024-08-26T20:54:20 | argon2: only enable password-hash dependency if its been explicitly requested (#521) | diff --git a/argon2/Cargo.toml b/argon2/Cargo.toml
index fcdd565..59a10c1 100644
--- a/argon2/Cargo.toml
+++ b/argon2/Cargo.toml
@@ -33,10 +33,10 @@ password-hash = { version = "0.6.0-rc.0", features = ["rand_core"] }
[features]
default = ["alloc", "password-hash", "rand"]
-alloc = ["password-hash/alloc"]
-std = ["... | 2 | 13 | 7 |
a72f308a21ab09e4b0f81ff6f6a78f678dffe8be | Tony Arcieri | 2024-08-18T23:44:10 | yescrypt: update description in Cargo.toml | diff --git a/yescrypt/Cargo.toml b/yescrypt/Cargo.toml
index c99bf02..6467116 100644
--- a/yescrypt/Cargo.toml
+++ b/yescrypt/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "yescrypt"
version = "0.0.1-alpha"
-description = "Pure Rust implementation of the yescrypt password hashing function"
+description = "Pure Rust im... | 1 | 1 | 1 |
d36293c57a813783a7ae5e0fc810028bbb7583b4 | Tony Arcieri | 2024-08-18T23:19:57 | yescrypt: remove dead code (#516)
Removes translations of the reference yescrypt C implementation which
are not currently exposed through the public API (but could potentially
be in the future).
This reduces the total surface of code to clean up and turn into
idiomatic Rust to just the code used by `yescrypt_kdf... | diff --git a/yescrypt/src/lib.rs b/yescrypt/src/lib.rs
index 2f4f10e..e0e4be9 100644
--- a/yescrypt/src/lib.rs
+++ b/yescrypt/src/lib.rs
@@ -56,10 +56,7 @@ mod salsa20;
mod sha256;
use crate::{
- common::{
- atoi64, blkcpy, blkxor, decode64, decode64_uint32, decode64_uint32_fixed, encode64,
- encod... | 1 | 2 | 837 |
52bf909d11937f2ca5f9d0734ee27b9299c95e71 | Tony Arcieri | 2024-07-27T20:54:26 | Cut pre.1 prereleases (#513)
Cuts the following prereleases:
- `argon2` v0.6.0-pre.1
- `balloon-hash` v0.5.0-pre.1
- `bcrypt-pbkdf` v0.11.0-pre.1
- `password-auth` v1.1.0-pre.1
- `pbkdf2` v0.13.0-pre.1
- `scrypt` v0.12.0-pre.1
- `sha-crypt` v0.6.0-pre.1 | diff --git a/Cargo.lock b/Cargo.lock
index fb85b91..0fceb90 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4,7 +4,7 @@ version = 3
[[package]]
name = "argon2"
-version = "0.6.0-pre.0"
+version = "0.6.0-pre.1"
dependencies = [
"base64ct",
"blake2",
@@ -22,7 +22,7 @@ checksum = "d468802bab17cbc0cc575e9b053f41e72aa... | 8 | 19 | 19 |
88b15a63c327c5ff5ec8faf796f3178899fdc36f | Tony Arcieri | 2024-07-27T20:12:31 | Bump `password-hash` dependency to v0.6.0-rc.0 (#512) | diff --git a/.readme/Cargo.lock b/.readme/Cargo.lock
index 9c96ce7..62466a4 100644
--- a/.readme/Cargo.lock
+++ b/.readme/Cargo.lock
@@ -4,35 +4,36 @@ version = 3
[[package]]
name = "argon2"
-version = "0.5.0-pre.0"
+version = "0.6.0-pre.0"
dependencies = [
"base64ct",
"blake2",
+ "cpufeatures",
"password-ha... | 8 | 56 | 66 |
985914dd89adfe25089a1f61e719be197d8d86e8 | Tony Arcieri | 2024-07-27T19:49:36 | Bump dependencies to latest prereleases (#511)
Also fixes `hybrid-array` deprecations.
Updates the following:
- `blake2` v0.11.0-pre.4
- `blowfish` v0.10.0-pre.1
- `cipher` v0.5.0-pre.6
- `crypto-bigint` v0.6.0-rc.2
- `digest` v0.11.0-pre.9
- `hmac` v0.13.0-pre.4
- `hybrid-array` v0.2.0-rc.9
- `salsa20` v... | diff --git a/Cargo.lock b/Cargo.lock
index 5c27794..6fc6394 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -52,26 +52,27 @@ dependencies = [
[[package]]
name = "blake2"
-version = "0.11.0-pre.3"
+version = "0.11.0-pre.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3eb6b33ba68af672bce... | 11 | 64 | 65 |
b06febccf09142840624c34129505436f83e5bd7 | Shun Sakai | 2024-07-08T16:07:40 | Make methods of `scrypt::Params` to `const fn` (#508) | diff --git a/scrypt/src/params.rs b/scrypt/src/params.rs
index b1cefea..d957a01 100644
--- a/scrypt/src/params.rs
+++ b/scrypt/src/params.rs
@@ -91,7 +91,7 @@ impl Params {
/// - `log_n = 17` (`n = 131072`)
/// - `r = 8`
/// - `p = 1`
- pub fn recommended() -> Params {
+ pub const fn recommended() ... | 1 | 4 | 4 |
0715e565f391b74d4de0948585e1a2636d12ee9f | Luca Bruno | 2024-06-11T13:27:45 | cargo: point `repository` metadata to clonable URLs (#503)
This tweaks the `repository` fields in Cargo metadata in order to use the correct (i.e. git clonable) URL.
The existing GitHub webUI URLs for each package have been retained and moved to `homepage` fields. | diff --git a/argon2/Cargo.toml b/argon2/Cargo.toml
index 37ee1c2..2203436 100644
--- a/argon2/Cargo.toml
+++ b/argon2/Cargo.toml
@@ -8,7 +8,8 @@ for the Argon2d, Argon2i, and Argon2id algorithmic variants
authors = ["RustCrypto Developers"]
license = "MIT OR Apache-2.0"
documentation = "https://docs.rs/argon2"
-repo... | 7 | 14 | 7 |
b289d5a96192a2478dfe46c66bf964bf7d368eba | Tobias Bucher | 2024-05-17T13:12:03 | sha-crypt: Change parameter type and make hashing infallible (#500)
* sha-crypt: Change `rounds` parameter type to `u32`
Its type doesn't need to depend on the target architecture pointer
width.
Fixes #498.
* sha-crypt: Make hashing infallible
The rounds were already checked to be sane in
`Sha{256,512}Pa... | diff --git a/sha-crypt/src/lib.rs b/sha-crypt/src/lib.rs
index 8ec3d83..736403b 100644
--- a/sha-crypt/src/lib.rs
+++ b/sha-crypt/src/lib.rs
@@ -16,8 +16,7 @@
//! let params = Sha512Params::new(10_000).expect("RandomError!");
//!
//! // Hash the password for storage
-//! let hashed_password = sha512_simple("Not so s... | 3 | 39 | 62 |
8abb1a7e785ff95aa7924c8e4070f1a52c66a632 | Arthur Gautier | 2024-05-10T20:03:44 | bump `password-hash` to `0.6.0-pre.0` (#497) | diff --git a/.readme/Cargo.toml b/.readme/Cargo.toml
index 1375c17..265f8e7 100644
--- a/.readme/Cargo.toml
+++ b/.readme/Cargo.toml
@@ -8,7 +8,7 @@ edition = "2021"
publish = false
[dependencies]
-password-hash = "0.5"
+password-hash = "=0.6.0-pre.0"
argon2 = { path = "../argon2" }
pbkdf2 = { path = "../pbkdf2",... | 7 | 10 | 10 |
cf91c17c93f57acfd3f547ecd697f86f8c271ba2 | Thomas Epperson | 2024-04-26T21:18:54 | Add PartialEq to scrypt::Params (#490) | diff --git a/scrypt/src/params.rs b/scrypt/src/params.rs
index 337567e..b1cefea 100644
--- a/scrypt/src/params.rs
+++ b/scrypt/src/params.rs
@@ -6,7 +6,7 @@ use crate::errors::InvalidParams;
use password_hash::{errors::InvalidValue, Error, ParamsString, PasswordHash};
/// The Scrypt parameter values.
-#[derive(Clon... | 1 | 1 | 1 |
9387633dd1e9662e5ea2faa3a61e4750909bfd47 | Dave Farnham | 2023-11-08T17:08:16 | Update lib.rs (#470)
Minor word fix in description | diff --git a/pbkdf2/src/lib.rs b/pbkdf2/src/lib.rs
index 415c438..027c2f8 100644
--- a/pbkdf2/src/lib.rs
+++ b/pbkdf2/src/lib.rs
@@ -6,7 +6,7 @@
//! PBKDF2 is defined in terms of a keyed pseudo-random function (PRF). Most
//! commonly HMAC is used as this PRF. In such cases you can use [`pbkdf2_hmac`]
//! and [`pbkd... | 1 | 1 | 1 |
48cc28a56344f547e81e6f48f3221dda65501d21 | Tony Arcieri | 2023-11-08T17:07:39 | Cargo.lock: downgrade `rayon` to 1.7.0 (#472)
The latest version requires Rust 1.63, which is higher than `pbkdf2`'s
MSRV:
https://github.com/RustCrypto/password-hashes/actions/runs/6794257921/job/18470364231?pr=471
error: package `rayon-core v1.12.0` cannot be built because it requires rustc 1.63 or newer, whi... | diff --git a/Cargo.lock b/Cargo.lock
index f54101e..0768b03 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -115,6 +115,16 @@ dependencies = [
"libc",
]
+[[package]]
+name = "crossbeam-channel"
+version = "0.5.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a33c2bf77f2df06183c3aa30d1e... | 1 | 32 | 4 |
844335a4cb51b50f0880b1a4adb3803a1ce6144c | Артём Павлов [Artyom Pavlov] | 2023-10-27T11:58:36 | Update Cargo.lock | diff --git a/Cargo.lock b/Cargo.lock
index 0f98b1b..f54101e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -108,9 +108,9 @@ dependencies = [
[[package]]
name = "cpufeatures"
-version = "0.2.10"
+version = "0.2.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3fbc60abd742b35f2492f808e1... | 1 | 2 | 2 |
c5d44b05ea5da4199cbcad8630ed96092e1a3ebe | Артём Павлов [Artyom Pavlov] | 2023-10-23T10:14:33 | Update Cargo.lock | diff --git a/Cargo.lock b/Cargo.lock
index 10c5750..0f98b1b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -86,9 +86,9 @@ checksum = "7f30e7476521f6f8af1a1c4c0b8cc94f0bee37d91763d0ca2665f299b6cd8aec"
[[package]]
name = "byteorder"
-version = "1.4.3"
+version = "1.5.0"
source = "registry+https://github.com/rust-lang/c... | 1 | 10 | 10 |
a737bef1f992368f165face097d621bb1e76eba4 | Артём Павлов [Artyom Pavlov] | 2023-09-27T09:31:11 | Update Cargo.lock | diff --git a/Cargo.lock b/Cargo.lock
index e863393..10c5750 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -80,9 +80,9 @@ dependencies = [
[[package]]
name = "bumpalo"
-version = "3.13.0"
+version = "3.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "a3e2c3daef883ecc1b5d58c15adae934... | 1 | 26 | 57 |
7d22c174a85245a1e87823e0fa16982e1102a3e0 | Shun Sakai | 2023-09-05T14:10:06 | Argon2: Fix docs about minimum value of `m_cost` (#459) | diff --git a/argon2/src/params.rs b/argon2/src/params.rs
index a65ccbc..edfc005 100644
--- a/argon2/src/params.rs
+++ b/argon2/src/params.rs
@@ -12,7 +12,7 @@ use password_hash::{ParamsString, PasswordHash};
/// These are parameters which can be encoded into a PHC hash string.
#[derive(Clone, Debug, Eq, PartialEq)]
... | 1 | 4 | 4 |
144b2e41a686524fb8f971454cf65a7fbcdf7bed | Shun Sakai | 2023-09-05T13:21:22 | argon2: Fix `Params` docs (#458)
* The minimum value of `m_cost` is 8, not 1.
* The maximum value of `p_cost` is (2^24)-1, not 255. | diff --git a/argon2/src/params.rs b/argon2/src/params.rs
index 9e15360..a65ccbc 100644
--- a/argon2/src/params.rs
+++ b/argon2/src/params.rs
@@ -12,7 +12,7 @@ use password_hash::{ParamsString, PasswordHash};
/// These are parameters which can be encoded into a PHC hash string.
#[derive(Clone, Debug, Eq, PartialEq)]
... | 1 | 7 | 7 |
d25ea610d90c2cfe5cb2294bde96c8892501daa2 | C0D3 M4513R | 2023-08-26T14:13:45 | argon2: more const-ness (#450) | diff --git a/argon2/src/algorithm.rs b/argon2/src/algorithm.rs
index e7260d6..e330e6d 100644
--- a/argon2/src/algorithm.rs
+++ b/argon2/src/algorithm.rs
@@ -58,7 +58,7 @@ impl Algorithm {
}
/// Get the identifier string for this PBKDF2 [`Algorithm`].
- pub fn as_str(&self) -> &'static str {
+ pub cons... | 4 | 87 | 78 |
0e32400163515d3237524535b017349c44695607 | Steve Thomas | 2023-08-14T17:25:53 | argon2: fix max params (#452)
Fixes #451 | diff --git a/argon2/src/params.rs b/argon2/src/params.rs
index 9db5a3f..81464d5 100644
--- a/argon2/src/params.rs
+++ b/argon2/src/params.rs
@@ -22,9 +22,9 @@ pub struct Params {
/// Value is an integer in decimal (1 to 10 digits).
t_cost: u32,
- /// Degree of parallelism, between 1 and 255.
+ /// Deg... | 1 | 4 | 10 |
e19aabdec9fedd1f925d556223c5e4b3a19e24a4 | Tony Arcieri | 2023-08-07T00:33:21 | Revert "argon2: improve `const` compatibility (#438)" (#447)
This reverts commit 5e3f574c96a3c6aa6ddffdfeb323edb3b400f2d7.
These changes are incompatible with #440, which performs runtime CPU
feature detection. | diff --git a/argon2/src/algorithm.rs b/argon2/src/algorithm.rs
index 23a1a32..4efe86b 100644
--- a/argon2/src/algorithm.rs
+++ b/argon2/src/algorithm.rs
@@ -52,20 +52,18 @@ pub enum Algorithm {
impl Default for Algorithm {
fn default() -> Algorithm {
- Algorithm::DEFAULT
+ Algorithm::Argon2id
... | 4 | 43 | 88 |
5e3f574c96a3c6aa6ddffdfeb323edb3b400f2d7 | C0D3 M4513R | 2023-08-07T00:14:57 | argon2: improve `const` compatibility (#438) | diff --git a/argon2/src/algorithm.rs b/argon2/src/algorithm.rs
index 4efe86b..23a1a32 100644
--- a/argon2/src/algorithm.rs
+++ b/argon2/src/algorithm.rs
@@ -52,18 +52,20 @@ pub enum Algorithm {
impl Default for Algorithm {
fn default() -> Algorithm {
- Algorithm::Argon2id
+ Algorithm::DEFAULT
... | 4 | 88 | 43 |
9e5c86bef14108a8be817ca2563eaf000be9c784 | Tony Arcieri | 2023-07-13T03:07:50 | argon2: fold `compress_avx2` into an inner function (#444)
This changes `Argon2::compress` to contain all AVX2-related logic, so it
doesn't bleed into the `Block` type yet (especially since that lacks any
AVX2-specific implementation). | diff --git a/argon2/src/block.rs b/argon2/src/block.rs
index 7b471c9..ea7809a 100644
--- a/argon2/src/block.rs
+++ b/argon2/src/block.rs
@@ -66,8 +66,10 @@ impl Block {
unsafe { &mut *(self.0.as_mut_ptr() as *mut [u8; Self::SIZE]) }
}
+ /// NOTE: do not call this directly. It should only be called vi... | 2 | 12 | 27 |
19e0cdf833f108f75fdb92a15e68898ae1b270e8 | Carson McManus | 2023-07-12T13:29:44 | argon2: optimize with AVX2 SIMD (#440) | diff --git a/Cargo.lock b/Cargo.lock
index 45fa5e8..8397fc2 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -8,6 +8,7 @@ version = "0.5.0"
dependencies = [
"base64ct",
"blake2",
+ "cpufeatures",
"hex-literal",
"password-hash",
"zeroize",
@@ -107,9 +108,9 @@ dependencies = [
[[package]]
name = "cpufeatures"
-... | 6 | 66 | 10 |
cb56812664ebbf76977b5061ee4938bfb57a9c04 | Edwin | 2023-07-08T14:50:47 | pbkdf2: use `RECOMMENDED_ROUNDS` in `Default` impl (#442) | diff --git a/pbkdf2/src/simple.rs b/pbkdf2/src/simple.rs
index 9ed12aa..957f00b 100644
--- a/pbkdf2/src/simple.rs
+++ b/pbkdf2/src/simple.rs
@@ -188,7 +188,7 @@ impl Params {
impl Default for Params {
fn default() -> Params {
Params {
- rounds: 10_000,
+ rounds: Self::RECOMMENDED_RO... | 1 | 1 | 1 |
3571f1093ea1b17157a2f4c828ffe126f1a5cb01 | Tony Arcieri | 2023-07-03T15:53:19 | argon2: add `Params::DEFAULT` constant (#439)
Allows for accessing default parameters in const contexts | diff --git a/argon2/src/params.rs b/argon2/src/params.rs
index 9bfb5a2..9db5a3f 100644
--- a/argon2/src/params.rs
+++ b/argon2/src/params.rs
@@ -81,6 +81,22 @@ impl Params {
/// Maximum digest size in bytes.
pub const MAX_OUTPUT_LEN: usize = 0xFFFFFFFF;
+ /// Default parameters (recommended).
+ pub co... | 1 | 17 | 8 |
b0cc63480680cb817b9ae750d86870317170ad1b | David Isaksson | 2023-07-01T21:46:02 | scrypt: Update docs for recommended log_n parameter (#435) | diff --git a/scrypt/src/params.rs b/scrypt/src/params.rs
index 231d613..337567e 100644
--- a/scrypt/src/params.rs
+++ b/scrypt/src/params.rs
@@ -87,8 +87,8 @@ impl Params {
})
}
- /// Recommended values sufficient for most use-cases
- /// - `log_n = 15` (`n = 32768`)
+ /// Recommended values ac... | 1 | 2 | 2 |
54d68a4bcbe7a6d83a577059a54bb130cf634b66 | Tony Arcieri | 2023-06-25T01:21:21 | password-auth: derive `Eq`/`PartialEq` on `*Error` (#433)
Derives these traits for the following types:
- `ParseError`
- `VerifyError` | diff --git a/password-auth/src/errors.rs b/password-auth/src/errors.rs
index a611247..1606200 100644
--- a/password-auth/src/errors.rs
+++ b/password-auth/src/errors.rs
@@ -7,7 +7,7 @@ use core::fmt;
// This type has no public constructor and deliberately keeps
// `password_hash::Error` out of the public API so it ca... | 1 | 2 | 2 |
5e7e8c7187b7d6005e936c5c56449dd5bdf199f8 | Tony Arcieri | 2023-06-25T00:23:34 | password-auth: rename `Error` (back) to `VerifyError` (#432)
The name better captures the intent: errors relating to
`verify_password`.
Using the same name should ease upgrades as well. | diff --git a/Cargo.lock b/Cargo.lock
index e50680b..236a792 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -298,7 +298,7 @@ checksum = "dd8b5dd2ae5ed71462c540258bedcb51965123ad7e7ccf4b9a8cafaa4a63576d"
[[package]]
name = "password-auth"
-version = "0.2.0"
+version = "0.3.0-pre"
dependencies = [
"argon2",
"getrand... | 4 | 33 | 33 |
58975ef25feddaf799214051b1dfa41ce0346dcb | Tony Arcieri | 2023-06-24T21:37:17 | password-auth: fix `is_hash_obsolete` docs (#431)
The "Returns" section was incorrectly documented | diff --git a/password-auth/src/lib.rs b/password-auth/src/lib.rs
index 9bb009a..1e10c3a 100644
--- a/password-auth/src/lib.rs
+++ b/password-auth/src/lib.rs
@@ -102,9 +102,9 @@ pub fn verify_password(password: impl AsRef<[u8]>, hash: &str) -> Result<(), Err
/// to determine if such an update should be applied.
///
/... | 1 | 3 | 3 |
45826c5f34d2ba5e02295045000da87be2eb7e5f | Tony Arcieri | 2023-06-24T20:29:13 | password-auth: replace `VerifyError` with `Error` enum (#429)
`VerifyError` was previously the return type for the `verify_password`
function which has two distinct error cases:
- Password hash failed to parse
- Password is invalid
This commit replaces `VerifyError` with an `Error` enum which captures
both ca... | diff --git a/Cargo.lock b/Cargo.lock
index c900119..2df938e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -298,7 +298,7 @@ checksum = "dd8b5dd2ae5ed71462c540258bedcb51965123ad7e7ccf4b9a8cafaa4a63576d"
[[package]]
name = "password-auth"
-version = "0.1.1"
+version = "0.2.0-pre"
dependencies = [
"argon2",
"getrand... | 4 | 46 | 19 |
765ed9b09f18232d7b662c63e6e9da9efd1b8b09 | Ryan Lee | 2023-06-22T15:41:38 | Add const initializer to argon2:Block (#427) | diff --git a/argon2/src/block.rs b/argon2/src/block.rs
index e874c9b..6586f25 100644
--- a/argon2/src/block.rs
+++ b/argon2/src/block.rs
@@ -53,6 +53,11 @@ impl Block {
/// Memory block size in bytes
pub const SIZE: usize = 1024;
+ /// Returns a Block initialized with zeros.
+ pub const fn new() -> Se... | 1 | 5 | 0 |
1565f125ef234e4753177de1ecb375fe9d2a38b0 | Артём Павлов [Artyom Pavlov] | 2023-06-16T13:29:38 | Update Cargo.lock | diff --git a/Cargo.lock b/Cargo.lock
index 0f6e3f7..c900119 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -107,9 +107,9 @@ dependencies = [
[[package]]
name = "cpufeatures"
-version = "0.2.7"
+version = "0.2.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "3e4c1eaa2012c47becbbad2ab175... | 1 | 26 | 26 |
eccda357b43c13910a47cf8b66c4a63437e79fa5 | Dmitry Rodionov | 2023-06-14T13:23:10 | argon2: impl `Debug` for `Argon2` (#423) | diff --git a/argon2/src/lib.rs b/argon2/src/lib.rs
index c9bd58b..41b9f8c 100644
--- a/argon2/src/lib.rs
+++ b/argon2/src/lib.rs
@@ -115,6 +115,7 @@ pub use {
use crate::blake2b_long::blake2b_long;
use blake2::{digest, Blake2b512, Digest};
+use core::fmt;
#[cfg(all(feature = "alloc", feature = "password-hash"))]... | 1 | 11 | 0 |
64d70043f22c407a9d49720f4388c1f907c5108c | Tom | 2023-06-12T14:14:50 | Enable alloc feature of password-hash if enabled for argon2/balloon-hash (#422)
This commit enables the `password-hash/alloc` feature if the
`argon2/alloc` or `balloon-hash/alloc` features are enabled.
Prior to this commit, if a user adds argon2 as a dependency with the
`alloc` feature enabled, but not the `std` ... | diff --git a/argon2/Cargo.toml b/argon2/Cargo.toml
index 2c6b987..ed8c1c9 100644
--- a/argon2/Cargo.toml
+++ b/argon2/Cargo.toml
@@ -29,7 +29,7 @@ password-hash = { version = "0.5", features = ["rand_core"] }
[features]
default = ["alloc", "password-hash", "rand"]
-alloc = []
+alloc = ["password-hash/alloc"]
std =... | 2 | 2 | 2 |
dc23aa160f010bcb02050ae230be868d84367c1d | Артём Павлов [Artyom Pavlov] | 2023-06-07T10:17:53 | Update Cargo.lock | diff --git a/Cargo.lock b/Cargo.lock
index 85afb93..0f6e3f7 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -60,9 +60,9 @@ dependencies = [
[[package]]
name = "block-buffer"
-version = "0.10.3"
+version = "0.10.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "69cce20737498f97b993470a6e5... | 1 | 60 | 65 |
acafdc022a83af995304ac0036fe68ab8ba91dc6 | Tony Arcieri | 2023-06-02T01:37:24 | password-auth: fix documentation link in Cargo.toml | diff --git a/password-auth/Cargo.toml b/password-auth/Cargo.toml
index 5038a77..c475777 100644
--- a/password-auth/Cargo.toml
+++ b/password-auth/Cargo.toml
@@ -7,7 +7,7 @@ with support for Argon2, PBKDF2, and scrypt password hashing algorithms
"""
authors = ["RustCrypto Developers"]
license = "MIT OR Apache-2.0"
-d... | 1 | 1 | 1 |
1f483b37ac1d151549e3b2c86857e7760326cfd9 | FirelightFlagboy | 2023-05-20T13:51:40 | Annotate `Algorithm::as_str` returning static str (#416) | diff --git a/argon2/src/algorithm.rs b/argon2/src/algorithm.rs
index 07fa871..4efe86b 100644
--- a/argon2/src/algorithm.rs
+++ b/argon2/src/algorithm.rs
@@ -63,7 +63,7 @@ impl Algorithm {
}
/// Get the identifier string for this PBKDF2 [`Algorithm`].
- pub fn as_str(&self) -> &str {
+ pub fn as_str(&s... | 1 | 1 | 1 |
c29e6d7d229fb0319eaf8278b08cd4d9c127681b | Tony Arcieri | 2023-03-14T13:28:56 | argon2: add `ParamsBuilder::context` (#400)
Shortcut for creating an `Argon2` context from `ParamsBuilder` | diff --git a/argon2/src/params.rs b/argon2/src/params.rs
index fdb538d..9bfb5a2 100644
--- a/argon2/src/params.rs
+++ b/argon2/src/params.rs
@@ -1,6 +1,6 @@
//! Argon2 password hash parameters.
-use crate::{Error, Result, SYNC_POINTS};
+use crate::{Algorithm, Argon2, Error, Result, Version, SYNC_POINTS};
use base64... | 1 | 6 | 1 |
3c7afdb0d1079e0d5ac7af9470945aac95573738 | z33ky | 2023-03-05T15:15:37 | argon2: provide std::error::Error::source() for Error (#379)
The Error type sometimes wraps other errors, which are now returned by
the source() method. | diff --git a/argon2/src/error.rs b/argon2/src/error.rs
index f6f10e7..3a6b964 100644
--- a/argon2/src/error.rs
+++ b/argon2/src/error.rs
@@ -121,4 +121,11 @@ impl From<Error> for password_hash::Error {
}
#[cfg(feature = "std")]
-impl std::error::Error for Error {}
+impl std::error::Error for Error {
+ fn source(... | 1 | 8 | 1 |
7b0067447ec20fb571142fea5fb346feaba63804 | Tony Arcieri | 2023-03-05T04:53:14 | pbkdf2: re-export `hmac` (#397)
Re-exports the crate when the `hmac` feature is enabled | diff --git a/Cargo.lock b/Cargo.lock
index b0c5f12..e3afc9f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -443,7 +443,7 @@ dependencies = [
[[package]]
name = "sha-crypt"
-version = "0.5.0-pre"
+version = "0.5.0"
dependencies = [
"base64ct",
"rand",
diff --git a/pbkdf2/src/lib.rs b/pbkdf2/src/lib.rs
index ee7cab... | 2 | 4 | 1 |
8069cb7e9c09a876cc04589748793b3560be57f6 | Tony Arcieri | 2023-03-05T02:17:10 | sha-crypt: relax `subtle` dependency (#390)
It was pinned to preserve MSRV, but that creates huge compatibility
headaches for downstream users | diff --git a/Cargo.lock b/Cargo.lock
index 246039a..239f4ee 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -443,7 +443,7 @@ dependencies = [
[[package]]
name = "sha-crypt"
-version = "0.4.0"
+version = "0.5.0-pre"
dependencies = [
"base64ct",
"rand",
diff --git a/sha-crypt/Cargo.toml b/sha-crypt/Cargo.toml
index ... | 2 | 3 | 3 |
fbfcda5b232f9b635b55161e5c95e968a3e8bb0f | Tony Arcieri | 2023-03-05T01:52:39 | pbkdf2: adopt OWASP recommendations (#389)
Adopts the recommended settings from:
https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html
> use PBKDF2 with a work factor of 600,000 or more and set with an
> internal hash function of HMAC-SHA-256. | diff --git a/pbkdf2/src/lib.rs b/pbkdf2/src/lib.rs
index 1151fdf..ee7cab7 100644
--- a/pbkdf2/src/lib.rs
+++ b/pbkdf2/src/lib.rs
@@ -153,9 +153,9 @@ where
/// use sha2::Sha256;
///
/// let mut buf = [0u8; 20];
-/// pbkdf2::<Hmac<Sha256>>(b"password", b"salt", 4096, &mut buf)
+/// pbkdf2::<Hmac<Sha256>>(b"password", ... | 2 | 26 | 3 |
093cd2522d7ce1df61d86cfd9b111750e33c85f8 | Tony Arcieri | 2023-03-05T01:33:43 | scrypt: adopt OWASP recommendations (#388)
Adopts the recommended settings from:
https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html
> use scrypt with a minimum CPU/memory cost parameter of (2^17),
> a minimum block size of 8 (1024 bytes), and a parallelization
> parameter of 1. | diff --git a/scrypt/src/params.rs b/scrypt/src/params.rs
index df6b1bc..231d613 100644
--- a/scrypt/src/params.rs
+++ b/scrypt/src/params.rs
@@ -17,7 +17,7 @@ pub struct Params {
impl Params {
/// Recommended log₂ of the Scrypt parameter `N`: CPU/memory cost.
- pub const RECOMMENDED_LOG_N: u8 = 15;
+ pub ... | 1 | 1 | 1 |
4292ae34afbb01fcd7b5eee13e1e699e2f2fe19a | Tony Arcieri | 2023-03-05T01:29:19 | scrypt: add inherent constants for `Params` recommendations (#387) | diff --git a/argon2/src/params.rs b/argon2/src/params.rs
index f087962..fdb538d 100644
--- a/argon2/src/params.rs
+++ b/argon2/src/params.rs
@@ -81,8 +81,9 @@ impl Params {
/// Maximum digest size in bytes.
pub const MAX_OUTPUT_LEN: usize = 0xFFFFFFFF;
- /// Create new parameters:
+ /// Create new par... | 2 | 29 | 17 |
c69a68bf54fd1dffbf926d80ee38df332599be7b | Tony Arcieri | 2023-03-05T01:06:49 | argon2: adopt OWASP recommendations (#386)
Adopts the recommended settings from:
https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html
> Use Argon2id with a minimum configuration of 19 MiB of memory, an
> iteration count of 2, and 1 degree of parallelism. | diff --git a/argon2/src/params.rs b/argon2/src/params.rs
index 000f476..f087962 100644
--- a/argon2/src/params.rs
+++ b/argon2/src/params.rs
@@ -39,7 +39,7 @@ pub struct Params {
impl Params {
/// Default memory cost.
- pub const DEFAULT_M_COST: u32 = 4096;
+ pub const DEFAULT_M_COST: u32 = 19 * 1024;
... | 1 | 2 | 2 |
accaa8657dcf09b7e33212113bc9fae2aa5d9127 | Tony Arcieri | 2023-03-05T00:46:16 | argon2: improve m_cost documentation (#385) | diff --git a/argon2/src/params.rs b/argon2/src/params.rs
index a99a05e..000f476 100644
--- a/argon2/src/params.rs
+++ b/argon2/src/params.rs
@@ -41,11 +41,11 @@ impl Params {
/// Default memory cost.
pub const DEFAULT_M_COST: u32 = 4096;
- /// Minimum number of memory blocks.
+ /// Minimum number of 1... | 1 | 12 | 7 |
dc8b4b9e7e5b46ee2bf7d1b70e94bf7a14dddd89 | Tony Arcieri | 2023-03-04T23:39:56 | Bump `password-hash` to v0.5 (#383)
Release notes: https://github.com/RustCrypto/traits/pull/1271 | diff --git a/Cargo.lock b/Cargo.lock
index ab16059..246039a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -315,9 +315,9 @@ dependencies = [
[[package]]
name = "password-hash"
-version = "0.5.0-rc.0"
+version = "0.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "af13cbccdce8cf72efe1c... | 6 | 9 | 9 |
7de239d7247cc7584f7ed3ffee8835edbbc78224 | Tony Arcieri | 2023-03-04T23:05:05 | Bump `password-hash` dependency to v0.5.0-rc.0 (#382) | diff --git a/.readme/Cargo.lock b/.readme/Cargo.lock
index 3937a0f..e59e255 100644
--- a/.readme/Cargo.lock
+++ b/.readme/Cargo.lock
@@ -128,9 +128,9 @@ checksum = "201de327520df007757c1f0adce6e827fe8562fbc28bfd9c15571c66ca1f5f79"
[[package]]
name = "password-hash"
-version = "0.5.0-pre.0"
+version = "0.5.0-rc.0"
... | 16 | 22 | 22 |
86bdad3df665e432237522bec47da7eafd55d5f5 | ChanTsune | 2023-02-17T18:07:45 | pbkdf2: make `Ident` values inherent constants of `Algorithm` (#375) | diff --git a/pbkdf2/src/simple.rs b/pbkdf2/src/simple.rs
index 624bba5..5e5b411 100644
--- a/pbkdf2/src/simple.rs
+++ b/pbkdf2/src/simple.rs
@@ -11,16 +11,6 @@ use sha2::{Sha256, Sha512};
#[cfg(feature = "sha1")]
use sha1::Sha1;
-/// PBKDF2 (SHA-1)
-#[cfg(feature = "sha1")]
-pub const PBKDF2_SHA1: Ident = Ident::ne... | 1 | 17 | 17 |
073867aa186191a4c65da5f82122ed39670bbf60 | Ryan Lee | 2023-02-05T03:36:34 | Disable default feature (i.e. alloc) of zeroize in argon2 (#374)
zeroize is not used on Vec or String types for argon2, so removing the default alloc feature allows the zeroize feature to be enabled in argon2 for no-std targets. | diff --git a/argon2/Cargo.toml b/argon2/Cargo.toml
index 92ba47d..dfecf38 100644
--- a/argon2/Cargo.toml
+++ b/argon2/Cargo.toml
@@ -21,7 +21,7 @@ blake2 = { version = "0.10.6", default-features = false }
# optional dependencies
password-hash = { version = "=0.5.0-pre.0", optional = true }
-zeroize = { version = "1... | 1 | 1 | 1 |
3563b6314bea1f7f187883436e132bb36c6da92f | Anton Lazarev | 2023-01-31T00:09:46 | support bcrypt-pbkdf without alloc (#372) | diff --git a/bcrypt-pbkdf/Cargo.toml b/bcrypt-pbkdf/Cargo.toml
index 53b04b0..e8eebd3 100644
--- a/bcrypt-pbkdf/Cargo.toml
+++ b/bcrypt-pbkdf/Cargo.toml
@@ -22,5 +22,6 @@ zeroize = { version = "1", default-features = false, optional = true }
hex-literal = "0.3.3"
[features]
-default = ["std"]
+default = ["alloc", "... | 4 | 54 | 16 |
6fba032caebff41a1cb6d9a22f01ddafb98d5ed0 | Tony Arcieri | 2023-01-09T02:57:28 | argon2 v0.5.0-pre.0 (#368) | diff --git a/.readme/Cargo.lock b/.readme/Cargo.lock
index 79cfb9f..3937a0f 100644
--- a/.readme/Cargo.lock
+++ b/.readme/Cargo.lock
@@ -4,7 +4,7 @@ version = 3
[[package]]
name = "argon2"
-version = "0.5.0-pre"
+version = "0.5.0-pre.0"
dependencies = [
"base64ct",
"blake2",
diff --git a/Cargo.lock b/Cargo.loc... | 4 | 4 | 4 |
a6275070a2c403d44d1f3131f0ef0be295e29d9d | Tony Arcieri | 2023-01-09T02:42:36 | Bump `password-hash` to v0.5.0-pre.0 (#367) | diff --git a/.readme/Cargo.lock b/.readme/Cargo.lock
index 0c202a7..79cfb9f 100644
--- a/.readme/Cargo.lock
+++ b/.readme/Cargo.lock
@@ -128,9 +128,9 @@ checksum = "201de327520df007757c1f0adce6e827fe8562fbc28bfd9c15571c66ca1f5f79"
[[package]]
name = "password-hash"
-version = "0.4.2"
+version = "0.5.0-pre.0"
sourc... | 12 | 34 | 39 |
9594f970140ce6a9f8762077067078b9719e2627 | Tony Arcieri | 2023-01-04T20:33:23 | argon2: add key derivation usage example (#366) | diff --git a/.readme/Cargo.lock b/.readme/Cargo.lock
index b06a1a9..0c202a7 100644
--- a/.readme/Cargo.lock
+++ b/.readme/Cargo.lock
@@ -19,9 +19,9 @@ checksum = "b645a089122eccb6111b4f81cbc1a49f5900ac4666bb93ac027feaecf15607bf"
[[package]]
name = "blake2"
-version = "0.10.5"
+version = "0.10.6"
source = "registry... | 2 | 33 | 24 |
63e5f3405c8bb21f3d53a5b8cd34d85febf7fc0f | Qinxuan Chen | 2022-12-19T05:24:58 | pbkdf2: use sha1 dependency directly (#363) | diff --git a/Cargo.lock b/Cargo.lock
index 33099a4..a49c15e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -333,7 +333,7 @@ dependencies = [
"hmac",
"password-hash",
"rayon",
- "sha-1",
+ "sha1",
"sha2",
"streebog",
]
@@ -441,17 +441,6 @@ dependencies = [
"sha2",
]
-[[package]]
-name = "sha-1"
-version = "... | 2 | 14 | 14 |
08a4e13b2fbea025b983cbe2890997efc634251a | Tony Arcieri | 2022-11-14T00:15:31 | Cargo.toml(s): add `authentication` category (#356) | diff --git a/.readme/Cargo.toml b/.readme/Cargo.toml
index 636e096..fcd2669 100644
--- a/.readme/Cargo.toml
+++ b/.readme/Cargo.toml
@@ -2,6 +2,7 @@ workspace.members = ["."]
[package]
name = "readme"
+description = "rustdoc tests for toplevel README.md"
version = "0.1.0"
edition = "2021"
publish = false
diff --... | 7 | 13 | 12 |
e1acd2f2e511b0ace5a3a7f357158a24b255dcf8 | Tobias Florek | 2022-10-20T15:45:48 | sha-crypt: add `sha256_crypt` (#350) | diff --git a/Cargo.lock b/Cargo.lock
index bfd6990..9fc2006 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -34,9 +34,9 @@ dependencies = [
[[package]]
name = "base64ct"
-version = "1.5.2"
+version = "1.5.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ea2b2456fd614d856680dcd9fcc660a51... | 7 | 548 | 100 |
da9085d6f78fdc5314b4654a4f711c6fea3e40b9 | Артём Павлов [Artyom Pavlov] | 2022-09-16T03:15:59 | Update Cargo.lock | diff --git a/Cargo.lock b/Cargo.lock
index f1a6a96..d3dee69 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -60,9 +60,9 @@ dependencies = [
[[package]]
name = "block-buffer"
-version = "0.10.2"
+version = "0.10.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0bf7fe51849ea569fd452f37822... | 1 | 14 | 14 |
2bba6a1f2b192fe6f8dea396467076d849eeef8b | Tony Arcieri | 2022-08-28T19:13:21 | argon2: add clippy lints to avoid panics (#334)
Expands the set of clippy lints applied to include ones intended to
eliminate panics.
Replaces `usize::try_from(n: u32).unwrap()` usages with `as u32` to
avoid panics, avoiding possible truncation by adding a `compile_error!`
if the `target_pointer_width` isn't 32 ... | diff --git a/argon2/src/variable_hash.rs b/argon2/src/blake2b_long.rs
similarity index 85%
rename from argon2/src/variable_hash.rs
rename to argon2/src/blake2b_long.rs
index cd271f8..b366f07 100644
--- a/argon2/src/variable_hash.rs
+++ b/argon2/src/blake2b_long.rs
@@ -14,24 +14,25 @@ pub fn blake2b_long(inputs: &[&[u8]... | 3 | 43 | 22 |
0262c5a9c9c91e8bc4cd0c4aeea6a8ebb7dcaed3 | Tony Arcieri | 2022-08-28T18:46:37 | argon2: followups to #247 (#333)
- Bump version to `0.5.0-pre` (#247 contained breaking changes)
- Use pointer casts to convert `Block` integer array to byte array
- Rename `permutate!` to `permute!` (former isn't in OED, latter is) | diff --git a/Cargo.lock b/Cargo.lock
index 6e9b740..cf690be 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4,7 +4,7 @@ version = 3
[[package]]
name = "argon2"
-version = "0.4.1"
+version = "0.5.0-pre"
dependencies = [
"base64ct",
"blake2",
diff --git a/argon2/Cargo.toml b/argon2/Cargo.toml
index bb0ea39..ab15fc9... | 4 | 21 | 30 |
59e7f6edd3b1e93b4dd46898b6389cab9addf907 | Tony Arcieri | 2022-08-28T00:04:11 | scrypt: fix clippy; bump to v0.11.0-pre (#332)
Followup to #255.
This fixes a clippy error and bumps the version to v0.11.0-pre as #255
contained a breaking change. | diff --git a/Cargo.lock b/Cargo.lock
index d1f9717..fd4c308 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -378,7 +378,7 @@ checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd"
[[package]]
name = "scrypt"
-version = "0.10.0"
+version = "0.11.0-pre"
dependencies = [
"hmac",
"password-hash"... | 4 | 7 | 10 |
4a2b6594dfd8d3f7ce05a38c97f7cd12ed3bcff3 | Numenorean | 2022-08-27T21:58:25 | scrypt: ability to use custom output key length (#255) | diff --git a/scrypt/src/params.rs b/scrypt/src/params.rs
index ff6fa7b..bbaf10f 100644
--- a/scrypt/src/params.rs
+++ b/scrypt/src/params.rs
@@ -27,15 +27,18 @@ impl Params {
/// - `log_n` - The log2 of the Scrypt parameter `N`
/// - `r` - The Scrypt parameter `r`
/// - `p` - The Scrypt parameter `p`
+ ... | 2 | 12 | 5 |
5192a53e1aa7aae6b2be2beaceb2a060b0545d3c | masmullin2000 | 2022-08-08T12:05:39 | sha-crypt: enable passwords longer than 64 bytes in length (#328)
1) in produce_byte_seq, the fill_from slice will always be 64 bytes in
length, due to the SHA512 algorithm digest supplying these bytes
2) produce_byte_seq() was attempting to index the fill_from slice beyond
the 64 bytes when a password > 64... | diff --git a/sha-crypt/src/lib.rs b/sha-crypt/src/lib.rs
index f5f489e..fba10f2 100644
--- a/sha-crypt/src/lib.rs
+++ b/sha-crypt/src/lib.rs
@@ -120,7 +120,7 @@ pub fn sha512_crypt(
// 16.
// Create byte sequence P.
- let p_vec = produce_byte_seq(pw_len, &dp, BLOCK_SIZE);
+ let p_vec = produce_byte_se... | 2 | 54 | 6 |
95dd9a27d1128450ff2596fe5d4db0b3caa0f23e | Nathaniel Knight | 2022-07-19T19:24:44 | doc: Add a link to scrypt's usage example (#324)
I ended up on the [`Scrypt` struct's page] while trying to figure out
how to use the crate and it wasn't obvious what the associated function
to actually hash a password was. This commit adds a link to the
crate-level usage example to (hopefully) prevent folks from g... | diff --git a/scrypt/src/simple.rs b/scrypt/src/simple.rs
index 6114f03..66c3527 100644
--- a/scrypt/src/simple.rs
+++ b/scrypt/src/simple.rs
@@ -7,6 +7,8 @@ use password_hash::{Decimal, Error, Ident, Output, PasswordHash, PasswordHasher,
pub const ALG_ID: Ident = Ident::new_unwrap("scrypt");
/// scrypt type for use... | 1 | 2 | 0 |
deb9104e8813a61ff0070f11262b20069d5d7ddc | Tony Arcieri | 2022-06-27T15:20:16 | Bump `base64ct` to v1.5.1 (#317)
This version added a check that encoded Base64 is canonical, i.e. that
the decoded value will round-trip back to the encoded value.
Some of the test vectors did not have this property and have been fixed. | diff --git a/Cargo.lock b/Cargo.lock
index b39c001..87279ea 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -35,9 +35,9 @@ dependencies = [
[[package]]
name = "base64ct"
-version = "1.5.0"
+version = "1.5.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "dea908e7347a8c64e378c17e30ef880ad... | 3 | 4 | 4 |
288eedbec4eec77e4e9521a1862e2929ce2dea1b | daxpedda | 2022-06-21T12:49:16 | Implement `Balloon::hash_into` (#313) | diff --git a/balloon-hash/src/balloon.rs b/balloon-hash/src/balloon.rs
index e86bc57..7c59935 100644
--- a/balloon-hash/src/balloon.rs
+++ b/balloon-hash/src/balloon.rs
@@ -28,12 +28,13 @@ pub fn balloon_m<D: Digest + FixedOutputReset>(
secret: Option<&[u8]>,
params: Params,
memory_blocks: &mut [GenericA... | 3 | 82 | 19 |
6ec01af40324506116d30c53f66f9367e1a16ade | Oddbjørn Grødem | 2022-06-12T16:24:18 | argon2: update version in docs (#308)
The example in the docs for version 0.4 uses version 0.3 of the crate. This updates it. | diff --git a/argon2/src/lib.rs b/argon2/src/lib.rs
index b1c7852..a659f8e 100644
--- a/argon2/src/lib.rs
+++ b/argon2/src/lib.rs
@@ -20,7 +20,7 @@
//!
//! ```toml
//! [dependencies]
-//! argon2 = "0.3"
+//! argon2 = "0.4"
//! rand_core = { version = "0.6", features = ["std"] }
//! ```
//! | 1 | 1 | 1 |
a1f5e502e7a6f3f362073bd32e8762063fba1c7d | daxpedda | 2022-06-10T12:51:44 | Remove crate feature from `argon2::RECOMMENDED_SALT_LEN` (#307) | diff --git a/argon2/src/lib.rs b/argon2/src/lib.rs
index 2bb730b..b1c7852 100644
--- a/argon2/src/lib.rs
+++ b/argon2/src/lib.rs
@@ -107,9 +107,7 @@ pub const MIN_SALT_LEN: usize = 8;
pub const MAX_SALT_LEN: usize = 0xFFFFFFFF;
/// Recommended salt length for password hashing in bytes.
-#[cfg(feature = "password-ha... | 1 | 1 | 3 |
cda6b1ee0e0edfde8aa8a189235e44f5aa0e2476 | Falko | 2022-06-08T14:57:53 | Argon2: add constant for recommended salt length (#306)
The specification of argon2 recommends a salt length of
16 bytes for password hashing (section 3.1).
This commit adds a constant to make this recommended
salt length accessible to users by re-exporting
`password_hash::Salt::RECOMMENDED_LENGTH`. | diff --git a/argon2/src/lib.rs b/argon2/src/lib.rs
index 3066d64..2bb730b 100644
--- a/argon2/src/lib.rs
+++ b/argon2/src/lib.rs
@@ -100,12 +100,17 @@ use password_hash::{Decimal, Ident, ParamsString, Salt};
/// Maximum password length in bytes.
pub const MAX_PWD_LEN: usize = 0xFFFFFFFF;
-/// Minimum and maximum sa... | 1 | 6 | 1 |
66b2dde82c72ed774b0109399a84e0f32aeb3ff0 | Dezhi Wu | 2022-03-06T21:10:12 | docs: update corresponding version in doc (#282) | diff --git a/pbkdf2/src/lib.rs b/pbkdf2/src/lib.rs
index 2598cdb..179c6c0 100644
--- a/pbkdf2/src/lib.rs
+++ b/pbkdf2/src/lib.rs
@@ -7,7 +7,7 @@
//!
//! ```toml
//! [dependencies]
-//! pbkdf2 = { version = "0.7", default-features = false }
+//! pbkdf2 = { version = "0.10", default-features = false }
//! ```
//!
/... | 1 | 2 | 2 |
920e9d853a51e9c396c334e331585f4cd50f2ae5 | Alex Gaynor | 2022-02-20T17:38:58 | fixes #276 -- allow passphrase to be impl AsRef<[u8]> to permit non-utf8 passphrases (#277) | diff --git a/bcrypt-pbkdf/src/lib.rs b/bcrypt-pbkdf/src/lib.rs
index 9538d72..cd44ac5 100644
--- a/bcrypt-pbkdf/src/lib.rs
+++ b/bcrypt-pbkdf/src/lib.rs
@@ -126,12 +126,13 @@ impl Drop for Bhash {
/// - `Err(Error::InvalidRounds)` if `rounds == 0`.
/// - `Err(Error::InvalidOutputLen)` if `output.is_empty() || output.... | 1 | 3 | 7 |
4b81fdbf9832881a6257743878f0fcae89c6f1ee | Artyom Pavlov | 2022-02-18T13:12:21 | Fix tests (#275) | diff --git a/argon2/tests/kat.rs b/argon2/tests/kat.rs
index 6d44368..cd736cc 100644
--- a/argon2/tests/kat.rs
+++ b/argon2/tests/kat.rs
@@ -4,7 +4,7 @@
//! `draft-irtf-cfrg-argon2-12` Section 5:
//! <https://datatracker.ietf.org/doc/draft-irtf-cfrg-argon2/>
-#![cfg(feature = "alloc")]
+#![cfg(all(feature = "alloc"... | 5 | 39 | 38 |
0d6a208053bfd33859785a7edcffe5cf1b3d6373 | Tony Arcieri | 2022-01-23T01:24:16 | balloon-hash: fix `repository` link in Cargo.toml | diff --git a/balloon-hash/Cargo.toml b/balloon-hash/Cargo.toml
index 3afe657..efcaefa 100644
--- a/balloon-hash/Cargo.toml
+++ b/balloon-hash/Cargo.toml
@@ -5,7 +5,7 @@ description = "Pure Rust implementation of the Balloon password hashing function
authors = ["RustCrypto Developers"]
license = "MIT OR Apache-2.0"
d... | 1 | 1 | 1 |
3d6c0625acaf753ddae318b964281ad26882cd44 | daxpedda | 2021-12-21T14:57:49 | Make `Params::block_count()` public (#258) | diff --git a/argon2/src/params.rs b/argon2/src/params.rs
index 6b52932..aae03d6 100644
--- a/argon2/src/params.rs
+++ b/argon2/src/params.rs
@@ -168,7 +168,7 @@ impl Params {
}
/// Get the number of blocks required given the configured `m_cost` and `p_cost`.
- pub(crate) fn block_count(&self) -> usize {
... | 1 | 1 | 1 |
8754a8d807545bd52570fdd1efcd55dbc8bace48 | Max Friedrich | 2021-11-21T19:04:28 | Fixed version in docs (#253) | diff --git a/argon2/src/lib.rs b/argon2/src/lib.rs
index 2894b5c..c689f87 100644
--- a/argon2/src/lib.rs
+++ b/argon2/src/lib.rs
@@ -24,7 +24,7 @@
//!
//! ```toml
//! [dependencies]
-//! argon2 = "0.2"
+//! argon2 = "0.3"
//! rand_core = { version = "0.6", features = ["std"] }
//! ```
//! | 1 | 1 | 1 |
404bcd1d904eff49c930ae9d77f32b6980eb6104 | Tony Arcieri | 2021-10-20T20:08:07 | argon2: doc fixups | diff --git a/argon2/src/lib.rs b/argon2/src/lib.rs
index b3d4b25..2894b5c 100644
--- a/argon2/src/lib.rs
+++ b/argon2/src/lib.rs
@@ -51,9 +51,11 @@
//! // Hash password to PHC string ($argon2id$v=19$...)
//! let password_hash = argon2.hash_password(password, &salt)?.to_string();
//!
-//! // Verify password against P... | 1 | 4 | 2 |
61aa850af215680526b2a91b22082f1cb0bf5cb8 | Emmanuel Leblond | 2021-10-20T19:34:03 | argon2: Add tests from reference implementation (#249)
Closes #109 | diff --git a/argon2/src/lib.rs b/argon2/src/lib.rs
index a81a3f3..b3d4b25 100644
--- a/argon2/src/lib.rs
+++ b/argon2/src/lib.rs
@@ -53,7 +53,8 @@
//!
//! // Verify password against PHC string
//! let parsed_hash = PasswordHash::new(&password_hash)?;
-//! assert!(argon2.verify_password(password, &parsed_hash).is_ok(... | 4 | 772 | 6 |
a62638a4d08e668ed855068c7b2972b52c614c10 | Tony Arcieri | 2021-09-17T17:58:22 | sha-crypt: handle B64 decoding errors (#242)
Changes the B64 decoder to return a `Result`, returning an error if the
input is invalid instead of panicking.
Fixes #240 | diff --git a/sha-crypt/src/b64.rs b/sha-crypt/src/b64.rs
index 636aea5..eca2807 100644
--- a/sha-crypt/src/b64.rs
+++ b/sha-crypt/src/b64.rs
@@ -3,6 +3,9 @@
use crate::defs::{MAP, TAB};
use alloc::vec::Vec;
+#[cfg(feature = "simple")]
+use crate::errors::DecodeError;
+
pub fn encode(source: &[u8]) -> Vec<u8> {
... | 4 | 40 | 10 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.