summaryrefslogtreecommitdiff
path: root/hexnoise.py
diff options
context:
space:
mode:
authorjaseg <git@jaseg.net>2018-11-13 20:40:01 +0900
committerjaseg <git@jaseg.net>2018-11-13 20:40:01 +0900
commit6af635bd41b48da04edd1f70a6851cb3f811cea3 (patch)
tree206183fd9322d75c584293907fc5f3245e2232d2 /hexnoise.py
parent587ecdd72d8d186732651aada681c0327d34924a (diff)
downloadsecure-hid-6af635bd41b48da04edd1f70a6851cb3f811cea3.tar.gz
secure-hid-6af635bd41b48da04edd1f70a6851cb3f811cea3.tar.bz2
secure-hid-6af635bd41b48da04edd1f70a6851cb3f811cea3.zip
Textview tomfoolery
Diffstat (limited to 'hexnoise.py')
-rwxr-xr-xhexnoise.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/hexnoise.py b/hexnoise.py
index 0c851d3..8529787 100755
--- a/hexnoise.py
+++ b/hexnoise.py
@@ -225,7 +225,7 @@ class NoiseEngine:
raise ValueError(f'Incorrect packet type {pkt_type}. Ignoring since this is only test code.')
if self.debug:
print('Handshake finished, handshake hash:')
- hexdump(print, self.proto.get_handshake_hash(), args.width)
+ hexdump(print, self.proto.get_handshake_hash())
def channel_binding_incantation(self):
hhash = self.proto.get_handshake_hash()
@@ -245,7 +245,7 @@ class NoiseEngine:
rtype, data = self._decrypt(received)
if self.debug:
print(f'Decrypted packet {rtype} ({rtype.value}):')
- hexdump(print, data, args.width)
+ hexdump(print, data)
yield rtype, data
def _decrypt(self, received):
@@ -271,7 +271,7 @@ class NoiseEngine:
def setter(n):
self.proto.noise_protocol.cipher_state_decrypt.n = nold + n
- with suppress(NoiseInvalMessage):
+ with suppress(NoiseInvalidMessage):
yield setter
proto.noise_protocol.cipher_state_decrypt.n = nold