]> git.ipfire.org Git - thirdparty/openssl.git/commit
AES-WRAP fixes.
authorslontis <shane.lontis@oracle.com>
Wed, 4 Feb 2026 22:35:43 +0000 (09:35 +1100)
committerPauli <paul.dale@oracle.com>
Fri, 6 Feb 2026 07:42:03 +0000 (18:42 +1100)
commitca8a2bd6186f5478d0b8e03af90d6d1f6cd87161
tree13f636872f0592d3ebd3f28165c7f2d7678e3025
parent59147c96d2f010e5dd9d34fafef089b55ad4b5bb
AES-WRAP fixes.

Partially fixes issue in Discussion 22861

AES-WRAP pad is documented as only working for non streaming cases.
It did not however enforce this, so a user could potentially
wrap something incorrectly without an error and then not be able to
unwrap it without an error. The code now checks that update is only
called once.

An internal function returned an int which could be negative for bad
input values, and the return value was assigned to a size_t which
ignored the error condition.

Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/29940)
providers/implementations/ciphers/cipher_aes_wrp.c