|
|
@ -228,20 +228,23 @@ class Channel:
|
|
|
|
|
|
|
|
|
|
|
|
assert key_receive is not None
|
|
|
|
assert key_receive is not None
|
|
|
|
assert nonce_receive is not None
|
|
|
|
assert nonce_receive is not None
|
|
|
|
|
|
|
|
if __debug__:
|
|
|
|
print(
|
|
|
|
log.debug(
|
|
|
|
"(cid: %s) Buffer before decryption: %s",
|
|
|
|
__name__,
|
|
|
|
utils.get_bytes_as_str(self.channel_id),
|
|
|
|
"(cid: %s) Buffer before decryption: %s",
|
|
|
|
hexlify(noise_buffer),
|
|
|
|
utils.get_bytes_as_str(self.channel_id),
|
|
|
|
)
|
|
|
|
hexlify(noise_buffer),
|
|
|
|
|
|
|
|
)
|
|
|
|
is_tag_valid = crypto.dec(
|
|
|
|
is_tag_valid = crypto.dec(
|
|
|
|
noise_buffer, tag, key_receive, nonce_receive, b""
|
|
|
|
noise_buffer, tag, key_receive, nonce_receive, b""
|
|
|
|
)
|
|
|
|
)
|
|
|
|
print(
|
|
|
|
if __debug__:
|
|
|
|
"(cid: %s) Buffer after decryption: %s",
|
|
|
|
log.debug(
|
|
|
|
utils.get_bytes_as_str(self.channel_id),
|
|
|
|
__name__,
|
|
|
|
hexlify(noise_buffer),
|
|
|
|
"(cid: %s) Buffer after decryption: %s",
|
|
|
|
)
|
|
|
|
utils.get_bytes_as_str(self.channel_id),
|
|
|
|
|
|
|
|
hexlify(noise_buffer),
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
self.channel_cache.set_int(CHANNEL_NONCE_RECEIVE, nonce_receive + 1)
|
|
|
|
self.channel_cache.set_int(CHANNEL_NONCE_RECEIVE, nonce_receive + 1)
|
|
|
|
|
|
|
|
|
|
|
|