projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Portability patch for HP MPE/iX. Submitted by Mark Bixby <mark_bixby@hp.com>
[oweals/openssl.git]
/
crypto
/
evp
/
evp_key.c
diff --git
a/crypto/evp/evp_key.c
b/crypto/evp/evp_key.c
index 667c21cca8d365f9c594347f985a3ef806c54edb..09b72bf4bdd1c661460da6d09d2ceec61e9be22c 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
);
+ EVP_DigestUpdate(&c,salt,
PKCS5_SALT_LEN
);
EVP_DigestFinal(&c,&(md_buf[0]),&mds);
for (i=1; i<(unsigned int)count; i++)