summaryrefslogtreecommitdiffstats
path: root/engines
diff options
context:
space:
mode:
authorRose <83477269+AtariDreams@users.noreply.github.com>2023-12-19 11:29:54 -0500
committerTomas Mraz <tomas@openssl.org>2023-12-22 14:43:31 +0100
commit6e155858d785297bd8b51f667bc440f4e7c17bfb (patch)
tree6ac63ac621d5e50c427e4dd056329cae900f23c5 /engines
parent8f0f814d791e0825b96c30494594de619da3e5a5 (diff)
Remove uneeded cast to unsigned int
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)
Diffstat (limited to 'engines')
-rw-r--r--engines/e_devcrypto.c2
1 files changed, 1 insertions, 1 deletions
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)