just for now
This commit is contained in:
@ -214,12 +214,13 @@ def decrypt(key: bytes, message: str) -> bytes:
|
||||
key_int = key[16:]
|
||||
|
||||
assert not message.endswith('\n'), 'message should not end with a newline!'
|
||||
|
||||
print("message is: ", message)
|
||||
try:
|
||||
iv, ciphertext, mac = message.split(';')
|
||||
iv = unhexlify(iv)
|
||||
ciphertext = unhexlify(ciphertext)
|
||||
mac = unhexlify(mac)
|
||||
print(len(mac))
|
||||
assert len(mac) == 16
|
||||
|
||||
except Exception as e:
|
||||
|
Reference in New Issue
Block a user