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; }