pub struct BalloonStretchParams {
pub space_cost: u64,
pub time_cost: u64,
}Expand description
Parameters for the Balloon-SHA-256 stretching backend.
Balloon-SHA-256’s output length is fixed at 32 bytes (the SHA-256 digest
size), so no out_len field is exposed.
Fields§
§space_cost: u64Number of 32-byte blocks held in memory (>= 1).
time_cost: u64Number of mixing rounds (>= 1).
Trait Implementations§
Source§impl Clone for BalloonStretchParams
impl Clone for BalloonStretchParams
Source§fn clone(&self) -> BalloonStretchParams
fn clone(&self) -> BalloonStretchParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BalloonStretchParams
Auto Trait Implementations§
impl Freeze for BalloonStretchParams
impl RefUnwindSafe for BalloonStretchParams
impl Send for BalloonStretchParams
impl Sync for BalloonStretchParams
impl Unpin for BalloonStretchParams
impl UnsafeUnpin for BalloonStretchParams
impl UnwindSafe for BalloonStretchParams
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