aesbasic

package
v0.0.0-...-dd6cbbd Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const GF_FixedPoly = 0x11b

Variables

This section is empty.

Functions

func AES128Decrypt

func AES128Decrypt(ct []byte, k common.Aes128Key) ([]byte, error)

func AES128Encrypt

func AES128Encrypt(pt []byte, k common.Aes128Key) ([]byte, error)

func AddRoundKey

func AddRoundKey(s, key common.AesState) common.AesState

func ConvertHexStringsToBytesAndCheck

func ConvertHexStringsToBytesAndCheck(t *testing.T, s string) []byte

func GF_AddByte

func GF_AddByte(a, b byte) byte

GF in here stand for Galois Field. Refer more in Advanced Encryption Standard (AES)

func GF_AddWord

func GF_AddWord(a, b common.AesWord) common.AesWord

func GF_Multiply

func GF_Multiply(a, b byte) byte

func GF_MultiplyBy2

func GF_MultiplyBy2(a byte) byte

func HexStringToBytes

func HexStringToBytes(s string) ([]byte, error)

func InvMixColumns

func InvMixColumns(s common.AesState) common.AesState

func InvShiftRows

func InvShiftRows(s common.AesState) common.AesState

func InvSubBytes

func InvSubBytes(s common.AesState) common.AesState

func KeyExpansion

func KeyExpansion(key []byte) []byte

func KeyExpansionEic

func KeyExpansionEic(key []byte) []byte

func MixColumns

func MixColumns(s common.AesState) common.AesState

func ShiftRows

func ShiftRows(s common.AesState) common.AesState

func SubBytes

func SubBytes(s common.AesState) common.AesState

Types

This section is empty.

Jump to

Keyboard shortcuts

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