From 3f0ddf0eadc5d5630286b41096e32bd2d03cc260 Mon Sep 17 00:00:00 2001 From: Justin W Smith <103147162+justsmth@users.noreply.github.com> Date: Wed, 11 Oct 2023 11:04:32 -0400 Subject: [PATCH] Fix bad cast in SSHKDF --- crypto/fipsmodule/sshkdf/sshkdf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crypto/fipsmodule/sshkdf/sshkdf.c b/crypto/fipsmodule/sshkdf/sshkdf.c index 90e9580c47..b95cd9c6b5 100644 --- a/crypto/fipsmodule/sshkdf/sshkdf.c +++ b/crypto/fipsmodule/sshkdf/sshkdf.c @@ -23,7 +23,7 @@ int SSHKDF(const EVP_MD *evp_md, { EVP_MD_CTX *md = NULL; uint8_t digest[EVP_MAX_MD_SIZE]; - size_t digest_size = 0; + unsigned int digest_size = 0; size_t cursize = 0; int ret = 0; @@ -72,7 +72,7 @@ int SSHKDF(const EVP_MD *evp_md, goto out; } - if (!EVP_DigestFinal_ex(md, digest, (unsigned int *)&digest_size)) { + if (!EVP_DigestFinal_ex(md, digest, &digest_size)) { goto out; }