-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Argon2i #113
Conversation
Codecov Report
@@ Coverage Diff @@
## master #113 +/- ##
=========================================
Coverage ? 97.66%
=========================================
Files ? 55
Lines ? 7715
Branches ? 0
=========================================
Hits ? 7535
Misses ? 180
Partials ? 0
Continue to review full report at Codecov.
|
…ill_block (equivalent name to ref impl)
…ary vectors for permutation_p once.
…ory block size (128)
…est vectors to hit these branches: n. 13 where we don't enter while loop and n. 14 where we do (with out lengths of 94 and 97, respectively)
…ved because they took too long to complete
…meout to two minutes from the default one.
…ng of each segment, and incremented by one for each n in offset..segment length. Because memory cost cannot be above u32::max_value(), segment_length will never reach a point were the 64-bit counter on Gidx could overflow.
…rt. Modify too resource-intensive test
@@ -750,7 +750,7 @@ macro_rules! construct_secret_key_variable_size { | |||
/// # } | |||
/// ``` | |||
pub struct $name { | |||
value: Vec<u8>, | |||
pub(crate) value: Vec<u8>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is set to pub(crate)
so we avoid allocation two different Vec<u8>
s in orion::kdf
which hold sensitive data.
…ted with the reference implementation
…on, which include secret value and associated data parameters
…meters with leading zeroes
Closes #109.
TODO:
hazardous
. How should the allocations for the memory blocks be handled?orion::pwhash
andorion::kdf
. What parameters should be used as default for each of those high-level APIs?Edit: I haven't been able to get a solution working, that doesn't require heap allocation. Thus, the Argon2i implementation will not be available with
no_std
.