summaryrefslogtreecommitdiffhomepage
path: root/tests/test_transport.py
diff options
context:
space:
mode:
authorMatthias Witte <m.witte@telekom.de>2014-07-16 11:17:40 +0200
committerMatthias Witte <m.witte@telekom.de>2014-07-16 11:17:40 +0200
commit47da1935dc84784bfee2e493474232bf2e0d8d37 (patch)
treee16f1c577885446dd02470294905cb3ed8407455 /tests/test_transport.py
parent26b11d06ff2790cfa55c9557f10a2b48a3fc55b7 (diff)
Include sha2 changes in tests
- let _compute_key default default to sha1 if local_mac is not set instead of setting local_mac explicitly in the unit test - add tests for KexGexSHA256
Diffstat (limited to 'tests/test_transport.py')
-rw-r--r--tests/test_transport.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/test_transport.py b/tests/test_transport.py
index 3e794c12..0d66c0dc 100644
--- a/tests/test_transport.py
+++ b/tests/test_transport.py
@@ -161,7 +161,6 @@ class TransportTest(ParamikoTest):
self.tc.K = 123281095979686581523377256114209720774539068973101330872763622971399429481072519713536292772709507296759612401802191955568143056534122385270077606457721553469730659233569339356140085284052436697480759510519672848743794433460113118986816826624865291116513647975790797391795651716378444844877749505443714557929
self.tc.H = b'\x0C\x83\x07\xCD\xE6\x85\x6F\xF3\x0B\xA9\x36\x84\xEB\x0F\x04\xC2\x52\x0E\x9E\xD3'
self.tc.session_id = self.tc.H
- self.tc.local_mac = 'hmac-sha1'
key = self.tc._compute_key('C', 32)
self.assertEqual(b'207E66594CA87C44ECCBA3B3CD39FDDB378E6FDB0F97C54B2AA0CFBF900CD995',
hexlify(key).upper())