go/src/crypto/aes/aes_test.go

// Test that powx is initialized correctly.
// (Can adapt this code to generate it too.)
func TestPowx(t *testing.T) {}

// Multiply b and c as GF(2) polynomials modulo poly
func mul(b, c uint32) uint32 {}

// Test all mul inputs against bit-by-bit n² algorithm.
func TestMul(t *testing.T) {}

// Check that S-boxes are inverses of each other.
// They have more structure that we could test,
// but if this sanity check passes, we'll assume
// the cut and paste from the FIPS PDF worked.
func TestSboxes(t *testing.T) {}

// Test that encryption tables are correct.
// (Can adapt this code to generate them too.)
func TestTe(t *testing.T) {}

// Test that decryption tables are correct.
// (Can adapt this code to generate them too.)
func TestTd(t *testing.T) {}

type KeyTest

var keyTests

// Test key expansion against FIPS 197 examples.
func TestExpandKey(t *testing.T) {}

type CryptTest

var encryptTests

// Test Cipher Encrypt method against FIPS 197 examples.
func TestCipherEncrypt(t *testing.T) {}

// Test Cipher Decrypt against FIPS 197 examples.
func TestCipherDecrypt(t *testing.T) {}

// Test AES against the general cipher.Block interface tester
func TestAESBlock(t *testing.T) {}

func BenchmarkEncrypt(b *testing.B) {}

func benchmarkEncrypt(b *testing.B, tt CryptTest) {}

func BenchmarkDecrypt(b *testing.B) {}

func benchmarkDecrypt(b *testing.B, tt CryptTest) {}

func BenchmarkExpand(b *testing.B) {}

func benchmarkExpand(b *testing.B, tt CryptTest) {}

func BenchmarkCreateCipher(b *testing.B) {}

func benchmarkCreateCipher(b *testing.B, tt CryptTest) {}