summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorjhall150 <jhall150@bloomberg.net>2016-03-31 10:15:47 -0400
committerjhall150 <jhall150@bloomberg.net>2017-02-08 13:21:04 -0500
commitc978a6bff03e2c2b620ff485c987ff5311dad97d (patch)
tree58c00190f6e7ec239e391ecba887e472138a9c15
parent7a9d633486991b11e4c212e6937ceea42c1e539f (diff)
Don't pass IV to pycrypto when using MODE_CTR
* Fixes #713
-rw-r--r--paramiko/transport.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/paramiko/transport.py b/paramiko/transport.py
index 120f9e84..1de6ff09 100644
--- a/paramiko/transport.py
+++ b/paramiko/transport.py
@@ -1662,7 +1662,7 @@ class Transport (threading.Thread, ClosingContextManager):
elif name.endswith("-ctr"):
# CTR modes, we need a counter
counter = Counter.new(nbits=self._cipher_info[name]['block-size'] * 8, initial_value=util.inflate_long(iv, True))
- return self._cipher_info[name]['class'].new(key, self._cipher_info[name]['mode'], iv, counter)
+ return self._cipher_info[name]['class'].new(key, self._cipher_info[name]['mode'], '', counter)
else:
return self._cipher_info[name]['class'].new(key, self._cipher_info[name]['mode'], iv)