aes

package
v0.0.0-...-94cd62a Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AesDecryptCFB

func AesDecryptCFB(encrypted []byte, key []byte) (decrypted []byte)

func AesDecryptECB

func AesDecryptECB(encrypted []byte, key []byte) (decrypted []byte)

func AesEncryptCFB

func AesEncryptCFB(origData []byte, key []byte) (encrypted []byte)

=================== CFB ======================

func AesEncryptECB

func AesEncryptECB(origData []byte, key []byte) (encrypted []byte)

=================== ECB ======================

Types

type AesCipher256

type AesCipher256 struct {
	BufferPool *pkg.LimitedPool
	// contains filtered or unexported fields
}

func NewAesCipher256

func NewAesCipher256(key, iv []byte) *AesCipher256

func (*AesCipher256) Decrypt

func (aesCipher *AesCipher256) Decrypt(origData []byte) []byte

func (*AesCipher256) Encrypt

func (aesCipher *AesCipher256) Encrypt(origData []byte) []byte

=================== CBC ======================

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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