pub struct Scrypt {
pub salt: [u8; 32],
pub n: u32,
pub r: u32,
pub p: u32,
}Expand description
Parameters of scrypt
Fields§
§salt: [u8; 32]Salt used for scrypt.
n: u32CPU/memory cost parameter, must be power of 2 (e.g. 1024).
r: u32Block size parameter, which fine-tunes sequential memory read size and performance ( 8 is commonly used ).
p: u32Parallelization parameter ( 1 .. 2^32 -1 * hLen/MFlen ).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Scrypt
impl RefUnwindSafe for Scrypt
impl Send for Scrypt
impl Sync for Scrypt
impl Unpin for Scrypt
impl UnwindSafe for Scrypt
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more