Remove uneeded cast to unsigned int
authorRose <83477269+AtariDreams@users.noreply.github.com>
Tue, 19 Dec 2023 16:29:54 +0000 (11:29 -0500)
committerTomas Mraz <tomas@openssl.org>
Fri, 22 Dec 2023 13:43:31 +0000 (14:43 +0100)
CLA: trivial

cipher_ctx->blocksize is already unsigned.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23098)

engines/e_devcrypto.c

index 3a4082d22bb53d379769a2b60601f66a63520b1e..1e1d9d12b83c719cd2cfbb98f2ebb3c643b16f36 100644 (file)
@@ -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)