mirror of
https://github.com/markqvist/Reticulum.git
synced 2024-11-26 07:20:18 +00:00
Improved IFAC mask derivation
This commit is contained in:
parent
4df67304d6
commit
53ceafcebd
@ -589,8 +589,8 @@ class Transport:
|
|||||||
# Generate mask
|
# Generate mask
|
||||||
mask = RNS.Cryptography.hkdf(
|
mask = RNS.Cryptography.hkdf(
|
||||||
length=len(raw)+interface.ifac_size,
|
length=len(raw)+interface.ifac_size,
|
||||||
derive_from=interface.ifac_signature+ifac,
|
derive_from=ifac,
|
||||||
salt=RNS.Reticulum.IFAC_SALT,
|
salt=interface.ifac_key,
|
||||||
context=None,
|
context=None,
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -932,8 +932,8 @@ class Transport:
|
|||||||
# Generate mask
|
# Generate mask
|
||||||
mask = RNS.Cryptography.hkdf(
|
mask = RNS.Cryptography.hkdf(
|
||||||
length=len(raw),
|
length=len(raw),
|
||||||
derive_from=interface.ifac_signature+ifac,
|
derive_from=ifac,
|
||||||
salt=RNS.Reticulum.IFAC_SALT,
|
salt=interface.ifac_key,
|
||||||
context=None,
|
context=None,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user