mirror of
https://github.com/markqvist/Reticulum.git
synced 2025-05-31 04:24:32 -04:00
Removed legacy encryption modes. Default to AES-256 for links and packets.
This commit is contained in:
parent
5f502746a4
commit
4e4c68071f
3 changed files with 16 additions and 50 deletions
|
@ -103,7 +103,6 @@ class Token():
|
|||
|
||||
|
||||
def decrypt(self, token = None):
|
||||
# RNS.log(f"Trying decryption with {self.mode}") # TODO: Remove
|
||||
if not isinstance(token, bytes): raise TypeError("Token must be bytes")
|
||||
if not self.verify_hmac(token): raise ValueError("Token HMAC was invalid")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue