yubihsm.utils

Various utility functions used throughout the library.

Functions

password_to_key(password)

Derive keys for establishing a YubiHSM session from a password.

Module Contents

yubihsm.utils.password_to_key(password)[source]

Derive keys for establishing a YubiHSM session from a password.

Returns:

A tuple containing the encryption key, and MAC key.

Parameters:

password (str)

Return type:

Tuple[bytes, bytes]