summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2023-12-20 14:11:41 +0000
committertb <>2023-12-20 14:11:41 +0000
commitcbe4260b8ca7744bd3b905002278099bf5e9cc0a (patch)
treee7ccab8870b01564f64538ee15054390f53f5095 /src
parent35c5bac9416b588e7e556a909c2254080d989acc (diff)
downloadopenbsd-cbe4260b8ca7744bd3b905002278099bf5e9cc0a.tar.gz
openbsd-cbe4260b8ca7744bd3b905002278099bf5e9cc0a.tar.bz2
openbsd-cbe4260b8ca7744bd3b905002278099bf5e9cc0a.zip
Tweak a comment a bit
Diffstat (limited to 'src')
-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) {