Improved IFAC mask derivation
This commit is contained in:
parent
4df67304d6
commit
53ceafcebd
@ -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()
|
||||
Transport.persist_data()
|
||||
|
Loading…
Reference in New Issue
Block a user