pbkdf2

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package pbkdf2 implements HMAC-based Key Derivation Functions, as defined in TTAK.KO-12.0334, NIST SP 800-132, RFC 2898(PKCS #5)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(dst, password, salt []byte, iteration, keyLen int, h func() hash.Hash) []byte

Generate a key from the password, salt and iteration count, then returns a []byte of length keylen.

func GenerateParallel

func GenerateParallel(dst, password, salt []byte, iteration, keyLen int, h func() hash.Hash, nThreads int) []byte

Generate a key from the password, salt and iteration count, then returns a []byte of length keylen.

nThreads: the number of goroutines to use. If nThreads <= 0, the number of CPUs is used.

Types

This section is empty.

Jump to

Keyboard shortcuts

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