diff options
author | Matt Caswell <matt@openssl.org> | 2020-05-27 12:38:39 +0200 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2020-06-10 13:58:26 +0200 |
commit | 154ea425e647de4a497aa28c91d279aa93b3bf60 (patch) | |
tree | 3b796139930bc22d0d76f8419f925ab8d66d9fa4 /test | |
parent | Ensure we never use a partially initialised CMAC_CTX (diff) | |
download | openssl-154ea425e647de4a497aa28c91d279aa93b3bf60.tar.xz openssl-154ea425e647de4a497aa28c91d279aa93b3bf60.zip |
Correctly handle the return value from EVP_Cipher() in the CMAC code
EVP_Cipher() is a very low level routine that directly calls the
underlying cipher function. It's return value semantics are very odd.
Depending on the type of cipher 0 or -1 is returned on error. We should
just check for <=0 for a failure.
Fixes #11957
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/11972)
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions