just for now

This commit is contained in:
2024-12-10 00:51:04 +09:00
parent c4c4547706
commit 022291f5af
18 changed files with 311 additions and 32 deletions

View File

@ -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: