From 338acfd5428f3cca06dcc3bd4ced76779286fa72 Mon Sep 17 00:00:00 2001 From: tb <> Date: Fri, 22 Dec 2023 17:37:14 +0000 Subject: Remove two no longer necessary reminders I guess I'm getting old. Next time I'll have to add a reminder not to forget to remove the reminder. --- src/lib/libcrypto/evp/evp_enc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/lib') diff --git a/src/lib/libcrypto/evp/evp_enc.c b/src/lib/libcrypto/evp/evp_enc.c index d18691a4db..ec4dae03f5 100644 --- a/src/lib/libcrypto/evp/evp_enc.c +++ b/src/lib/libcrypto/evp/evp_enc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: evp_enc.c,v 1.77 2023/12/22 14:58:05 tb Exp $ */ +/* $OpenBSD: evp_enc.c,v 1.78 2023/12/22 17:37:14 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -324,7 +324,6 @@ EVP_EncryptUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, int *out_len, if (partial_len == 0 && (in_len & block_mask) == 0) return evp_cipher(ctx, out, out_len, in, in_len); - /* XXX - check that block_size > partial_len. */ if (partial_len < 0 || partial_len >= block_size || block_size > sizeof(ctx->buf)) { EVPerror(EVP_R_BAD_BLOCK_LENGTH); @@ -400,7 +399,6 @@ EVP_EncryptFinal_ex(EVP_CIPHER_CTX *ctx, unsigned char *out, int *out_len) if ((ctx->cipher->flags & EVP_CIPH_FLAG_CUSTOM_CIPHER) != 0) return evp_cipher(ctx, out, out_len, NULL, 0); - /* XXX - check that block_size > partial_len. */ if (partial_len < 0 || partial_len >= block_size || block_size > sizeof(ctx->buf)) { EVPerror(EVP_R_BAD_BLOCK_LENGTH); -- cgit v1.2.3-55-g6feb