Removed legacy encryption modes. Default to AES-256 for links and packets.

This commit is contained in:
Mark Qvist 2025-05-13 13:18:44 +02:00
parent 5f502746a4
commit 4e4c68071f
3 changed files with 16 additions and 50 deletions

View file

@ -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")