aes

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrAESCBCDecrypt = errors.New("aes-cbc decrypt error")
View Source
var ErrAESGCMecrypt = errors.New("aes-gcm decrypt error")

Functions

This section is empty.

Types

type CBCInput

type CBCInput struct {
	Key []byte
	IV  []byte
}

func (*CBCInput) Decrypt

func (input *CBCInput) Decrypt(cipherText []byte) (decrypted []byte, err error)

type GCMInput

type GCMInput struct {
	Key []byte
	IV  []byte
	AAD []byte
	Tag []byte
}

func (*GCMInput) Decrypt

func (input *GCMInput) Decrypt(cipherText []byte) (decrypted []byte, err error)

Jump to

Keyboard shortcuts

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