From 362346d46a77f5f4f1aecec3e96460f332311361 Mon Sep 17 00:00:00 2001 From: tb Date: Sat, 16 Dec 2023 17:40:22 +0000 Subject: [PATCH] EVP_EncryptUpdate(): make block_size and block_mask const suggested by millert --- lib/libcrypto/evp/evp_enc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/libcrypto/evp/evp_enc.c b/lib/libcrypto/evp/evp_enc.c index 47d062a6bab..0b58a6d9eeb 100644 --- a/lib/libcrypto/evp/evp_enc.c +++ b/lib/libcrypto/evp/evp_enc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: evp_enc.c,v 1.62 2023/12/16 15:22:40 tb Exp $ */ +/* $OpenBSD: evp_enc.c,v 1.63 2023/12/16 17:40:22 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -296,8 +296,8 @@ int EVP_EncryptUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl, const unsigned char *in, int inl) { - int block_size = ctx->cipher->block_size; - int block_mask = ctx->block_mask; + const int block_size = ctx->cipher->block_size; + const int block_mask = ctx->block_mask; int buf_offset = ctx->buf_len; int len = 0, total_len = 0; -- 2.20.1