aes

package
v0.0.0-...-3dbe2b2 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptBlock

func DecryptBlock(ciphertext [16]byte, privateKey [16]byte) [16]byte

Decrypts a 16-byte ciphertext using a 16-byte private key

func DecryptCBC

func DecryptCBC(ciphertext, key, IV []byte) []byte

func DecryptECB

func DecryptECB(ciphertext, key []byte) []byte

func EncryptBlock

func EncryptBlock(state [16]byte, privateKey [16]byte) [16]byte

Encrypts a 16-byte block using a 16-byte private key

func EncryptCBC

func EncryptCBC(input, key, IV []byte) []byte

func EncryptECB

func EncryptECB(input, key []byte) []byte

func GFMul

func GFMul(a, b byte) byte

Multiplication in GF(2^8)

func KeySchedule

func KeySchedule(secretKey [16]byte) [11][16]byte

Expands a 16-byte secret key into 11 16-byte round keys

Types

This section is empty.

Jump to

Keyboard shortcuts

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