aesMode

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CBC

type CBC struct{}

func (*CBC) Decrypt

func (cbc *CBC) Decrypt(cipherText, key, iv, nonce, additionalData []byte, paddingType int) ([]byte, error)

Decrypt 密码分组链接模式

func (*CBC) Encrypt

func (cbc *CBC) Encrypt(plainText, key, iv, nonce, additionalData []byte, paddingType int) ([]byte, error)

Encrypt 密码分组链接模式

type ECB

type ECB struct{}

func (*ECB) Decrypt

func (ecb *ECB) Decrypt(cipherText, key, iv, nonce, additionalData []byte, paddingType int) ([]byte, error)

Decrypt d

func (*ECB) Encrypt

func (ecb *ECB) Encrypt(plainText, key, iv, nonce, additionalData []byte, paddingType int) ([]byte, error)

Encrypt 电子密码本模式

type GCM

type GCM struct{}

func (*GCM) Decrypt

func (gcm *GCM) Decrypt(cipherText, key, iv, nonce, additionalData []byte, paddingType int) ([]byte, error)

func (*GCM) Encrypt

func (gcm *GCM) Encrypt(plainText, key, iv, nonce, additionalData []byte, paddingType int) ([]byte, error)

Jump to

Keyboard shortcuts

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