wahern / luaossl

Most comprehensive OpenSSL module in the Lua universe.
http://25thandclement.com/~william/projects/luaossl.html
Other
140 stars 49 forks source link

Allow for ciphers with adjustable IV lengths #202

Closed daurnimator closed 2 years ago

daurnimator commented 2 years ago

Fixes https://github.com/wahern/luaossl/pull/201#issuecomment-1176963841

@mwild1

Need to figure out which version of OpenSSL EVP_CTRL_AEAD_SET_IVLEN was introduced in and if any compat shims are needed

mwild1 commented 2 years ago

LGTM. Regarding compatibility:

EVP_CTRL_AEAD_SET_IVLEN exists since OpenSSL 1.1.0. In 1.0.2 you can use EVP_CTRL_GCM_SET_IVLEN to do the same job. -- https://github.com/openssl/openssl/issues/8330#issuecomment-516838331