change padding to 256 bits

This commit is contained in:
Nico Schottelius 2025-01-31 15:26:12 +01:00
parent 8c4abba69d
commit f96e1ea230

View file

@ -205,7 +205,7 @@ class UngleichMatrixClient:
# Remove PKCS7 padding - block size 128 was guessed / tested to be correct
# Needs to be verified - it should in theory be 256
unpadder = padding.PKCS7(128).unpadder()
unpadder = padding.PKCS7(256).unpadder()
data = unpadder.update(session_key_bytes)
data += unpadder.finalize()