summaryrefslogtreecommitdiffstats
path: root/crypto/rand
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2001-07-10 22:58:13 +0200
committerRichard Levitte <levitte@openssl.org>2001-07-10 22:58:13 +0200
commitd8a750ee7fd48baee71958c1bf32ba1e9fac6c03 (patch)
treeef200179ac5431c2355f016d49e4068596689458 /crypto/rand
parentFor consistency with the terminology used in my SAC2001 paper, avoid (diff)
downloadopenssl-d8a750ee7fd48baee71958c1bf32ba1e9fac6c03.tar.xz
openssl-d8a750ee7fd48baee71958c1bf32ba1e9fac6c03.zip
EVP_Digest() takes one more parameter.
Diffstat (limited to 'crypto/rand')
-rw-r--r--crypto/rand/rand_lcl.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/crypto/rand/rand_lcl.h b/crypto/rand/rand_lcl.h
index 44d7cbba67..f81291b6dc 100644
--- a/crypto/rand/rand_lcl.h
+++ b/crypto/rand/rand_lcl.h
@@ -136,19 +136,19 @@
#if defined(USE_MD5_RAND)
#define MD_DIGEST_LENGTH MD5_DIGEST_LENGTH
#define MD_Init(a) EVP_DigestInit(a,EVP_md5())
-#define MD(a,b,c) EVP_Digest(a,b,c,EVP_md5())
+#define MD(a,b,c) EVP_Digest(a,b,c,NULL,EVP_md5())
#elif defined(USE_SHA1_RAND)
#define MD_DIGEST_LENGTH SHA_DIGEST_LENGTH
#define MD_Init(a) EVP_DigestInit(a,EVP_sha1())
-#define MD(a,b,c) EVP_Digest(a,b,c,EVP_sha1())
+#define MD(a,b,c) EVP_Digest(a,b,c,NULL,EVP_sha1())
#elif defined(USE_MDC2_RAND)
#define MD_DIGEST_LENGTH MDC2_DIGEST_LENGTH
#define MD_Init(a) EVP_DigestInit(a,EVP_mdc2())
-#define MD(a,b,c) EVP_Digest(a,b,c,EVP_mdc2())
+#define MD(a,b,c) EVP_Digest(a,b,c,NULL,EVP_mdc2())
#elif defined(USE_MD2_RAND)
#define MD_DIGEST_LENGTH MD2_DIGEST_LENGTH
#define MD_Init(a) EVP_DigestInit(a,EVP_md2())
-#define MD(a,b,c) EVP_Digest(a,b,c,EVP_md2())
+#define MD(a,b,c) EVP_Digest(a,b,c,NULL,EVP_md2())
#endif