From 5d07c20d8e935450b8a0547c0a5a5effd102c79c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bodo=20M=C3=B6ller?= Date: Fri, 16 Jun 2000 14:29:51 +0000 Subject: [PATCH] In EVP_BytesToKey, replace explicit "8" by "PKCS5_SALT_LEN". --- crypto/evp/evp_key.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/evp/evp_key.c b/crypto/evp/evp_key.c index 667c21cca..1201d782a 100644 --- a/crypto/evp/evp_key.c +++ b/crypto/evp/evp_key.c @@ -116,7 +116,7 @@ int EVP_BytesToKey(const EVP_CIPHER *type, EVP_MD *md, unsigned char *salt, EVP_DigestUpdate(&c,&(md_buf[0]),mds); EVP_DigestUpdate(&c,data,datal); if (salt != NULL) - EVP_DigestUpdate(&c,salt,8); +i EVP_DigestUpdate(&c,salt,PKCS5_SALT_LEN); EVP_DigestFinal(&c,&(md_buf[0]),&mds); for (i=1; i<(unsigned int)count; i++)