]> git.ipfire.org Git - thirdparty/openssl.git/commit
aes-wrap: improve error handling
authorPauli <pauli@openssl.org>
Mon, 23 Aug 2021 23:40:52 +0000 (09:40 +1000)
committerPauli <pauli@openssl.org>
Wed, 25 Aug 2021 23:33:52 +0000 (09:33 +1000)
commit9698a56e82da0262146c0f74b40d132f99099850
tree37143f36ed4e1f9f1de5798010f23610254a48c0
parent31656f27855ddd477349f5960b29d605d32fe38d
aes-wrap: improve error handling

The AES wrap cipher was return -1 on error from the provider rather than 0.
This is fixed.

There was a problem with the error handling in AES wrap which fell back to a
default "final error".  This adds a fix for the error and more specific errors
for the different failure possibilities.

Fixes #16387

Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16391)
providers/implementations/ciphers/cipher_aes_wrp.c