Skip to content

Conversation

@stefanberger
Copy link
Owner

Fix the retrieval of the updated IV for when OpenSSL >= 3.0 is used. The previously used OSSL_PARAM_octet_ptr allocated a new buffer and then returned the IV but this newly allocated buffer did not make it back to the caller. We have to use OSSL_PARAM_octet_string instead to write the data into the buffer.

Resolves: #541

Fix the retrieval of the updated IV for when OpenSSL >= 3.0 is used.
The previously used OSSL_PARAM_octet_ptr allocated a new buffer and then
returned the IV but this newly allocated buffer did not make it back to
the caller. We have to use OSSL_PARAM_octet_string instead to write the
data into the buffer.

Resolves: #541
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
@stefanberger stefanberger merged commit ee31b0b into master Dec 29, 2025
4 checks passed
@stefanberger stefanberger deleted the stefanberger/fix_returned_iv branch December 29, 2025 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Updated IV returned from AES encryption/decryption is wrong (since v0.10)

2 participants