kdf

package
v0.0.78 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Scrypt name.
	Scrypt string = "scrypt"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DeriveOptionsBuilder

type DeriveOptionsBuilder func(*DeriveOpts)

DeriveOptionsBuilder used to build DeriveOpts

type DeriveOpts

type DeriveOpts interface {
	KDF() string
}

DeriveOpts options for deriving a storage key

type StorageKeyDeriver

type StorageKeyDeriver interface {
	DeriveKey(options DeriveOpts) ([]byte, error)
}

StorageKeyDeriver calculates a storage key based on the derivation method

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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