Documentation
¶
Overview ¶
Package testing contains test cases useful for testing AES functions against reference implementations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromRfcHex ¶
FromRfcHex decodes a hex string that may contain spaces, as used in test vectors in RFCs. Panic if the input is illegal.
Types ¶
type CmacTestCase ¶
CmacTestCase represents a test case for AES-CMAC generated using the reference implementation from RFC 4493.
func (CmacTestCase) String ¶
func (c CmacTestCase) String() string
type DblTestCase ¶
DblTestCase represents a test case for dbl() generated using a reference implementation.
func (DblTestCase) String ¶
func (c DblTestCase) String() string
type EncryptTestCase ¶
EncryptTestCase represents a test case for Encrypt() generated using a reference implementation.
func EncryptCases ¶
func EncryptCases() []EncryptTestCase
EncryptCases returns test cases for Encrypt.
func (EncryptTestCase) String ¶
func (c EncryptTestCase) String() string
type GenerateSubkeyTestCase ¶
GenerateSubkeyTestCase represents a test case for generateSubkey generated using the reference implementation from RFC 4493.
func GenerateSubkeyCases ¶
func GenerateSubkeyCases() []GenerateSubkeyTestCase
GenerateSubkeyCases returns test cases for generateSubkey.
func (GenerateSubkeyTestCase) String ¶
func (c GenerateSubkeyTestCase) String() string
type S2vTestCase ¶
S2vTestCase represents a test case for S2V() generated using a reference implementation.
func (S2vTestCase) String ¶
func (c S2vTestCase) String() string