Struct yubihsm::credentials::Credentials[][src]

pub struct Credentials {
    pub auth_key_id: ObjectId,
    pub auth_key: AuthKey,
}

Credentials used to establish a session with the HSM

Fields

Key ID to authenticate with

Auth key to authenticate with

Methods

impl Credentials
[src]

Create new Credentials (auth key ID + AuthKey)

Create a set of credentials from the given auth key and password Uses the same password-based key derivation method as yubihsm-shell (PBKDF2 + static salt), which is not particularly strong, so use of a long, random password is recommended.

Trait Implementations

impl Default for Credentials
[src]

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

Auto Trait Implementations

impl Send for Credentials

impl Sync for Credentials