Skip to content

Commit

Permalink
Refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
lbeder committed Feb 22, 2019
1 parent c9b6cf2 commit 39ea32b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scrypt_kdf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ pub struct ScryptKDF<'a> {
}

impl<'a> ScryptKDF<'a> {
pub fn new(opts: &ScryptKDFOptions) -> ScryptKDF {
pub fn new(opts: &'a ScryptKDFOptions) -> Self {
ScryptKDF { opts }
}

Expand All @@ -71,7 +71,7 @@ impl<'a> ScryptKDF<'a> {

pub fn derive_test_vectors() -> Vec<Vec<u8>> {
let mut results: Vec<Vec<u8>> = vec![];
for test_vector in ScryptKDF::test_vectors() {
for test_vector in Self::test_vectors() {
let kdf = Self::new(&test_vector.opts);
results.push(kdf.derive_key("", &test_vector.secret));
}
Expand Down

0 comments on commit 39ea32b

Please sign in to comment.