aes

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(key []byte, ciphertext []byte) ([]byte, error)

Decrypt ciphertext by AES-CBC.

func Encrypt

func Encrypt(key []byte, plaintext []byte) ([]byte, error)

Encrypt plaintext by AES-CBC.

func GenerateKey

func GenerateKey(n int) ([]byte, error)

GenerateKey generate n byte key.

Types

type Ciphertext

type Ciphertext struct {
	Blob []byte
	IV   []byte
}

Ciphertext.

Jump to

Keyboard shortcuts

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