change padding to 256 bits
This commit is contained in:
parent
8c4abba69d
commit
f96e1ea230
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue