Struct libpasta::primitives::Scrypt [] [src]

pub struct Scrypt { /* fields omitted */ }

Struct holding scrypt parameters.

This implementation is backed by ring_pwhash.

Methods

impl Scrypt
[src]

Gets the default scrypt instance.

Create a new scrypt instance.

Create a new Scrypt instance from an array of bytes, the compact format used by scrypt.

Trait Implementations

impl PrimitiveImpl for Scrypt
[src]

Compute the scrypt hash

Convert parameters into a vector of (key, value) tuples for serializing.

Return algorithm type as a MCF-compatible hash identifier.

Verify the password and salt against the hash. Read more

impl Debug for Scrypt
[src]

Formats the value using the given formatter.