summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/libcrypto/evp/evp_enc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/evp/evp_enc.c b/src/lib/libcrypto/evp/evp_enc.c
index 3322e4a05d..b993c1b82f 100644
--- a/src/lib/libcrypto/evp/evp_enc.c
+++ b/src/lib/libcrypto/evp/evp_enc.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: evp_enc.c,v 1.69 2023/12/20 14:10:03 tb Exp $ */ 1/* $OpenBSD: evp_enc.c,v 1.70 2023/12/20 14:11:41 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -450,8 +450,8 @@ EVP_DecryptUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl,
450 450
451 if (ctx->final_used) { 451 if (ctx->final_used) {
452 /* 452 /*
453 * final_used is only set if partial_len is 0. Therefore the maximum 453 * final_used is only set if partial_len is 0. Therefore the
454 * length output from EVP_EncryptUpdate() is inl & ~block_mask. 454 * output from EVP_EncryptUpdate() is inl & ~block_mask.
455 * Ensure (inl & ~block_mask) + block_size doesn't overflow. 455 * Ensure (inl & ~block_mask) + block_size doesn't overflow.
456 */ 456 */
457 if ((inl & ~block_mask) > INT_MAX - block_size) { 457 if ((inl & ~block_mask) > INT_MAX - block_size) {