openssl_aes_ctr_duplex

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AesCtrDecryptWithPbkdf2

func AesCtrDecryptWithPbkdf2(encryptedReader io.Reader, password []byte, pbkdf2Iter int, keyLen int, h func() hash.Hash) (io.Reader, error)

func AesCtrEncryptWithPbkdf2

func AesCtrEncryptWithPbkdf2(w io.Writer, password []byte, pbkdf2Iter int, keyLen int, h func() hash.Hash) (io.WriteCloser, error)

func Duplex

func Duplex(baseWriter io.WriteCloser, baseReader io.ReadCloser, passphrase []byte, pbkdf2Iter int, keyLen int, h func() hash.Hash) (*opensslAesCtrDuplex, error)

Types

type KeyAndIV

type KeyAndIV struct {
	Key []byte
	Iv  []byte
}

func DeriveKeyAndIvByPbkdf2

func DeriveKeyAndIvByPbkdf2(password []byte, salt []byte, iter int, keyLen int, h func() hash.Hash) KeyAndIV

Jump to

Keyboard shortcuts

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