pbkdf2

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnsupportedMethod = errors.New("pbkdf2: unsupported method")
)

Functions

func WithIterations

func WithIterations(iterations int) key.Option

func WithSaltSize

func WithSaltSize(saltSize int) key.Option

Types

type KeyGeneratorImpl

type KeyGeneratorImpl struct{}

func (*KeyGeneratorImpl) KeyGen

func (k *KeyGeneratorImpl) KeyGen(alg types.Algorithm, opts ...key.Option) (key.Key, error)

type KeyImpl

type KeyImpl struct {
	// contains filtered or unexported fields
}

func (*KeyImpl) Algorithm

func (k *KeyImpl) Algorithm() types.Algorithm

func (*KeyImpl) Decrypt

func (k *KeyImpl) Decrypt([]byte) ([]byte, error)

func (*KeyImpl) Encrypt

func (k *KeyImpl) Encrypt([]byte) ([]byte, error)

func (*KeyImpl) Export

func (k *KeyImpl) Export() ([]byte, error)

func (*KeyImpl) PublicKey

func (k *KeyImpl) PublicKey() (key.Key, error)

func (*KeyImpl) SKI

func (k *KeyImpl) SKI() []byte

func (*KeyImpl) Sign

func (k *KeyImpl) Sign(msg []byte) ([]byte, error)

func (*KeyImpl) Verify

func (k *KeyImpl) Verify(msg, signature []byte) (bool, error)

Jump to

Keyboard shortcuts

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