go/src/crypto/des/des_test.go

type CryptTest

var encryptDESTests

var weakKeyTests

var semiWeakKeyTests

var encryptTripleDESTests

var tableA1Key

var tableA1Tests

var tableA2Plaintext

var tableA2Tests

var tableA3Plaintext

var tableA3Tests

var tableA4Tests

func newCipher(key []byte) cipher.Block {}

// Use the known weak keys to test DES implementation
func TestWeakKeys(t *testing.T) {}

// Use the known semi-weak key pairs to test DES implementation
func TestSemiWeakKeyPairs(t *testing.T) {}

func TestDESEncryptBlock(t *testing.T) {}

func TestDESDecryptBlock(t *testing.T) {}

func TestEncryptTripleDES(t *testing.T) {}

func TestDecryptTripleDES(t *testing.T) {}

// Defined in Pub 800-20
func TestVariablePlaintextKnownAnswer(t *testing.T) {}

// Defined in Pub 800-20
func TestVariableCiphertextKnownAnswer(t *testing.T) {}

// Defined in Pub 800-20
// Encrypting the Table A.1 ciphertext with the
// 0x01... key produces the original plaintext
func TestInversePermutationKnownAnswer(t *testing.T) {}

// Defined in Pub 800-20
// Decrypting the Table A.1 plaintext with the
// 0x01... key produces the corresponding ciphertext
func TestInitialPermutationKnownAnswer(t *testing.T) {}

// Defined in Pub 800-20
func TestVariableKeyKnownAnswerEncrypt(t *testing.T) {}

// Defined in Pub 800-20
func TestVariableKeyKnownAnswerDecrypt(t *testing.T) {}

// Defined in Pub 800-20
func TestPermutationOperationKnownAnswerEncrypt(t *testing.T) {}

// Defined in Pub 800-20
func TestPermutationOperationKnownAnswerDecrypt(t *testing.T) {}

// Defined in Pub 800-20
func TestSubstitutionTableKnownAnswerEncrypt(t *testing.T) {}

// Defined in Pub 800-20
func TestSubstitutionTableKnownAnswerDecrypt(t *testing.T) {}

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

func BenchmarkEncrypt(b *testing.B) {}

func BenchmarkDecrypt(b *testing.B) {}

func BenchmarkTDESEncrypt(b *testing.B) {}

func BenchmarkTDESDecrypt(b *testing.B) {}