pbkdf2

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2018 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PBKDF2

type PBKDF2 struct {
	Hash       string `json:"hash,omitempty" toml:"hash"`
	Iterations int    `json:"iterations,omitempty" toml:"iterations"`
	SaltLen    int    `json:"saltlen,omitempty" toml:"saltlen"`
}

func New

func New() *PBKDF2

func (*PBKDF2) DeriveKey

func (p *PBKDF2) DeriveKey(password []byte, keyLen int) ([]byte, []byte, error)

func (*PBKDF2) DeriveKeyWithSalt

func (p *PBKDF2) DeriveKeyWithSalt(password []byte, salt []byte, keyLen int) ([]byte, error)

func (*PBKDF2) HashFunc

func (p *PBKDF2) HashFunc() func() hash.Hash

Jump to

Keyboard shortcuts

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