[openssl] openssl-3.0 update
tomas at openssl.org
tomas at openssl.org
Tue Nov 16 16:29:12 UTC 2021
The branch openssl-3.0 has been updated
via c8d3926eb7bcbce6ec85fd3218d64fa8bc7c0861 (commit)
from 1843930a71f905f1c8f6207e8a693d426e322443 (commit)
- Log -----------------------------------------------------------------
commit c8d3926eb7bcbce6ec85fd3218d64fa8bc7c0861
Author: Peiwei Hu <jlu.hpw at foxmail.com>
Date: Sun Nov 14 16:39:42 2021 +0800
EVP_Cipher: fix the incomplete return check
Signed-off-by: Peiwei Hu <jlu.hpw at foxmail.com>
Reviewed-by: Matt Caswell <matt at openssl.org>
Reviewed-by: Paul Dale <pauli at openssl.org>
Reviewed-by: Tomas Mraz <tomas at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17027)
(cherry picked from commit 6d774732517f1d63b7999c5691fc0bf046023faf)
-----------------------------------------------------------------------
Summary of changes:
crypto/cmac/cmac.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/crypto/cmac/cmac.c b/crypto/cmac/cmac.c
index 18c7fea3dd..218eb94259 100644
--- a/crypto/cmac/cmac.c
+++ b/crypto/cmac/cmac.c
@@ -227,7 +227,7 @@ int CMAC_Final(CMAC_CTX *ctx, unsigned char *out, size_t *poutlen)
for (i = 0; i < bl; i++)
out[i] = ctx->last_block[i] ^ ctx->k2[i];
}
- if (!EVP_Cipher(ctx->cctx, out, out, bl)) {
+ if (EVP_Cipher(ctx->cctx, out, out, bl) <= 0) {
OPENSSL_cleanse(out, bl);
return 0;
}
More information about the openssl-commits
mailing list