Properly initialize AEAD cipher flags in OpenSSL backend#20853
Properly initialize AEAD cipher flags in OpenSSL backend#20853jordikroon wants to merge 6 commits intophp:masterfrom
Conversation
2cff66b to
7de1357
Compare
|
Please review commits 1 by 1 since I am not sure if the change from The second commit allows AAD to be null since it behaves differently than when only an empty string is given. The matches other implementations like |
bukka
left a comment
There was a problem hiding this comment.
This looks reasonable. Just some minor things really.
bukka
left a comment
There was a problem hiding this comment.
It looks good now. It would be just nice to convert the test so it's consistent with other AEAD tests.
|
Note that openssl supports aes-gcm-siv since v3.2 which is improved version of aes-siv. Is it possible to add support for aes-gcm-siv here in advance? |
|
The code looks good but it needs rebase... |
|
@bukka This has been rebased |
Fixes #20851
Add support for AEAD ciphers like AES-SIV by detecting and initializing AEAD flags during cipher mode loading.
Includes test case for AES-256-SIV encryption/decryption roundtrip.