aes

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AES

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

func NewCBC

func NewCBC(key []byte, iv []byte, padding int) (v *AES, err error)

func NewEBC

func NewEBC(key []byte, padding int) (v *AES, err error)

func (*AES) Decrypt

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

func (*AES) Encrypt

func (a *AES) Encrypt(plain []byte) (encrypted []byte, err error)

Jump to

Keyboard shortcuts

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