Struct yobicrypto::balloon::BalloonParams [] [src]

pub struct BalloonParams {
    pub s_cost: u32,
    pub t_cost: u32,
    pub delta: u32,
}

Params used in Balloon hashing.

Fields

The s_cost parameter used in Balloon hashing.

The t_cost parameter used in Balloon hashing.

The delta parameter used in Balloon hashing.

Methods

impl BalloonParams
[src]

[src]

Creates a new BalloonParams.

[src]

Creates a new BalloonParams given a target memory.

[src]

Returns the memory that would be spent in the hashing operation.

Trait Implementations

impl Copy for BalloonParams
[src]

impl Clone for BalloonParams
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for BalloonParams
[src]

impl PartialEq for BalloonParams
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Debug for BalloonParams
[src]

[src]

Formats the value using the given formatter. Read more

impl Default for BalloonParams
[src]

[src]

Returns the "default value" for a type. Read more

impl Validate for BalloonParams
[src]

[src]

Validate the object.

impl BinarySerialize for BalloonParams
[src]

[src]

Serialize to a binary.

[src]

Deserialize from a binary.

impl HexSerialize for BalloonParams
[src]

[src]

Serialize to a hex string.

[src]

Deserialize from a hex string.

impl Display for BalloonParams
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for BalloonParams

impl Sync for BalloonParams