crypto

package
v0.0.0-...-d4aebe2 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateIV

func GenerateIV() ([]byte, error)

GenerateIV generates IV.

Types

type Cipher

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

func NewCipher

func NewCipher(key []byte, iv []byte) *Cipher

func (*Cipher) Decrypt

func (cipher *Cipher) Decrypt(cyphertext []byte) ([]byte, error)

func (*Cipher) Encrypt

func (cipher *Cipher) Encrypt(plaintext []byte) ([]byte, error)

Jump to

Keyboard shortcuts

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