From dcd0b6e13242d012c68ce5e1a5553933a219491c Mon Sep 17 00:00:00 2001 From: Shun Sakai Date: Wed, 3 Jul 2024 02:36:28 +0900 Subject: [PATCH] Change to use `Params::default` --- crates/scryptenc/src/encrypt.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/scryptenc/src/encrypt.rs b/crates/scryptenc/src/encrypt.rs index a9694e6..5f85423 100644 --- a/crates/scryptenc/src/encrypt.rs +++ b/crates/scryptenc/src/encrypt.rs @@ -25,7 +25,7 @@ impl<'m> Encryptor<'m> { /// Creates a new `Encryptor`. /// /// This uses the [recommended scrypt parameters] created by - /// [`Params::recommended`] which are sufficient for most use-cases. + /// [`Params::default`] which are sufficient for most use-cases. /// /// # Examples /// @@ -40,7 +40,7 @@ impl<'m> Encryptor<'m> { /// /// [recommended scrypt parameters]: https://cheatsheetseries.owasp.org/cheatsheets/Password_Storage_Cheat_Sheet.html pub fn new(plaintext: &'m impl AsRef<[u8]>, passphrase: impl AsRef<[u8]>) -> Self { - Self::with_params(plaintext, passphrase, Params::recommended()) + Self::with_params(plaintext, passphrase, Params::default()) } #[allow(clippy::missing_panics_doc)] @@ -177,8 +177,8 @@ impl<'m> Encryptor<'m> { /// Encrypts `plaintext` and into a newly allocated [`Vec`](alloc::vec::Vec). /// -/// This uses the [recommended scrypt parameters] created by -/// [`Params::recommended`] which are sufficient for most use-cases. +/// This uses the [recommended scrypt parameters] created by [`Params::default`] +/// which are sufficient for most use-cases. /// /// This is a convenience function for using [`Encryptor::new`] and /// [`Encryptor::encrypt_to_vec`].