Struct libpasta::primitives::Bcrypt [] [src]

pub struct Bcrypt { /* fields omitted */ }

bcrypt parameter set.

Holds the cost value. This implementation is backed by rust-crypto.

Methods

impl Bcrypt
[src]

Construct a new Bcrypt parameter set.

Get the default Bcrypt parameter set.

Trait Implementations

impl Clone for Bcrypt
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PrimitiveImpl for Bcrypt
[src]

Compute the output of the primitive with input password and salt.

Output the parameters of the primitive as a list of tuples.

Return algorithm type as a MCF-compatible hash identifier.

Verify the password and salt against the hash. Read more

impl Debug for Bcrypt
[src]

Formats the value using the given formatter.