From 53ceafcebda0e3c615fb742d1ae6e453ba9be51f Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Thu, 2 Feb 2023 23:59:02 +0100 Subject: [PATCH] Improved IFAC mask derivation --- RNS/Transport.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/RNS/Transport.py b/RNS/Transport.py index e7524de..1a25c03 100755 --- a/RNS/Transport.py +++ b/RNS/Transport.py @@ -589,8 +589,8 @@ class Transport: # Generate mask mask = RNS.Cryptography.hkdf( length=len(raw)+interface.ifac_size, - derive_from=interface.ifac_signature+ifac, - salt=RNS.Reticulum.IFAC_SALT, + derive_from=ifac, + salt=interface.ifac_key, context=None, ) @@ -932,8 +932,8 @@ class Transport: # Generate mask mask = RNS.Cryptography.hkdf( length=len(raw), - derive_from=interface.ifac_signature+ifac, - salt=RNS.Reticulum.IFAC_SALT, + derive_from=ifac, + salt=interface.ifac_key, context=None, ) @@ -2401,4 +2401,4 @@ class Transport: @staticmethod def exit_handler(): if not Transport.owner.is_connected_to_shared_instance: - Transport.persist_data() \ No newline at end of file + Transport.persist_data()