From 6af635bd41b48da04edd1f70a6851cb3f811cea3 Mon Sep 17 00:00:00 2001 From: jaseg Date: Tue, 13 Nov 2018 20:40:01 +0900 Subject: Textview tomfoolery --- hexnoise.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'hexnoise.py') 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 -- cgit