aes

package
v1.0.90 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidKeyLength  = errors.New("invalid key length (must be 16, 24 or 32 bytes)")
	ErrEmptyPlaintext    = errors.New("plaintext cannot be empty")
	ErrInvalidCiphertext = errors.New("invalid ciphertext")
)

Functions

func DecryptECB

func DecryptECB(cipherTextString string, key string) (string, error)

func EncryptECB

func EncryptECB(plainText string, key string) (string, error)

func Pad

func Pad(data []byte, blockSize int) []byte

func Unpad

func Unpad(data []byte) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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