projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ee1eb7
)
In EVP_BytesToKey, replace explicit "8" by "PKCS5_SALT_LEN".
author
Bodo Möller
<bodo@openssl.org>
Fri, 16 Jun 2000 14:29:51 +0000
(14:29 +0000)
committer
Bodo Möller
<bodo@openssl.org>
Fri, 16 Jun 2000 14:29:51 +0000
(14:29 +0000)
crypto/evp/evp_key.c
patch
|
blob
|
history
diff --git
a/crypto/evp/evp_key.c
b/crypto/evp/evp_key.c
index 667c21cca8d365f9c594347f985a3ef806c54edb..1201d782a44508967c04d7fe63943c58841f4f6f 100644
(file)
--- 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++)