summaryrefslogtreecommitdiff
path: root/crypto/evp
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>2000-06-16 14:29:51 +0000
committerBodo Möller <bodo@openssl.org>2000-06-16 14:29:51 +0000
commit5d07c20d8e935450b8a0547c0a5a5effd102c79c (patch)
tree09367a73d100a1906b80b29ac6795f875e89c640 /crypto/evp
parent4ee1eb7bd43dcce09ebe222967524bdcb12005d8 (diff)
downloadopenssl-new-5d07c20d8e935450b8a0547c0a5a5effd102c79c.tar.gz
In EVP_BytesToKey, replace explicit "8" by "PKCS5_SALT_LEN".
Diffstat (limited to 'crypto/evp')
-rw-r--r--crypto/evp/evp_key.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/evp/evp_key.c b/crypto/evp/evp_key.c
index 667c21cca8..1201d782a4 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++)