Legrandin / pycryptodome

A self-contained cryptographic library for Python
https://www.pycryptodome.org
Other
2.74k stars 492 forks source link

support for aes-gcm-siv mode (rfc8452) #543

Open sify21 opened 2 years ago

sify21 commented 2 years ago

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

sify21 commented 2 years ago

the script works fine, just need to change all AES.new(key) to AES.new(key, AES.MODE_ECB )

tasket commented 1 year ago

If the block for this is Openssl upstream, they have recently added AES-GCM-SIV support: https://github.com/openssl/openssl/issues/16721

redfast00 commented 1 month ago

It is implemented in cryptography; see https://cryptography.io/en/latest/hazmat/primitives/aead/#cryptography.hazmat.primitives.ciphers.aead.AESGCMSIV