Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix:https://github.com/Cisco-Talos/clamav/issues/564 #959

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions libclamav/crypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ unsigned char *cl_hash_data(const char *alg, const void *buf, size_t len, unsign
size_t cur;
int winres = 0;

md = EVP_get_digestbyname(alg);
md = EVP_MD_fetch(NULL, alg, "-fips");
if (!(md))
return NULL;

Expand Down Expand Up @@ -260,7 +260,7 @@ unsigned char *cl_hash_file_fd(int fd, const char *alg, unsigned int *olen)
const EVP_MD *md;
unsigned char *res;

md = EVP_get_digestbyname(alg);
md = EVP_MD_fetch(NULL, alg, "-fips");
if (!(md))
return NULL;

Expand Down Expand Up @@ -392,7 +392,7 @@ int cl_verify_signature_hash(EVP_PKEY *pkey, const char *alg, unsigned char *sig
const EVP_MD *md;
size_t mdsz;

md = EVP_get_digestbyname(alg);
md = EVP_MD_fetch(NULL, alg, "-fips");
if (!(md))
return -1;

Expand Down Expand Up @@ -437,7 +437,7 @@ int cl_verify_signature_fd(EVP_PKEY *pkey, const char *alg, unsigned char *sig,
if (!(digest))
return -1;

md = EVP_get_digestbyname(alg);
md = EVP_MD_fetch(NULL, alg, "-fips");
if (!(md)) {
free(digest);
return -1;
Expand Down Expand Up @@ -506,7 +506,7 @@ int cl_verify_signature(EVP_PKEY *pkey, const char *alg, unsigned char *sig, uns
return -1;
}

md = EVP_get_digestbyname(alg);
md = EVP_MD_fetch(NULL, alg, "-fips");
if (!(md)) {
free(digest);
if (decode)
Expand Down Expand Up @@ -725,7 +725,7 @@ unsigned char *cl_sign_data(EVP_PKEY *pkey, const char *alg, unsigned char *hash
unsigned int siglen;
unsigned char *sig;

md = EVP_get_digestbyname(alg);
md = EVP_MD_fetch(NULL, alg, "-fips");
if (!(md))
return NULL;

Expand Down Expand Up @@ -1148,7 +1148,7 @@ void *cl_hash_init(const char *alg)
EVP_MD_CTX *ctx;
const EVP_MD *md;

md = EVP_get_digestbyname(alg);
md = EVP_MD_fetch(NULL, alg, "-fips");
if (!(md))
return NULL;

Expand Down