kdf

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package kdf incorporates three KDFs (https://en.wikipedia.org/wiki/Key_derivation_function) used by Crypt4GH

Index

Constants

This section is empty.

Variables

View Source
var KDFS = map[string]KDF{
	"scrypt":             sCrypt{},
	"bcrypt":             bCrypt{},
	"pbkdf2_hmac_sha256": pbkdf2sha512{},
}

KDFS is a map of KDF names to implementations.

Functions

This section is empty.

Types

type KDF

type KDF interface {
	Derive(rounds int, password []byte, salt []byte) (derivedKey []byte, err error)
}

KDF interface holding "Derive" method.

Jump to

Keyboard shortcuts

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