Skip to content

Commit

Permalink
Remove uneeded cast to unsigned int
Browse files Browse the repository at this point in the history
CLA: trivial

cipher_ctx->blocksize is already unsigned.

Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from #23098)
  • Loading branch information
AtariDreams authored and t8m committed Dec 22, 2023
1 parent 8f0f814 commit 6e15585
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/e_devcrypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6e15585

Please sign in to comment.