mirror of
https://github.com/markqvist/Reticulum.git
synced 2025-06-05 21:48:56 -04:00
Enabled AES_256_CBC link mode
This commit is contained in:
parent
d7791c60e2
commit
ab0ac46d5a
1 changed files with 2 additions and 1 deletions
|
@ -123,7 +123,7 @@ class Link:
|
|||
MODE_PQ_RESERVED_2 = 0x05
|
||||
MODE_PQ_RESERVED_3 = 0x06
|
||||
MODE_PQ_RESERVED_4 = 0x07
|
||||
enabled_modes = [MODE_AES128_CBC]
|
||||
enabled_modes = [MODE_AES128_CBC, MODE_AES256_CBC]
|
||||
|
||||
MTU_BYTEMASK = 0x1FFFFF
|
||||
MODE_BYTEMASK = 0xE0
|
||||
|
@ -206,6 +206,7 @@ class Link:
|
|||
return None
|
||||
|
||||
|
||||
# TODO: Set default link mode to AES_256_CBC after migration
|
||||
def __init__(self, destination=None, established_callback=None, closed_callback=None, owner=None, peer_pub_bytes=None, peer_sig_pub_bytes=None, mode=MODE_AES128_CBC):
|
||||
if destination != None and destination.type != RNS.Destination.SINGLE: raise TypeError("Links can only be established to the \"single\" destination type")
|
||||
self.mode = mode
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue