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
commitd6f63fb6d64159925c69db7ea73d5477b0a09453 (patch)
treee7ccab8870b01564f64538ee15054390f53f5095 /src
parentd594aef2abd79c057b7174c0ebb2a469c0231b37 (diff)
downloadopenbsd-d6f63fb6d64159925c69db7ea73d5477b0a09453.tar.gz
openbsd-d6f63fb6d64159925c69db7ea73d5477b0a09453.tar.bz2
openbsd-d6f63fb6d64159925c69db7ea73d5477b0a09453.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) {