Open sify21 opened 2 years ago
the script works fine, just need to change all AES.new(key)
to AES.new(key, AES.MODE_ECB )
If the block for this is Openssl upstream, they have recently added AES-GCM-SIV support: https://github.com/openssl/openssl/issues/16721
It is implemented in cryptography; see https://cryptography.io/en/latest/hazmat/primitives/aead/#cryptography.hazmat.primitives.ciphers.aead.AESGCMSIV
I also can't find aes-gcm-siv implementations in other popular python projects like tink and cryptography, only a sample script which was written 3 years ago and clearly states that
Do not use
.Related issues: https://github.com/pyca/cryptography/issues/5877#issuecomment-869585435