aes

package
v0.0.0-...-58a26c8 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const BlockSize = 16

Variables

This section is empty.

Functions

func AesCbcDecrypt

func AesCbcDecrypt(buf, key, iv []byte) []byte

Decrypts an AES CBC encrypted buffer. Returns the padded buffer.

func AesCbcEncrypt

func AesCbcEncrypt(buf, key, iv []byte) []byte

Encrypts a padded buffer using AES CBC. Typically, pkcs7 will be used to pad the buffer.

func NewAes

func NewAes(key []byte) cipher.Block

Types

type AesCtr

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

func NewAesCtr

func NewAesCtr(key []byte, nonce uint64) *AesCtr

func (*AesCtr) Process

func (aesCtr *AesCtr) Process(input []byte) []byte

Jump to

Keyboard shortcuts

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