aes

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2025 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AES32 = 32
	AES24 = 24
	AES16 = 16
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AES

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

func NewAES

func NewAES(size int) (*AES, error)

func (*AES) Decrypt

func (a *AES) Decrypt(encrypted []byte) ([]byte, error)

func (*AES) Encrypt

func (a *AES) Encrypt(origin []byte) ([]byte, error)

func (*AES) FromBinary

func (a *AES) FromBinary(raw []byte) (localCipher.Cipher, error)

func (*AES) Kind

func (a *AES) Kind() string

func (*AES) ToBinary

func (a *AES) ToBinary() ([]byte, error)

Jump to

Keyboard shortcuts

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