From 6e155858d785297bd8b51f667bc440f4e7c17bfb Mon Sep 17 00:00:00 2001 From: Rose <83477269+AtariDreams@users.noreply.github.com> Date: Tue, 19 Dec 2023 11:29:54 -0500 Subject: [PATCH] Remove uneeded cast to unsigned int CLA: trivial cipher_ctx->blocksize is already unsigned. Reviewed-by: Matt Caswell Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/23098) --- engines/e_devcrypto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/e_devcrypto.c b/engines/e_devcrypto.c index 3a4082d22b..1e1d9d12b8 100644 --- a/engines/e_devcrypto.c +++ b/engines/e_devcrypto.c @@ -334,7 +334,7 @@ static int ctr_do_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out, } /* full blocks */ - if (inl > (unsigned int) cipher_ctx->blocksize) { + if (inl > cipher_ctx->blocksize) { nblocks = inl/cipher_ctx->blocksize; len = nblocks * cipher_ctx->blocksize; if (cipher_do_cipher(ctx, out, in, len) < 1)