authkey

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 11, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthKey

type AuthKey []byte

AuthKey is a key to authenticate with the HSM

func NewFromPassword

func NewFromPassword(password string) AuthKey

NewFromPassword derives an AuthKey using pkdf2 as specified in the HSM documentation

func (AuthKey) GetEncKey

func (k AuthKey) GetEncKey() []byte

GetEncKey returns the EncryptionKey part of the AuthKey

func (AuthKey) GetMacKey

func (k AuthKey) GetMacKey() []byte

GetMacKey returns the MACKey part of the AuthKey

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL