This commit is contained in:
Dr. Stephen Henson 2011-11-05 18:25:16 +00:00
parent df64f34e84
commit 03eae35352

View file

@ -107,7 +107,7 @@ ECDSA_SIG * FIPS_ecdsa_sign(EC_KEY *key,
unsigned char dig[EVP_MAX_MD_SIZE]; unsigned char dig[EVP_MAX_MD_SIZE];
unsigned int dlen; unsigned int dlen;
FIPS_digest(msg, msglen, dig, &dlen, mhash); FIPS_digest(msg, msglen, dig, &dlen, mhash);
s = FIPS_dsa_sign_digest(key, dig, dlen); s = FIPS_ecdsa_sign_digest(key, dig, dlen);
OPENSSL_cleanse(dig, dlen); OPENSSL_cleanse(dig, dlen);
return s; return s;
} }