Skip to content

Commit

Permalink
Fix bad cast in SSHKDF
Browse files Browse the repository at this point in the history
  • Loading branch information
justsmth committed Oct 11, 2023
1 parent 4a48eb6 commit 3f0ddf0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crypto/fipsmodule/sshkdf/sshkdf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 3f0ddf0

Please sign in to comment.