isn't a FIPS-approved algorithm.
Note: this means the user needs to keep track of this, and we need to
add support for that...
#ifndef OPENSSL_NO_ENGINE
char *engine = NULL;
#endif
+ const EVP_MD *dgst=NULL;
apps_startup();
e = setup_engine(bio_err, engine, 0);
#endif
+ if (dgst == NULL)
+ {
+ if (in_FIPS_mode)
+ dgst = EVP_sha1();
+ else
+ dgst = EVP_md5();
+ }
+
if (bufsize != NULL)
{
unsigned long n;
sptr = salt;
}
- EVP_BytesToKey(cipher,EVP_md5(),sptr,
+ EVP_BytesToKey(cipher,dgst,sptr,
(unsigned char *)str,
strlen(str),1,key,iv);
/* zero the complete buffer or the string