diff --git a/RNS/Identity.py b/RNS/Identity.py index d585bcd..243569e 100644 --- a/RNS/Identity.py +++ b/RNS/Identity.py @@ -15,11 +15,11 @@ from cryptography.hazmat.primitives.asymmetric import padding class Identity: # Configure key size - KEYSIZE = 1536; - DERKEYSIZE = 1808; + KEYSIZE = 1536 + DERKEYSIZE = 1808 # Padding size, not configurable - PADDINGSIZE= 336; + PADDINGSIZE= 336 # Storage known_destinations = {} diff --git a/RNS/Packet.py b/RNS/Packet.py index 24aac5a..9c5a475 100755 --- a/RNS/Packet.py +++ b/RNS/Packet.py @@ -94,7 +94,7 @@ class Packet: def send(self): if not self.sent: self.pack() - RNS.log("Size: "+str(len(self.raw))+" header is "+str(len(self.header))+" payload is "+str(len(self.ciphertext)), RNS.LOG_DEBUG) + #RNS.log("Size: "+str(len(self.raw))+" header is "+str(len(self.header))+" payload is "+str(len(self.ciphertext)), RNS.LOG_DEBUG) RNS.Transport.outbound(self.raw) self.packet_hash = RNS.Identity.fullHash(self.raw) self.sent_at = time.time() diff --git a/RNS/Transport.py b/RNS/Transport.py index dc1e8ed..a20730b 100755 --- a/RNS/Transport.py +++ b/RNS/Transport.py @@ -17,7 +17,7 @@ class Transport: Transport.cacheRaw(raw) for interface in Transport.interfaces: if interface.OUT: - RNS.log("Transmitting via: "+str(interface), RNS.LOG_DEBUG) + RNS.log("Transmitting "+str(len(raw))+" bytes via: "+str(interface), RNS.LOG_DEBUG) interface.processOutgoing(raw) @staticmethod