Struct libpasta::primitives::Hmac [] [src]

pub struct Hmac { /* fields omitted */ }

Password storage strengthening using HMAC.

This struct holds the parameters used. Represents the ring implementation.

Methods

impl Hmac
[src]

Construct a new Hmac instance with a specified key

Gets a default HMAC instance, generating a fresh new key.

Trait Implementations

impl PrimitiveImpl for Hmac
[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 Hmac
[src]

Formats the value using the given formatter.