diff options
author | Rose <83477269+AtariDreams@users.noreply.github.com> | 2023-12-19 17:29:54 +0100 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2023-12-22 14:43:31 +0100 |
commit | 6e155858d785297bd8b51f667bc440f4e7c17bfb (patch) | |
tree | 6ac63ac621d5e50c427e4dd056329cae900f23c5 /engines | |
parent | AES: Document that the XTS, SIV, WRAP modes do not support streaming (diff) | |
download | openssl-6e155858d785297bd8b51f667bc440f4e7c17bfb.tar.xz openssl-6e155858d785297bd8b51f667bc440f4e7c17bfb.zip |
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.c | 2 |
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) |