From 1c1f1399d01a96d0eb614e8e0a899c4f755bb19b Mon Sep 17 00:00:00 2001 From: Han-Wen Nienhuys Date: Wed, 10 Jan 2018 16:51:44 +0100 Subject: [PATCH] ssh: remove redundant code The CBC cipher modes haven't been commented out for a while. Change-Id: I819d595ecfe2d314479a6850ee146577311e34da Reviewed-on: https://go-review.googlesource.com/87195 Run-TryBot: Han-Wen Nienhuys TryBot-Result: Gobot Gobot Reviewed-by: Brad Fitzpatrick --- ssh/cipher_test.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/ssh/cipher_test.go b/ssh/cipher_test.go index 6da5815..a52d6e4 100644 --- a/ssh/cipher_test.go +++ b/ssh/cipher_test.go @@ -7,7 +7,6 @@ package ssh import ( "bytes" "crypto" - "crypto/aes" "crypto/rand" "testing" ) @@ -72,9 +71,6 @@ func testPacketCipher(t *testing.T, cipher, mac string) { } func TestCBCOracleCounterMeasure(t *testing.T) { - cipherModes[aes128cbcID] = &streamCipherMode{16, aes.BlockSize, 0, nil} - defer delete(cipherModes, aes128cbcID) - kr := &kexResult{Hash: crypto.SHA1} algs := directionAlgorithms{ Cipher: aes128cbcID,