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 |
|---|---|---|---|---|---|---|---|
db88376971fe6ddda569004c426dc8a022e04629 | Tony Arcieri | 2021-09-17T14:22:24 | sha-crypt: test cleanup (#241)
Simplify test vectors | diff --git a/sha-crypt/tests/mod.rs b/sha-crypt/tests/lib.rs
similarity index 69%
rename from sha-crypt/tests/mod.rs
rename to sha-crypt/tests/lib.rs
index 2492413..c287345 100644
--- a/sha-crypt/tests/mod.rs
+++ b/sha-crypt/tests/lib.rs
@@ -3,43 +3,40 @@ use sha_crypt::{sha512_crypt_b64, Sha512Params, ROUNDS_MAX, ROUN... | 1 | 25 | 28 |
fc77e37ad4895799ea716508010e557502ca84bf | Tony Arcieri | 2021-09-11T14:07:46 | argon2: fix handling of `p_cost` parameter (#235)
It was not being passed correctly to `Instance`
Closes #234 | diff --git a/argon2/src/instance.rs b/argon2/src/instance.rs
index 5817558..f0d0943 100644
--- a/argon2/src/instance.rs
+++ b/argon2/src/instance.rs
@@ -99,7 +99,7 @@ impl<'a> Instance<'a> {
passes: context.params.t_cost(),
lane_length,
lanes: context.params.lanes(),
- ... | 1 | 1 | 1 |
c9250a4b70f920dc447e5df01198fd29a1f28340 | Tony Arcieri | 2021-08-30T16:40:32 | Cargo.lock: bump dependencies (#230) | diff --git a/Cargo.lock b/Cargo.lock
index 2c3cb84..60a7d10 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -98,9 +98,9 @@ dependencies = [
[[package]]
name = "cpufeatures"
-version = "0.1.5"
+version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "66c99696f6c9dd7f35d486b9d04d7e... | 1 | 12 | 12 |
5080349bd053c069e16bd4bf839ccd7130651453 | Tony Arcieri | 2021-08-27T23:41:20 | Remove `McfHasher` impls for `pbkdf2` and `scrypt` crates (#219)
The Modular Crypt Format is a legacy format, and the implementations
provided in the `pbkdf2` and `scrypt` crates implement a bespoke
RustCrypto-specific format.
Since that format has been introduced, support has been added to both
crates for the n... | diff --git a/Cargo.lock b/Cargo.lock
index 5572516..93e4e7f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4,7 +4,7 @@ version = 3
[[package]]
name = "argon2"
-version = "0.2.4"
+version = "0.3.0-pre.1"
dependencies = [
"base64ct",
"blake2",
@@ -282,7 +282,6 @@ dependencies = [
name = "pbkdf2"
version = "0.8.0... | 7 | 8 | 177 |
d47c5151b6dedd9784924cda503e1eb7b1cac3fa | Tony Arcieri | 2021-08-27T22:40:09 | argon2 v0.3.0-pre.1 (#218) | diff --git a/argon2/Cargo.toml b/argon2/Cargo.toml
index b08cb95..bf82418 100644
--- a/argon2/Cargo.toml
+++ b/argon2/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "argon2"
-version = "0.2.4" # Also update html_root_url in lib.rs when bumping this
+version = "0.3.0-pre.1" # Also update html_root_url in lib.rs when bump... | 2 | 2 | 2 |
768d2f97ab1c450070457467256bcb58ba221876 | Tony Arcieri | 2021-08-27T22:26:15 | Bump `password-hash` to v0.3 (#217)
Release notes: https://github.com/RustCrypto/traits/pull/724 | diff --git a/Cargo.lock b/Cargo.lock
index 1e7012d..5572516 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -269,8 +269,9 @@ checksum = "624a8340c38c1b80fd549087862da4ba43e08858af025b236e509b6649fc13d5"
[[package]]
name = "password-hash"
-version = "0.3.0-pre.1"
-source = "git+https://github.com/rustcrypto/traits.git#c... | 5 | 8 | 10 |
02f7f2a3e4ad38ab7a651d8d3aa5c5739f8c9738 | Tony Arcieri | 2021-08-27T21:56:37 | argon2: add support for `keyid` and `data` to `Params`(Builder) (#216)
Adds support for optional parameters for identifying a specific Argon2
secret key ID to use when computing a password hash, and optional
associated data. | diff --git a/Cargo.lock b/Cargo.lock
index 4531878..1e7012d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -6,6 +6,7 @@ version = 3
name = "argon2"
version = "0.2.4"
dependencies = [
+ "base64ct",
"blake2",
"hex-literal",
"password-hash",
@@ -269,7 +270,7 @@ checksum = "624a8340c38c1b80fd549087862da4ba43e08858af0... | 10 | 297 | 199 |
2a06f27271dd0a58c70f3ea86d37f6496ffd7062 | Tony Arcieri | 2021-08-27T17:39:11 | rustdoc improvements (#214)
- Replace use of `unwrap()` with `?`
- Use `rand_core` re-export from `password-hash` crate | diff --git a/Cargo.lock b/Cargo.lock
index d21cd24..4531878 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -9,7 +9,6 @@ dependencies = [
"blake2",
"hex-literal",
"password-hash",
- "rand_core",
"rayon",
"zeroize",
]
@@ -286,7 +285,6 @@ dependencies = [
"hex-literal",
"hmac",
"password-hash",
- "rand_core"... | 8 | 34 | 25 |
fbe597ca53e317a74b0e1f5c1ee5744ef146b28e | Tony Arcieri | 2021-08-27T17:19:38 | argon2: refactor `Params` handling (#213)
Uses `Params` internally within the `Argon2` context, refactoring all of
the logic related to parameter handling into that type/module:
- Changes `Argon2::new` to accept explicit `version` and `params`
- Factors apart `Argon2::new` and `Argon2::new_with_secret`, making th... | diff --git a/argon2/src/error.rs b/argon2/src/error.rs
index e76b2e3..0e030f1 100644
--- a/argon2/src/error.rs
+++ b/argon2/src/error.rs
@@ -12,49 +12,43 @@ pub type Result<T> = core::result::Result<T, Error>;
// TODO(tarcieri): consolidate/replace with `password_hash::Error`
#[derive(Copy, Clone, Debug, Eq, PartialE... | 5 | 272 | 265 |
3bfc4d9a5fa281916f39cfc700736115af3ac950 | Tony Arcieri | 2021-08-27T04:18:43 | argon2: remove version from params (#211)
In the PHC string format, version is out-of-band from the rest of the
parameters.
This change reflects that in the API and types. | diff --git a/argon2/src/lib.rs b/argon2/src/lib.rs
index 08368ad..6b84261 100644
--- a/argon2/src/lib.rs
+++ b/argon2/src/lib.rs
@@ -219,7 +219,7 @@ impl Default for Argon2<'_> {
params.t_cost,
params.m_cost,
params.p_cost,
- params.version,
+ Version::defaul... | 2 | 9 | 28 |
cc9f23a908a867fed1dc579f03939d4bd9a29beb | Tony Arcieri | 2021-08-27T04:12:20 | Bump `password-hash` crate (#210)
Updates `argon2`, `pbkdf2`, and `scrypt` with the following upstream
changes from the unreleased `password-hash` crate:
- Add `version` param to `PasswordHasher` (RustCrypto/traits#719)
- Refactor `PasswordHasher` (RustCrypto/traits#720) | diff --git a/Cargo.lock b/Cargo.lock
index 8467c75..584a6e1 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -270,8 +270,7 @@ checksum = "624a8340c38c1b80fd549087862da4ba43e08858af025b236e509b6649fc13d5"
[[package]]
name = "password-hash"
version = "0.3.0-pre.1"
-source = "registry+https://github.com/rust-lang/crates.io-... | 8 | 40 | 21 |
1cdb4d7b2394310ac8bbe6b7344da8963733de43 | Tony Arcieri | 2021-08-26T17:43:49 | Bump `password-hash` dependency to v0.3.0-pre.1 (#209) | diff --git a/Cargo.lock b/Cargo.lock
index 58bfc01..8467c75 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -39,9 +39,9 @@ dependencies = [
[[package]]
name = "blake2"
-version = "0.9.2"
+version = "0.9.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "0a4e37d16930f5459780f5621038b6382b9... | 9 | 58 | 37 |
d33b9bb4cea871325b5f9ce875f249d3027b86df | Tony Arcieri | 2021-08-21T15:04:36 | argon2: add `ParamsBuilder` (#204)
Adds a builder type which simplifies constructing `Params`. | diff --git a/argon2/src/lib.rs b/argon2/src/lib.rs
index 87d64cd..b19cc5b 100644
--- a/argon2/src/lib.rs
+++ b/argon2/src/lib.rs
@@ -84,7 +84,7 @@ mod version;
pub use crate::{
algorithm::Algorithm,
error::{Error, Result},
- params::Params,
+ params::{Params, ParamsBuilder},
version::Version,
};
... | 2 | 66 | 3 |
6c5239ef955bd15c9200be2095483c5d29d6bb31 | Tony Arcieri | 2021-08-21T14:47:18 | argon2: add `Result` type alias (#203)
Adds an alias for `Result<T, argon2::Error>` and uses it throughout the
implementation to simplify the specification of results. | diff --git a/argon2/src/algorithm.rs b/argon2/src/algorithm.rs
index 3f12603..fa9db09 100644
--- a/argon2/src/algorithm.rs
+++ b/argon2/src/algorithm.rs
@@ -1,6 +1,6 @@
//! Argon2 algorithms (e.g. Argon2d, Argon2i, Argon2id).
-use crate::Error;
+use crate::{Error, Result};
use core::{
fmt::{self, Display},
... | 6 | 28 | 20 |
e5c79a5cc6a359c99a9d6f9102fe31758c66adc3 | Tony Arcieri | 2021-08-21T14:26:45 | argon2: impl TryFrom<Params> for Argon2 (#202)
Support for initializing the algorithm from its parameters.
The `Params` struct has `pub` fields and therefore doesn't validate its
parameters, so we need a fallible conversion here.
An alternative would be to have `Params` always validate its parameters,
removing... | diff --git a/argon2/src/lib.rs b/argon2/src/lib.rs
index 352991a..a845ba2 100644
--- a/argon2/src/lib.rs
+++ b/argon2/src/lib.rs
@@ -96,10 +96,11 @@ use crate::{
memory::{Memory, SYNC_POINTS},
};
use blake2::{digest, Blake2b, Digest};
+use core::convert::TryFrom;
#[cfg(feature = "password-hash")]
use {
- ... | 2 | 28 | 1 |
ccccc691765622af6b38f92a9df67186a97f26b3 | Tony Arcieri | 2021-08-21T14:06:35 | argon2: move `extern crate std` directive (#201)
Places it in lib.rs | diff --git a/argon2/src/error.rs b/argon2/src/error.rs
index fee3150..bf17a32 100644
--- a/argon2/src/error.rs
+++ b/argon2/src/error.rs
@@ -1,8 +1,5 @@
//! Error type
-#[cfg(feature = "std")]
-extern crate std;
-
use core::fmt;
/// Error type.
diff --git a/argon2/src/lib.rs b/argon2/src/lib.rs
index a9d7ead..35... | 2 | 3 | 3 |
d2a6cbff88004bcda1d5d5666fa2bb28834a3708 | lkarthee | 2021-08-21T13:58:20 | argon2: add std error impl (#200) | diff --git a/argon2/src/error.rs b/argon2/src/error.rs
index e95fbd3..fee3150 100644
--- a/argon2/src/error.rs
+++ b/argon2/src/error.rs
@@ -1,5 +1,8 @@
//! Error type
+#[cfg(feature = "std")]
+extern crate std;
+
use core::fmt;
/// Error type.
@@ -102,3 +105,6 @@ impl From<Error> for password_hash::Error {
... | 1 | 6 | 0 |
491750a7369fbb208cf16b0d188f6fd613a2ae29 | Tony Arcieri | 2021-08-15T14:49:46 | argon2: remove outdated notes (#196)
Multithreading has been implemented | diff --git a/argon2/src/lib.rs b/argon2/src/lib.rs
index bbe8bbd..7e0a449 100644
--- a/argon2/src/lib.rs
+++ b/argon2/src/lib.rs
@@ -51,13 +51,6 @@
//! # }
//! ```
//!
-//! # Notes
-//!
-//! Multithreading has not yet been implemented.
-//!
-//! Increasing the parallelism factor will still compute the correct result... | 1 | 0 | 7 |
f444b00437c36e1863cba8a9f8b0c3c2e07fb4b8 | Artyom Pavlov | 2021-07-20T19:02:31 | pbkdf2: add GOST test vectors (#191) | diff --git a/Cargo.lock b/Cargo.lock
index dec1081..2f0eddc 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -54,9 +54,16 @@ version = "0.9.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4152116fd6e9dadb291ae18fc1ec3575ed6d84c29642d97890f4b4a3417297e4"
dependencies = [
+ "block-padding",
... | 3 | 109 | 0 |
4e8736a86d669e022d5d70085aaea3385476daa1 | Tony Arcieri | 2021-05-28T18:46:14 | argon2: make `Params` always available; fix `hash_password_simple` (#182)
Closes #179.
This commit makes the `Params` struct always available regardless of
enabled crate features, adding on functionality when the `password-hash`
feature is enabled.
Per the added TODOs in this commit, it really seems like in th... | diff --git a/argon2/src/algorithm.rs b/argon2/src/algorithm.rs
new file mode 100644
index 0000000..3f12603
--- /dev/null
+++ b/argon2/src/algorithm.rs
@@ -0,0 +1,137 @@
+//! Argon2 algorithms (e.g. Argon2d, Argon2i, Argon2id).
+
+use crate::Error;
+use core::{
+ fmt::{self, Display},
+ str::FromStr,
+};
+
+#[cfg(... | 3 | 289 | 182 |
56983f3977e216451c1249027bcc920b7ce3c6c6 | Tony Arcieri | 2021-05-28T17:18:07 | argon2: eliminate redundant checks added in #135 (#181)
Now that error handling has been improved in `password-hash` v0.2, these
are no longer needed as the errors will be properly handled in the
`hash_password_into` function. | diff --git a/argon2/src/error.rs b/argon2/src/error.rs
index e1bbac2..e95fbd3 100644
--- a/argon2/src/error.rs
+++ b/argon2/src/error.rs
@@ -92,7 +92,7 @@ impl From<Error> for password_hash::Error {
Error::PwdTooLong => password_hash::Error::Password,
Error::OutputTooShort => password_hash::Er... | 2 | 4 | 19 |
5d24b6a78a0c52ee743b3cf643129d41a65774ee | Tony Arcieri | 2021-05-28T16:53:00 | argon2: error handling improvements (#180)
Adds a proper conversion between argon2::Error and password_hash::Error
and uses it when hashing the password. | diff --git a/argon2/src/error.rs b/argon2/src/error.rs
index fdb176a..e1bbac2 100644
--- a/argon2/src/error.rs
+++ b/argon2/src/error.rs
@@ -3,7 +3,7 @@
use core::fmt;
/// Error type.
-// TODO(tarcieri): finer-grained context-specific errors?
+// TODO(tarcieri): consolidate/replace with `password_hash::Error`
#[de... | 2 | 27 | 12 |
626063c08f649d6f79093b8eefe10b4582c2f2db | Tony Arcieri | 2021-05-05T15:07:10 | Cargo.lock: bump dependencies (#174) | diff --git a/Cargo.lock b/Cargo.lock
index b5dacbf..5ab6541 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -116,9 +116,9 @@ dependencies = [
[[package]]
name = "crossbeam-epoch"
-version = "0.9.3"
+version = "0.9.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2584f639eb95fea8c7984963... | 1 | 9 | 8 |
1266e3c709349ee4780f55ae6d1ea84442feb634 | Michael Jones | 2021-05-03T14:35:02 | Bump argon version number in docs (#172)
The latest release is 0.2 and I'm not sure that Cargo resolves to that
from 0.1. | diff --git a/argon2/src/lib.rs b/argon2/src/lib.rs
index 1c857ff..af631fc 100644
--- a/argon2/src/lib.rs
+++ b/argon2/src/lib.rs
@@ -21,7 +21,7 @@
//!
//! ```toml
//! [dependencies]
-//! argon2 = "0.1"
+//! argon2 = "0.2"
//! rand_core = { version = "0.6", features = ["std"] }
//! ```
//! | 1 | 1 | 1 |
3b5089ff55d897d8451827565cdb6ff2b9a09eac | Tony Arcieri | 2021-04-29T19:05:28 | scrypt: bump `salsa20` crate dependency to v0.8 (#166) | diff --git a/Cargo.lock b/Cargo.lock
index bef94c4..218200a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -62,7 +62,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "32fa6a061124e37baba002e496d203e23ba3d7b73750be82dbfbc92913048a5b"
dependencies = [
"byteorder",
- "cipher",
+ "cipher 0.... | 3 | 15 | 6 |
9858074c78e184cf2a734984cc490736f8ed3755 | Tony Arcieri | 2021-04-29T18:14:33 | Bump `hmac` and `crypto-mac` crate deps to v0.11 (#165) | diff --git a/Cargo.lock b/Cargo.lock
index 93b416d..bef94c4 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -29,7 +29,7 @@ name = "bcrypt-pbkdf"
version = "0.5.0"
dependencies = [
"blowfish",
- "crypto-mac 0.10.0",
+ "crypto-mac 0.11.0",
"pbkdf2",
"sha2",
"zeroize",
@@ -150,9 +150,9 @@ dependencies = [
[[packa... | 5 | 14 | 14 |
22c238a53b000a9b90036d0d489a840eb16a94a2 | Tony Arcieri | 2021-04-29T15:35:07 | Bump `password-hash` crate dependency to v0.2 (#164)
Release notes: https://github.com/RustCrypto/traits/pull/624 | diff --git a/Cargo.lock b/Cargo.lock
index 876f27c..93b416d 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -258,8 +258,9 @@ checksum = "624a8340c38c1b80fd549087862da4ba43e08858af025b236e509b6649fc13d5"
[[package]]
name = "password-hash"
-version = "0.2.0-pre"
-source = "git+https://github.com/RustCrypto/traits#d6a1e12... | 5 | 8 | 10 |
dc2cfa84412807ebb48a3f6ddf33b475f2b0089d | Tony Arcieri | 2021-04-28T18:21:06 | password-hash: v0.2 breaking changes (#162)
This is a set of changes which corresponds to the breaking changes to
the `password-hash` crate:
https://github.com/RustCrypto/traits/pull/615 | diff --git a/Cargo.lock b/Cargo.lock
index 0628924..876f27c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -258,9 +258,8 @@ checksum = "624a8340c38c1b80fd549087862da4ba43e08858af025b236e509b6649fc13d5"
[[package]]
name = "password-hash"
-version = "0.1.4"
-source = "registry+https://github.com/rust-lang/crates.io-inde... | 15 | 254 | 237 |
2ea332ad5d07ef6e0292d9136d609109e35d46b0 | Tony Arcieri | 2021-04-20T16:58:41 | argon2: use Block::SIZE constant (#161)
Also deprecates the previous `argon2::BLOCK_SIZE` constant. | diff --git a/argon2/src/block.rs b/argon2/src/block.rs
index f7ee8dd..96bc306 100644
--- a/argon2/src/block.rs
+++ b/argon2/src/block.rs
@@ -1,6 +1,5 @@
//! Argon2 memory block functions
-use crate::BLOCK_SIZE;
use core::{
convert::TryInto,
num::Wrapping,
@@ -11,62 +10,23 @@ use core::{
#[cfg(feature = "... | 3 | 57 | 58 |
9db9720f9212448744b60464ecd3c982640f3337 | Tony Arcieri | 2021-04-19T23:21:50 | Cargo.lock: bump dependencies (#160) | diff --git a/Cargo.lock b/Cargo.lock
index 02ef05f..0628924 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -68,9 +68,9 @@ dependencies = [
[[package]]
name = "byteorder"
-version = "1.4.2"
+version = "1.4.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "ae44d1a3d5a19df61dd0c8beb138458a... | 1 | 22 | 29 |
8a3f906d2be23c92785d0f8a732d2c86d19a703b | Tony Arcieri | 2021-04-19T21:56:00 | argon2: move segment length calculation to `Memory` type (#159)
Begins the work of moving calculations about the memory buffer to the
`Memory` type. | diff --git a/argon2/src/instance.rs b/argon2/src/instance.rs
index c0c6c05..b83fa5f 100644
--- a/argon2/src/instance.rs
+++ b/argon2/src/instance.rs
@@ -52,9 +52,6 @@ pub(crate) struct Instance<'a> {
/// Number of passes
passes: u32,
- /// Segment length
- segment_length: u32,
-
/// Lane length
... | 3 | 55 | 39 |
a1b7413b08f0d8f521e2821b51ae7c6a8b7fd0ba | Tony Arcieri | 2021-04-19T17:18:29 | argon2: move `Memory` to its own module (#158)
Also makes `Instance` accept `Memory` as a parameter.
This is in preparation for moving slice handling to `Memory`. | diff --git a/argon2/src/instance.rs b/argon2/src/instance.rs
index ebcaad3..c0c6c05 100644
--- a/argon2/src/instance.rs
+++ b/argon2/src/instance.rs
@@ -1,7 +1,8 @@
//! Argon2 instance (i.e. state)
use crate::{
- Algorithm, Argon2, Block, Error, Version, BLOCK_SIZE, MAX_OUTLEN, MIN_OUTLEN, SYNC_POINTS,
+ Algo... | 3 | 43 | 40 |
dfc9815e8db0b1467b3715a91fbad38d45077a3a | Tony Arcieri | 2021-04-19T14:27:07 | argon2: forbid unsafe code outside parallel implementation (#157)
Eventually it'd be nice to have a safe parallel implementation as well:
https://github.com/RustCrypto/password-hashes/issues/154 | diff --git a/argon2/src/lib.rs b/argon2/src/lib.rs
index dd79d56..cbe328b 100644
--- a/argon2/src/lib.rs
+++ b/argon2/src/lib.rs
@@ -63,12 +63,14 @@
//! [Password Hashing Competition]: https://www.password-hashing.net/
#![no_std]
+// TODO(tarcieri): safe parallel implementation
+// See: https://github.com/RustCrypt... | 1 | 3 | 1 |
dd8d13b308dd376aaeb02c686ab62f928d346e22 | Glitch | 2021-04-18T18:51:10 | argon2: Add parallel lane processing (#149)
* add parallel lane processing with rayon
* create memory struct and move blocks slice to it, dereference raw pointer in rayon closure | diff --git a/Cargo.lock b/Cargo.lock
index e7da4d0..5b7e217 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -8,6 +8,7 @@ dependencies = [
"hex-literal",
"password-hash",
"rand_core",
+ "rayon",
"zeroize",
]
diff --git a/argon2/Cargo.toml b/argon2/Cargo.toml
index 1f1984a..8068be2 100644
--- a/argon2/Cargo.toml
+... | 4 | 111 | 10 |
fd6a7ed739842562f7a3c38d89ed1fe073308ea4 | Tony Arcieri | 2021-03-27T14:43:01 | pbkdf2+scrypt: pin to `password-hash` v0.1.2 (#151)
We've had some reports of compile errors due to an unexpected
SemVer-breaking change (#147, #150).
This pins the `password-hash` version to one that's guaranteed to be
compatible with the current releases. | diff --git a/pbkdf2/Cargo.toml b/pbkdf2/Cargo.toml
index 645d5b1..c493e76 100644
--- a/pbkdf2/Cargo.toml
+++ b/pbkdf2/Cargo.toml
@@ -17,7 +17,7 @@ crypto-mac = "0.10"
rayon = { version = "1", optional = true }
base64ct = { version = "1", default-features = false, optional = true }
hmac = { version = "0.10", default-... | 2 | 2 | 2 |
5db9955d8b67c8c8a74a97937766cdb7413b5561 | Tony Arcieri | 2021-03-17T18:01:15 | pbkdf2/scrypt: bump `base64ct` dependency to v1.0 (#144) | diff --git a/Cargo.lock b/Cargo.lock
index 204df4a..1ee3886 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -19,9 +19,9 @@ checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a"
[[package]]
name = "base64ct"
-version = "0.2.1"
+version = "1.0.0"
source = "registry+https://github.com/rust-lang/cr... | 3 | 6 | 6 |
49db66f79f1becdd8117bf7499b7b1268ef1f9be | Kai Li | 2021-02-28T22:59:29 | Enable password-hash/std feature (#141) | diff --git a/argon2/Cargo.toml b/argon2/Cargo.toml
index 0cc0cb8..ed85423 100644
--- a/argon2/Cargo.toml
+++ b/argon2/Cargo.toml
@@ -27,6 +27,7 @@ rand_core = { version = "0.6", features = ["std"] }
[features]
default = ["password-hash", "rand"]
rand = ["password-hash/rand_core"]
+std = ["password-hash/std"]
[pac... | 3 | 3 | 2 |
175f5e28c1451c56b01509e9e06664049a1f4977 | Tony Arcieri | 2021-02-20T23:27:31 | scrypt: enable `rand_core` feature of `password-hash` (#139)
This makes the SaltString::generate function available.
Related: #130 | diff --git a/scrypt/Cargo.toml b/scrypt/Cargo.toml
index f8462f0..f29db07 100644
--- a/scrypt/Cargo.toml
+++ b/scrypt/Cargo.toml
@@ -14,7 +14,7 @@ readme = "README.md"
[dependencies]
base64ct = { version = "0.2", default-features = false, features = ["alloc"], optional = true }
hmac = "0.10"
-password-hash = { versi... | 1 | 1 | 1 |
8d51e7ef58bb75e0fb4ad5146d6987fbf448987b | Tony Arcieri | 2021-02-12T14:51:14 | argon2: avoid salt-length related panic (closes #134) (#135)
Adds some additional advance checks that Argon2 parameters are within
range, and returns errors in the event they are not.
This prevents a panic caused by what was previously an `unimplemented!`
call when converting error types.
The occurrence of the... | diff --git a/argon2/src/lib.rs b/argon2/src/lib.rs
index 4ce097c..75dd758 100644
--- a/argon2/src/lib.rs
+++ b/argon2/src/lib.rs
@@ -571,6 +571,22 @@ impl PasswordHasher for Argon2<'_> {
)
.map_err(|_| HasherError::Params(ParamsError::InvalidValue))?;
+ if MAX_PWD_LENGTH < password.len() {
+ ... | 1 | 36 | 1 |
182d80cfcaa29682a1378b0de5c41aca412a0029 | Tony Arcieri | 2021-02-08T19:25:10 | pbkdf2: enable `rand_core` feature of `password-hash` (#130)
This makes the `SaltString::generate` function available. | diff --git a/Cargo.lock b/Cargo.lock
index 66dddfe..c8b95f8 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2,7 +2,7 @@
# It is not intended for manual editing.
[[package]]
name = "argon2"
-version = "0.1.1"
+version = "0.1.2"
dependencies = [
"blake2",
"hex-literal",
diff --git a/pbkdf2/Cargo.toml b/pbkdf2/Cargo.... | 2 | 2 | 2 |
5403ead50a6dddb3fcfcb6d6602def9ee9faa3f2 | Tony Arcieri | 2021-02-07T22:53:58 | argon2: fix rustdoc typo (#128) | diff --git a/argon2/src/lib.rs b/argon2/src/lib.rs
index 682266a..4ce097c 100644
--- a/argon2/src/lib.rs
+++ b/argon2/src/lib.rs
@@ -22,7 +22,7 @@
//! ```toml
//! [dependencies]
//! argon2 = "0.1"
-//! rand_core = { version = "0.6", features = ["std"]
+//! rand_core = { version = "0.6", features = ["std"] }
//! ```... | 1 | 1 | 1 |
ca1416ad575f9bfbb12d8f4a274e4f4c78544b24 | Tony Arcieri | 2021-02-07T22:24:52 | argon2: add `rand` feature (#126)
Enables the `rand_core` feature of `password-hash`.
Enabled-by-default. | diff --git a/argon2/Cargo.toml b/argon2/Cargo.toml
index fcc3caf..00c0c70 100644
--- a/argon2/Cargo.toml
+++ b/argon2/Cargo.toml
@@ -25,7 +25,8 @@ password-hash = { version = "0.1", features = ["rand_core"] }
rand_core = { version = "0.6", features = ["std"] }
[features]
-default = ["password-hash"]
+default = ["pa... | 1 | 2 | 1 |
1bb21b17c0d35486e7b14fa9c07deba059659189 | Tony Arcieri | 2021-02-06T16:55:16 | scrypt: add Params accessor methods | diff --git a/scrypt/src/params.rs b/scrypt/src/params.rs
index deff126..38aa8bc 100644
--- a/scrypt/src/params.rs
+++ b/scrypt/src/params.rs
@@ -90,6 +90,26 @@ impl Params {
len: RECOMMENDED_LEN,
}
}
+
+ /// log2 of the Scrypt parameter `N`, the work factor.
+ ///
+ /// Memory and CP... | 1 | 20 | 0 |
ec75ff81b2912825a6665bc96ed8e28a92283ee6 | Tony Arcieri | 2021-02-01T22:41:49 | argon2: fix redundant comment | diff --git a/argon2/src/lib.rs b/argon2/src/lib.rs
index 17288b5..9287b0a 100644
--- a/argon2/src/lib.rs
+++ b/argon2/src/lib.rs
@@ -3,7 +3,7 @@
//! # About
//!
//! Argon2 is a memory-hard [key derivation function] chosen as the winner of
-//! the 2015 [Password Hashing Competition] in July 2015.
+//! the [Password ... | 1 | 1 | 1 |
d54069743b35e277ccf651bfe2186cb06ea00596 | Tony Arcieri | 2021-02-01T17:08:35 | Bump `base64ct` dependency to v0.2 (#119) | diff --git a/Cargo.lock b/Cargo.lock
index e586fc4..f0342a7 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -19,9 +19,9 @@ checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a"
[[package]]
name = "base64ct"
-version = "0.1.2"
+version = "0.2.0"
source = "registry+https://github.com/rust-lang/cr... | 5 | 19 | 15 |
330e25bdb477f271a6ce9b6c7052fd7ed1c4884c | Tony Arcieri | 2021-01-29T21:41:21 | scrypt: rename ScryptParams => Params (#112)
This follows RFC 356 naming conventions:
https://rust-lang.github.io/rfcs/0356-no-module-prefixes.html | diff --git a/scrypt/Cargo.toml b/scrypt/Cargo.toml
index 4d0558e..932b757 100644
--- a/scrypt/Cargo.toml
+++ b/scrypt/Cargo.toml
@@ -27,3 +27,7 @@ rand_core = { version = "0.6", features = ["std"] }
default = ["simple", "std"]
simple = ["password-hash", "base64ct"]
std = []
+
+[package.metadata.docs.rs]
+all-feature... | 6 | 31 | 24 |
1848af885266d2128904b94e5a16853f9c968706 | Tony Arcieri | 2021-01-29T16:15:52 | argon2: rename Known Answer Tests (KAT) file (#110) | diff --git a/argon2/tests/test_vectors.rs b/argon2/tests/kat.rs
similarity index 99%
rename from argon2/tests/test_vectors.rs
rename to argon2/tests/kat.rs
index 9689bd6..18a6d8e 100644
--- a/argon2/tests/test_vectors.rs
+++ b/argon2/tests/kat.rs
@@ -1,4 +1,4 @@
-//! Argon2 test vectors.
+//! Argon2 Known Answer Tests ... | 1 | 1 | 1 |
de966abc93e31fc90227f770ae77f3aae7789abb | Tony Arcieri | 2021-01-29T16:04:38 | pbkdf2: remove `alloc` dependencies for `simple` feature (#107)
They are trivial to remove as `password-hash` was written with the
intent of "heapless" support, so might as well remove them. | diff --git a/pbkdf2/Cargo.toml b/pbkdf2/Cargo.toml
index 5afa3c7..2ca3e44 100644
--- a/pbkdf2/Cargo.toml
+++ b/pbkdf2/Cargo.toml
@@ -15,9 +15,9 @@ readme = "README.md"
crypto-mac = "0.10"
rayon = { version = "1", optional = true }
-base64ct = { version = "0.1", default-features = false, features = ["alloc"], option... | 2 | 7 | 6 |
14a4ad33a52adaf46aae37e3f181b438502d14ff | Tony Arcieri | 2021-01-29T15:00:40 | pbkdf2: remove unused dependencies (#101)
There are several vestigial dependencies from the old `include_simple`
feature which are now no-longer needed as the `password-hash` crate
wraps up the same concerns. | diff --git a/Cargo.lock b/Cargo.lock
index 4ff9c7e..3494208 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -287,12 +287,9 @@ dependencies = [
"hex-literal",
"hmac",
"password-hash",
- "rand",
- "rand_core",
"rayon",
"sha-1",
"sha2",
- "subtle",
]
[[package]]
diff --git a/pbkdf2/Cargo.toml b/pbkdf2/Cargo.to... | 2 | 2 | 9 |
5cdc6fad70242c74e8ae3ac73a694b6ab1ff76cb | Tony Arcieri | 2021-01-29T14:11:38 | pbkdf2: remove legacy "simple" API (#98)
The previous "simple" API used an MCF hash format (`$rpbkdf2$...`) which
is unique to this crate and therefore not interoperable.
As of #82, the PHC string format is supported, which provides an
interoperable way to serialize PBKDF2 password hashes.
This commit complete... | diff --git a/Cargo.lock b/Cargo.lock
index 3151e73..4669ee3 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -282,7 +282,7 @@ dependencies = [
name = "pbkdf2"
version = "0.7.0-pre"
dependencies = [
- "base64",
+ "base64ct",
"crypto-mac 0.10.0",
"hex-literal",
"hmac",
diff --git a/pbkdf2/Cargo.toml b/pbkdf2/Cargo.to... | 8 | 262 | 416 |
72c08962198111be12007ccb595cf66341a9712a | Tony Arcieri | 2021-01-29T04:05:42 | Use `password-hash` v0.1 crate release (#95) | diff --git a/Cargo.lock b/Cargo.lock
index ae32df0..72d60af 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -269,8 +269,9 @@ checksum = "624a8340c38c1b80fd549087862da4ba43e08858af025b236e509b6649fc13d5"
[[package]]
name = "password-hash"
-version = "0.0.0"
-source = "git+https://github.com/rustcrypto/traits#fbb20ebfe89... | 4 | 5 | 7 |
f4d8cb9ba8c0cdfdaaa60d2b6d288fa612b39241 | Tony Arcieri | 2021-01-29T02:49:19 | argon2+pbkdf2: update `password-hash` dependency (#94)
Flattens module structure for errors | diff --git a/Cargo.lock b/Cargo.lock
index 632f338..ae32df0 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -270,7 +270,7 @@ checksum = "624a8340c38c1b80fd549087862da4ba43e08858af025b236e509b6649fc13d5"
[[package]]
name = "password-hash"
version = "0.0.0"
-source = "git+https://github.com/rustcrypto/traits#2927b40ef3ac3... | 3 | 7 | 11 |
69a8ff7c50fd2b64aff3c434e377ae5fe0db61c0 | Tony Arcieri | 2021-01-28T15:59:34 | pbkdf2: consistency cleanups (#92)
Cleanups in prep for adding `password-hash` support to Argon2 | diff --git a/pbkdf2/src/hasher.rs b/pbkdf2/src/hasher.rs
index 2cf6e5c..c37a3dd 100644
--- a/pbkdf2/src/hasher.rs
+++ b/pbkdf2/src/hasher.rs
@@ -41,7 +41,7 @@ impl PasswordHasher for Pbkdf2 {
params: Params,
salt: Salt<'a>,
) -> Result<PasswordHash<'a>, HasherError> {
- let algorithm = Alg... | 3 | 31 | 31 |
41b62034fedd2e64bb656d07e07d201bbfb053b5 | Tony Arcieri | 2021-01-26T21:59:50 | Bump `base64ct` dependency to v0.1 (#88) | diff --git a/Cargo.lock b/Cargo.lock
index c118a3a..cc76eb8 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -6,18 +6,18 @@ version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a"
-[[package]]
-name = "b64ct"
-versio... | 1 | 8 | 8 |
610ba007a3b6b0758e76d0d3217a0b1217993e47 | Tony Arcieri | 2021-01-20T14:58:51 | Bump `rand_core` dependency to v0.6 (#86) | diff --git a/Cargo.lock b/Cargo.lock
index 3e319c9..c118a3a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -165,9 +165,9 @@ dependencies = [
[[package]]
name = "getrandom"
-version = "0.1.16"
+version = "0.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8fc3cb4d91f53b50155bdcfd23f6a... | 4 | 17 | 18 |
093b82a6ca66b0f8c0924f22f99164f3233b1a55 | Tony Arcieri | 2021-01-20T14:43:19 | Cargo.lock: bump dependencies (#85) | diff --git a/Cargo.lock b/Cargo.lock
index 89197c0..3e319c9 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2,15 +2,15 @@
# It is not intended for manual editing.
[[package]]
name = "autocfg"
-version = "1.0.0"
+version = "1.0.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "f8aac770f18... | 1 | 34 | 41 |
e43df2821908cc17eb63783bc442d5783eaee4d6 | Tony Arcieri | 2021-01-16T04:10:53 | sha-crypt: fix clippy error (#84) | diff --git a/sha-crypt/src/params.rs b/sha-crypt/src/params.rs
index 5fb13a7..ebe93c7 100644
--- a/sha-crypt/src/params.rs
+++ b/sha-crypt/src/params.rs
@@ -22,9 +22,10 @@ impl Default for Sha512Params {
impl Sha512Params {
pub fn new(rounds: usize) -> Result<Sha512Params, errors::CryptError> {
- if roun... | 1 | 4 | 3 |
2e5a9a36f42931b2cf152d80430e57a7c6849006 | Tony Arcieri | 2020-12-28T16:57:29 | sha-crypt: use `subtle` crate (#76)
Consistent with the other crates in this repo | diff --git a/Cargo.lock b/Cargo.lock
index a591bbd..331160b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -76,12 +76,6 @@ version = "0.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ce90df4c658c62f12d78f7508cf92f9173e5184a539c10bfe54a3107b3ffd0f2"
-[[package]]
-name = "constant_time... | 3 | 25 | 29 |
a344930123b2d6daf72a6243f48ad4d408fc7364 | Tony Arcieri | 2020-12-28T16:49:00 | sha-crypt: add doc_cfg (#75)
Adds `doc_cfg` for https://docs.rs to document functions gated on the
`include_simple` feature. | diff --git a/sha-crypt/Cargo.toml b/sha-crypt/Cargo.toml
index 40e6c9d..07c6611 100644
--- a/sha-crypt/Cargo.toml
+++ b/sha-crypt/Cargo.toml
@@ -19,5 +19,9 @@ rand = { version = "0.7", optional = true }
constant_time_eq = { version = "0.1", optional = true }
[features]
-default = [ "include_simple" ]
-include_simp... | 2 | 24 | 6 |
1bb54cb0c4ce55893ef19960df2784780ca0a648 | Armin Widegreen | 2020-12-28T00:05:13 | Adds SHA512 crypt password hash (#11)
Adds supports for SHA512 password hashes as specified in
https://www.akkadia.org/drepper/SHA-crypt.txt version 0.6 | diff --git a/Cargo.lock b/Cargo.lock
index fe819ff..aa1f87c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -76,6 +76,12 @@ version = "0.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "ce90df4c658c62f12d78f7508cf92f9173e5184a539c10bfe54a3107b3ffd0f2"
+[[package]]
+name = "constant_time... | 9 | 654 | 0 |
5bfbd4aa93aaed3956a525b6b8c4e1e4bdabc28b | Tony Arcieri | 2020-12-10T12:45:49 | pbkdf2: fix rustfmt (#68) | diff --git a/pbkdf2/src/errors.rs b/pbkdf2/src/errors.rs
index 488aa9c..d682ad2 100644
--- a/pbkdf2/src/errors.rs
+++ b/pbkdf2/src/errors.rs
@@ -1,4 +1,4 @@
-#![cfg(feature="include_simple")]
+#![cfg(feature = "include_simple")]
use core::fmt;
/// `pbkdf2_check` error | 1 | 1 | 1 |
721242f53b45a56eb6dedbbd074000a542472139 | Tony Arcieri | 2020-10-18T16:55:09 | scrypt: use `salsa20` crate to implement Salsa20/8 (#60)
Closes #29.
Using the `salsa20` crate allows us to focus on a single place for
things like SIMD optimizations (#16). | diff --git a/Cargo.lock b/Cargo.lock
index 16e233f..82345bd 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -310,6 +310,15 @@ dependencies = [
"num_cpus",
]
+[[package]]
+name = "salsa20"
+version = "0.7.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "803bc218af7bc955c5ae0e0cf3a7af433... | 3 | 51 | 100 |
7e0b11681b849c10711e9b0ac17d4dad88697d16 | Tony Arcieri | 2020-10-18T15:38:33 | Bump `hmac` and `crypto-mac` dependencies to v0.10 (#58) | diff --git a/Cargo.lock b/Cargo.lock
index d45408b..16e233f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -14,11 +14,11 @@ checksum = "904dfeac50f3cdaba28fc6f57fdcddb75f49ed61346676a78c4ffe55877802fd"
[[package]]
name = "bcrypt-pbkdf"
-version = "0.3.0"
+version = "0.4.0-pre"
dependencies = [
"blowfish",
"crypto... | 7 | 37 | 46 |
c97f45b12bfcd0c31568d390186dbc3d82dc0614 | Artyom Pavlov | 2020-08-24T22:28:51 | update repository links (#51) | diff --git a/bcrypt-pbkdf/Cargo.toml b/bcrypt-pbkdf/Cargo.toml
index 7054324..57d6920 100644
--- a/bcrypt-pbkdf/Cargo.toml
+++ b/bcrypt-pbkdf/Cargo.toml
@@ -3,7 +3,7 @@ name = "bcrypt-pbkdf"
description = "bcrypt-pbkdf password-based key derivation function"
version = "0.3.0"
authors = ["RustCrypto Developers"]
-rep... | 3 | 3 | 3 |
f09f60d8199d3bf4c66ee21c116de7e60b707b33 | Chris Zehner | 2020-08-24T22:18:30 | docs: use ScryptParams::recommended() in usage example (#50) | diff --git a/scrypt/src/lib.rs b/scrypt/src/lib.rs
index 838a013..e0aa3bb 100644
--- a/scrypt/src/lib.rs
+++ b/scrypt/src/lib.rs
@@ -17,9 +17,8 @@
//! # fn main() {
//! use scrypt::{ScryptParams, scrypt_simple, scrypt_check};
//!
-//! // First setup the ScryptParams arguments with:
-//! // r = 8, p = 1, n = 32768 (l... | 1 | 2 | 3 |
233b2db5fb194995a5ca7bf3db540721493a514b | Tony Arcieri | 2020-08-18T18:27:59 | pbkdf2: bump `crypto-mac` dependency to v0.9 (#44) | diff --git a/Cargo.lock b/Cargo.lock
index f56ad35..544e2e7 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -17,7 +17,7 @@ name = "bcrypt-pbkdf"
version = "0.2.1"
dependencies = [
"blowfish",
- "crypto-mac",
+ "crypto-mac 0.8.0",
"pbkdf2 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",
"sha2",
"zer... | 3 | 20 | 10 |
d5612d5c79aa97ffa1ebe20112e467444bc3e1cf | Isaac Clayton | 2020-07-03T06:40:39 | Remove superflous main() in documentation (#40) | diff --git a/scrypt/src/lib.rs b/scrypt/src/lib.rs
index 062e295..6febec7 100644
--- a/scrypt/src/lib.rs
+++ b/scrypt/src/lib.rs
@@ -27,7 +27,7 @@
//! assert!(scrypt_check("Not so secure password", &hashed_password).is_ok());
//! # }
//! # #[cfg(not(feature="include_simple"))]
-//! fn main() {}
+//! # fn main() {}
... | 1 | 1 | 1 |
6729b7082231771ebcb0daa9561fecf3d236b8eb | Artyom Pavlov | 2020-06-10T18:23:26 | scrypt: enable alloc feature for base64 (#38) | diff --git a/scrypt/Cargo.toml b/scrypt/Cargo.toml
index 51b41a4..569ea35 100644
--- a/scrypt/Cargo.toml
+++ b/scrypt/Cargo.toml
@@ -15,7 +15,7 @@ hmac = "0.8"
pbkdf2 = { version = "0.4", default-features = false, path = "../pbkdf2" }
sha2 = { version = "0.9", default-features = false }
-base64 = { version = "0.12"... | 2 | 1 | 2 |
f9b43041f304db102784454fc102c70abf0d7299 | Artyom Pavlov | 2020-06-10T13:18:31 | PBKDF2 and scrypt code improvements (#33) | diff --git a/pbkdf2/Cargo.toml b/pbkdf2/Cargo.toml
index 1d4730f..9c74350 100644
--- a/pbkdf2/Cargo.toml
+++ b/pbkdf2/Cargo.toml
@@ -11,15 +11,15 @@ categories = ["cryptography", "no-std"]
edition = "2018"
[dependencies]
-crypto-mac = "0.8.0-pre"
-byteorder = { version = "1", default-features = false }
+crypto-mac ... | 9 | 158 | 203 |
c175e51c0807abacf19c940e0a509aa6562e9d86 | Tony Arcieri | 2020-06-10T05:06:32 | scrypt: `std` feature (#32)
Makes `std` optional, relying on `alloc` for heap-allocated data
structures and `core` for everything else. | diff --git a/scrypt/Cargo.toml b/scrypt/Cargo.toml
index 02a498e..4683a6f 100644
--- a/scrypt/Cargo.toml
+++ b/scrypt/Cargo.toml
@@ -22,7 +22,8 @@ subtle = { version = "2", default-features = false , optional = true }
[features]
default = ["include_simple"]
-include_simple = ["rand", "base64", "subtle"]
+include_si... | 5 | 19 | 27 |
8511786aacc3f8c144fbb5341ac7905568a40953 | Tony Arcieri | 2020-06-10T04:32:12 | pbkdf2: bump `rand` dependency to v0.7 | diff --git a/pbkdf2/Cargo.toml b/pbkdf2/Cargo.toml
index ddce8c0..1d4730f 100644
--- a/pbkdf2/Cargo.toml
+++ b/pbkdf2/Cargo.toml
@@ -16,7 +16,7 @@ byteorder = { version = "1", default-features = false }
rayon = { version = "1", optional = true }
base64 = { version = "0.9", optional = true }
-rand = { version = "0.5... | 2 | 4 | 5 |
8c5faec8e2b45556cd05e692f3030a92bb884216 | Tony Arcieri | 2020-06-10T04:12:26 | Upgrade to hmac v0.8; sha2 v0.9 crate releases | diff --git a/Cargo.toml b/Cargo.toml
index 65c21d4..02c0e2d 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -3,13 +3,3 @@ members = [
"pbkdf2",
"scrypt",
]
-
-[patch.crates-io]
-block-buffer = { git = "https://github.com/RustCrypto/utils" }
-crypto-mac = { git = "https://github.com/RustCrypto/traits" }
-digest =... | 3 | 7 | 18 |
02f630880ea412617730941e41d1f6eacd3944a5 | Liam Rosenfeld | 2020-06-04T10:38:58 | Easy creation of recommended ScryptParam (#28)
makes it easier to use by moving it to its own function | diff --git a/scrypt/src/params.rs b/scrypt/src/params.rs
index e6cacf1..87e0114 100644
--- a/scrypt/src/params.rs
+++ b/scrypt/src/params.rs
@@ -22,10 +22,6 @@ impl ScryptParams {
/// - `log_n` must be less than `64`
/// - `r` must be greater than `0` and less than or equal to `4294967295`
/// - `p` must... | 1 | 12 | 4 |
3a34a05ab9b4fd62208dfdb34a1f98ae61382701 | Tony Arcieri | 2020-06-02T23:44:00 | Rename `*result*` to `finalize`
Implements the API changes from:
https://github.com/RustCrypto/traits/pull/161
The `hmac` crate now uses `update` and `finalize` nomenclature
ala the Initialize-Update-Finalize (IUF) interface naming scheme. | diff --git a/Cargo.toml b/Cargo.toml
index 925cbc9..65c21d4 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -9,5 +9,7 @@ block-buffer = { git = "https://github.com/RustCrypto/utils" }
crypto-mac = { git = "https://github.com/RustCrypto/traits" }
digest = { git = "https://github.com/RustCrypto/traits" }
hmac = { git = "h... | 3 | 10 | 14 |
a2e3bfee651833fc453ecf960d0e1ff8e5826036 | Tony Arcieri | 2020-06-02T01:46:36 | scrypt: upgrade to -pre crates | diff --git a/pbkdf2/Cargo.toml b/pbkdf2/Cargo.toml
index 6b2c2af..8ea7e16 100644
--- a/pbkdf2/Cargo.toml
+++ b/pbkdf2/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "pbkdf2"
-version = "0.3.0"
+version = "0.4.0-pre"
authors = ["RustCrypto Developers"]
license = "MIT OR Apache-2.0"
description = "Generic implementatio... | 2 | 4 | 4 |
dc5173b24b7959733c0e6b993ed2a035e6e302f2 | Tony Arcieri | 2020-06-02T01:23:57 | pbkdf2: upgrade to -pre crates | diff --git a/Cargo.toml b/Cargo.toml
index 02c0e2d..925cbc9 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -3,3 +3,11 @@ members = [
"pbkdf2",
"scrypt",
]
+
+[patch.crates-io]
+block-buffer = { git = "https://github.com/RustCrypto/utils" }
+crypto-mac = { git = "https://github.com/RustCrypto/traits" }
+digest =... | 3 | 22 | 14 |
c20b2c409d9208af86e010010695c2d7e0aba8ea | newpavlov | 2019-04-05T12:26:05 | fix bench name | diff --git a/scrypt/benches/mod.rs b/scrypt/benches/mod.rs
index e5c8084..9dfbe2c 100644
--- a/scrypt/benches/mod.rs
+++ b/scrypt/benches/mod.rs
@@ -6,7 +6,7 @@ extern crate test;
use test::Bencher;
#[bench]
-pub fn pbkdf2_hmac_sha1_16384_20(bh: &mut Bencher) {
+pub fn scrypt_15_8_1(bh: &mut Bencher) {
let pas... | 1 | 1 | 1 |
e6d1f87ba519ce0ca9a6776abf79d4ada627c2d0 | newpavlov | 2019-04-05T12:18:48 | add scrypt benchmark, loop unrolling | diff --git a/scrypt/benches/mod.rs b/scrypt/benches/mod.rs
new file mode 100644
index 0000000..e5c8084
--- /dev/null
+++ b/scrypt/benches/mod.rs
@@ -0,0 +1,18 @@
+#![no_std]
+#![feature(test)]
+extern crate scrypt;
+extern crate test;
+
+use test::Bencher;
+
+#[bench]
+pub fn pbkdf2_hmac_sha1_16384_20(bh: &mut Bencher)... | 2 | 30 | 4 |
ab769445414d5093716adce93fdfa5490405e521 | Henry de Valence | 2018-12-27T15:03:39 | Use subtle v2 (#13) | diff --git a/pbkdf2/Cargo.toml b/pbkdf2/Cargo.toml
index f553e1f..1ad76e5 100644
--- a/pbkdf2/Cargo.toml
+++ b/pbkdf2/Cargo.toml
@@ -18,7 +18,7 @@ base64 = { version = "0.9", optional = true }
rand = { version = "0.5", optional = true }
hmac = { version = "0.7", optional = true }
sha2 = { version = "0.8", optional =... | 2 | 2 | 2 |
c8c0a9ff30b9a0379381a5d6a2db2d985ca89515 | Артём Павлов [Artyom Pavlov] | 2018-10-08T21:22:11 | update scrpyt dependencies | diff --git a/scrypt/Cargo.toml b/scrypt/Cargo.toml
index 1a2e6ca..f12e7e6 100644
--- a/scrypt/Cargo.toml
+++ b/scrypt/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "scrypt"
-version = "0.1.2"
+version = "0.2.0"
authors = ["RustCrypto Developers"]
license = "MIT OR Apache-2.0"
description = "Scrypt password-based key... | 3 | 171 | 163 |
7b0c1c789c086bd3b926c565d60d94b573b4c7cb | Артём Павлов [Artyom Pavlov] | 2018-10-08T21:05:12 | update pbkdf2 dependencies | diff --git a/pbkdf2/Cargo.toml b/pbkdf2/Cargo.toml
index 2c4d6b1..f553e1f 100644
--- a/pbkdf2/Cargo.toml
+++ b/pbkdf2/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "pbkdf2"
-version = "0.2.3"
+version = "0.3.0"
authors = ["RustCrypto Developers"]
license = "MIT OR Apache-2.0"
description = "Generic implementation of... | 5 | 169 | 162 |
6bf375bfe826e33ba540edf580202c9c8e2589c4 | Артём Павлов [Artyom Pavlov] | 2018-08-30T23:21:48 | fix scrypt | diff --git a/scrypt/Cargo.toml b/scrypt/Cargo.toml
index fef3c8d..91471c7 100644
--- a/scrypt/Cargo.toml
+++ b/scrypt/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "scrypt"
-version = "0.1.1"
+version = "0.1.2"
authors = ["RustCrypto Developers"]
license = "MIT OR Apache-2.0"
description = "Scrypt password-based key... | 3 | 4 | 7 |
aa3a384ba12bd55641ed9edeb33c1929cd423685 | Артём Павлов [Artyom Pavlov] | 2018-08-30T22:54:08 | fix no_std test | diff --git a/scrypt/Cargo.toml b/scrypt/Cargo.toml
index c946490..fef3c8d 100644
--- a/scrypt/Cargo.toml
+++ b/scrypt/Cargo.toml
@@ -11,7 +11,7 @@ categories = ["cryptography", "no-std"]
[dependencies]
sha2 = "0.7"
-pbkdf2 = "0.2"
+pbkdf2 = { version = "0.2", default-features = false }
hmac = "0.6"
byte-tools = "... | 1 | 1 | 1 |
6d1e13fb34e4eaa1612cac5651544fbde4737e5c | Артём Павлов [Artyom Pavlov] | 2018-08-30T22:34:28 | fix doctest for Rust 1.22 | diff --git a/scrypt/src/lib.rs b/scrypt/src/lib.rs
index c52ca2a..ab2f3e5 100644
--- a/scrypt/src/lib.rs
+++ b/scrypt/src/lib.rs
@@ -8,29 +8,31 @@
//! scrypt = { version = "0.1", default-features = false }
//! ```
//!
-//! # Acknowledgments
-//! This implementation is heavily based on `rust-crypto`'s `scrypt` module... | 1 | 11 | 9 |
5867a89b1fe762c6d155a37fbcde922362e98734 | Артём Павлов [Artyom Pavlov] | 2018-08-30T22:27:57 | pbkdf2-v0.2.3 | diff --git a/pbkdf2/Cargo.toml b/pbkdf2/Cargo.toml
index c02b713..2c4d6b1 100644
--- a/pbkdf2/Cargo.toml
+++ b/pbkdf2/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "pbkdf2"
-version = "0.2.2"
+version = "0.2.3"
authors = ["RustCrypto Developers"]
license = "MIT OR Apache-2.0"
description = "Generic implementation of... | 1 | 1 | 1 |
4cf4b9874a4839e2b00c1066f295edeade159a20 | Артём Павлов [Artyom Pavlov] | 2018-08-30T22:18:10 | fix MSRV | diff --git a/pbkdf2/src/errors.rs b/pbkdf2/src/errors.rs
index c2833a2..0c8ccf8 100644
--- a/pbkdf2/src/errors.rs
+++ b/pbkdf2/src/errors.rs
@@ -11,7 +11,7 @@ pub enum CheckError {
impl fmt::Display for CheckError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
- f.write_str(match self {
+ ... | 2 | 4 | 4 |
18cda3f5f1d7429f7923f4000e29e06a90e2285f | Louis | 2018-08-30T17:02:53 | Update byte-tools to 0.3 and add byteorder crate (#10) | diff --git a/pbkdf2/Cargo.toml b/pbkdf2/Cargo.toml
index a73bb9a..8eb9fcb 100644
--- a/pbkdf2/Cargo.toml
+++ b/pbkdf2/Cargo.toml
@@ -12,7 +12,7 @@ categories = ["cryptography", "no-std"]
[dependencies]
crypto-mac = "0.6"
generic-array = "0.9"
-byte-tools = "0.2"
+byteorder = "1.2"
rayon = { version = "1", optiona... | 5 | 19 | 19 |
4160564e97f8d19c21397fef16628c35976abe27 | Артём Павлов [Artyom Pavlov] | 2018-08-15T21:32:25 | pbkdf2 v0.2.2 | diff --git a/pbkdf2/Cargo.toml b/pbkdf2/Cargo.toml
index f1c2848..a73bb9a 100644
--- a/pbkdf2/Cargo.toml
+++ b/pbkdf2/Cargo.toml
@@ -1,12 +1,13 @@
[package]
name = "pbkdf2"
-version = "0.2.1"
+version = "0.2.2"
authors = ["RustCrypto Developers"]
license = "MIT OR Apache-2.0"
description = "Generic implementation ... | 2 | 5 | 16 |
597d8adc553939ad90740ea0aee29b4179d087e5 | brycx | 2018-08-15T21:17:26 | Bug in pbkdf2 xor function (#8) | diff --git a/pbkdf2/src/lib.rs b/pbkdf2/src/lib.rs
index a5134cc..20383ff 100644
--- a/pbkdf2/src/lib.rs
+++ b/pbkdf2/src/lib.rs
@@ -54,10 +54,9 @@ pub use errors::CheckError;
#[inline(always)]
fn xor(res: &mut [u8], salt: &[u8]) {
- assert!(salt.len() >= salt.len(), "length mismatch in xor");
- for i in 0..r... | 1 | 18 | 4 |
6199d8f0f90973415bf746488b889f3f88c0add9 | newpavlov | 2018-08-06T14:31:08 | improve docs | diff --git a/pbkdf2/Cargo.toml b/pbkdf2/Cargo.toml
index 8b030a6..f1c2848 100644
--- a/pbkdf2/Cargo.toml
+++ b/pbkdf2/Cargo.toml
@@ -1,8 +1,8 @@
[package]
name = "pbkdf2"
-version = "0.2.0"
+version = "0.2.1"
authors = ["RustCrypto Developers"]
-license = "MIT/Apache-2.0"
+license = "MIT OR Apache-2.0"
description ... | 4 | 52 | 40 |
739cf91b5fc69f9ea7e58236ba3d4441bc46bef2 | equal-l2 | 2018-08-06T14:03:05 | Port utility functions for pbkdf2 from rust-crypto (#7)
* Port utility functions for pbkdf2 from rust-crypto
* Match API of pbkdf2_check with scrypt_check | diff --git a/pbkdf2/Cargo.toml b/pbkdf2/Cargo.toml
index d540fc6..8b030a6 100644
--- a/pbkdf2/Cargo.toml
+++ b/pbkdf2/Cargo.toml
@@ -15,10 +15,18 @@ byte-tools = "0.2"
rayon = { version = "1", optional = true }
+constant_time_eq = { version = "0.1", optional = true }
+base64 = { version = "0.9", optional = true }
... | 4 | 217 | 1 |
a4f82f8c4493ba9dfc53dcdf6fb56de9e95b75a6 | Артём Павлов [Artyom Pavlov] | 2018-03-30T19:39:47 | pbkdf2 v0.2.0 | diff --git a/pbkdf2/Cargo.toml b/pbkdf2/Cargo.toml
index b513b8d..d540fc6 100644
--- a/pbkdf2/Cargo.toml
+++ b/pbkdf2/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "pbkdf2"
-version = "0.1.0"
+version = "0.2.0"
authors = ["RustCrypto Developers"]
license = "MIT/Apache-2.0"
description = "Generic implementation of PB... | 1 | 1 | 1 |
67f4230fd5059d2be0e2016926d298e4f670e50e | Jayson Reis | 2018-03-30T19:38:37 | Update dependencies (#2) | diff --git a/pbkdf2/Cargo.toml b/pbkdf2/Cargo.toml
index a9c0bfb..b513b8d 100644
--- a/pbkdf2/Cargo.toml
+++ b/pbkdf2/Cargo.toml
@@ -9,16 +9,16 @@ repository = "https://github.com/RustCrypto/password-hashing"
keywords = ["crypto", "password", "hashing"]
[dependencies]
-crypto-mac = "0.4"
-generic-array = "0.8"
+cry... | 3 | 16 | 16 |
46f52bf895ba5a994d51c212597f2214d96db1c5 | Артём Павлов [Artyom Pavlov] | 2017-08-17T22:22:34 | Clippy updates | diff --git a/pbkdf2/benches/lib.rs b/pbkdf2/benches/lib.rs
index cc5ad95..bc7cd00 100644
--- a/pbkdf2/benches/lib.rs
+++ b/pbkdf2/benches/lib.rs
@@ -17,7 +17,7 @@ pub fn pbkdf2_hmac_sha1_16384_20(bh: &mut Bencher) {
let salt = b"salty salt";
let mut buf = [0u8; 20];
bh.iter(|| {
- pbkdf2::<Hmac<sh... | 2 | 5 | 4 |
03de98a899583362a09d434aff022e5696f982ab | GnomedDev | 2024-09-01T21:58:36 | Remove some useless stuff from Cargo.toml | diff --git a/Cargo.toml b/Cargo.toml
index ef081ea..0a418ea 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -13,12 +13,6 @@ categories = ["development-tools::procedural-macro-helpers"]
license = "MIT OR Apache-2.0"
edition = "2021"
-[badges]
-maintenance = { status = "passively-maintained" }
-
-[package.metadata.docs.r... | 2 | 0 | 9 |
208ad919088cff500dd129bede5b3ddcfe23a7d5 | GnomedDev | 2024-09-01T19:13:48 | Fix clippy::pedantic warnings | diff --git a/Cargo.toml b/Cargo.toml
index ee7e400..6cae7e6 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -41,3 +41,7 @@ nightly = []
[lints.rust]
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(run_ui_tests)'] }
+
+[lints.clippy]
+pedantic = { level = "warn", priority = -1 }
+module_name_repetitions = { level ... | 10 | 44 | 18 |
27142aae3ed863a05b95d7beb7fbe38bfd1b0a35 | GnomedDev | 2024-09-01T17:05:09 | Add my authorship information | diff --git a/Cargo.toml b/Cargo.toml
index 877e93e..6a64624 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,9 +1,12 @@
[package]
name = "proc-macro-error"
+authors = [
+ "CreepySkeleton <creepy-skeleton@yandex.ru>",
+ "GnomedDev <david2005thomas@gmail.com>",
+]
version = "1.0.4"
-authors = ["CreepySkeleton <cre... | 3 | 14 | 5 |
bc19f577797a748d9d148ae2a562323c94dad3f3 | GnomedDev | 2024-09-01T15:55:32 | Bump syn to 2 | diff --git a/Cargo.toml b/Cargo.toml
index 5ad358d..bb3d44e 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -3,7 +3,6 @@ name = "proc-macro-error"
version = "1.0.4"
authors = ["CreepySkeleton <creepy-skeleton@yandex.ru>"]
description = "Almost drop-in replacement to panics in proc-macros"
-
repository = "https://gitlab... | 4 | 7 | 8 |
dd8b225f9bafa4bc7af3252f59852a896953ec71 | CreepySkeleton | 2020-07-31T17:18:14 | cargo fmt | diff --git a/src/imp/delegate.rs b/src/imp/delegate.rs
index 9ba91a5..07def2b 100644
--- a/src/imp/delegate.rs
+++ b/src/imp/delegate.rs
@@ -45,8 +45,12 @@ pub(crate) fn emit_diagnostic(diag: Diagnostic) {
for (kind, msg, span) in suggestions {
res = match (kind, span) {
- (SuggestionKind::No... | 3 | 26 | 8 |
58db1db6e150a87eb3926db3c85bdc6e0deed858 | CreepySkeleton | 2020-07-31T16:58:31 | Make it works on 1.31 | diff --git a/proc-macro-error-attr/src/parse.rs b/proc-macro-error-attr/src/parse.rs
index e60dc51..6f4663f 100644
--- a/proc-macro-error-attr/src/parse.rs
+++ b/proc-macro-error-attr/src/parse.rs
@@ -28,12 +28,12 @@ fn parse_next_attr(
input: &mut Peekable<impl Iterator<Item = TokenTree>>,
) -> Result<Option<Att... | 2 | 4 | 4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.