diff options
author | bcook <> | 2014-10-20 13:06:54 +0000 |
---|---|---|
committer | bcook <> | 2014-10-20 13:06:54 +0000 |
commit | dd4273fba31ef60efe2d1cd25f9ae3f3aa30d3ed (patch) | |
tree | 9f1b71bdf20f33992bbc4fa9ce82f07ec687ade8 | |
parent | 514ab254d4a55f1937d1cb4e94c49f7819060f3e (diff) | |
download | openbsd-dd4273fba31ef60efe2d1cd25f9ae3f3aa30d3ed.tar.gz openbsd-dd4273fba31ef60efe2d1cd25f9ae3f3aa30d3ed.tar.bz2 openbsd-dd4273fba31ef60efe2d1cd25f9ae3f3aa30d3ed.zip |
digests: *_LONG_LOG2 is not used, stop talking about it.
Modified patch from Dmitry Eremin-Solenikov
leave the sole public define in ripemd.h
ok deraadt@ miod@
-rw-r--r-- | src/lib/libcrypto/md32_common.h | 6 | ||||
-rw-r--r-- | src/lib/libcrypto/md4/md4.h | 5 | ||||
-rw-r--r-- | src/lib/libcrypto/md4/md4_locl.h | 6 | ||||
-rw-r--r-- | src/lib/libcrypto/md5/md5.h | 5 | ||||
-rw-r--r-- | src/lib/libcrypto/md5/md5_locl.h | 6 | ||||
-rw-r--r-- | src/lib/libcrypto/ripemd/rmd_locl.h | 6 | ||||
-rw-r--r-- | src/lib/libcrypto/sha/sha.h | 5 | ||||
-rw-r--r-- | src/lib/libssl/src/crypto/md32_common.h | 6 | ||||
-rw-r--r-- | src/lib/libssl/src/crypto/md4/md4.h | 5 | ||||
-rw-r--r-- | src/lib/libssl/src/crypto/md4/md4_locl.h | 6 | ||||
-rw-r--r-- | src/lib/libssl/src/crypto/md5/md5.h | 5 | ||||
-rw-r--r-- | src/lib/libssl/src/crypto/md5/md5_locl.h | 6 | ||||
-rw-r--r-- | src/lib/libssl/src/crypto/ripemd/rmd_locl.h | 6 | ||||
-rw-r--r-- | src/lib/libssl/src/crypto/sha/sha.h | 5 |
14 files changed, 22 insertions, 56 deletions
diff --git a/src/lib/libcrypto/md32_common.h b/src/lib/libcrypto/md32_common.h index 24d003e774..603b3d5fbe 100644 --- a/src/lib/libcrypto/md32_common.h +++ b/src/lib/libcrypto/md32_common.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: md32_common.h,v 1.18 2014/08/18 19:11:48 bcook Exp $ */ | 1 | /* $OpenBSD: md32_common.h,v 1.19 2014/10/20 13:06:54 bcook Exp $ */ |
2 | /* ==================================================================== | 2 | /* ==================================================================== |
3 | * Copyright (c) 1999-2007 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 1999-2007 The OpenSSL Project. All rights reserved. |
4 | * | 4 | * |
@@ -64,8 +64,7 @@ | |||
64 | * HASH_CBLOCK | 64 | * HASH_CBLOCK |
65 | * size of a unit chunk HASH_BLOCK operates on. | 65 | * size of a unit chunk HASH_BLOCK operates on. |
66 | * HASH_LONG | 66 | * HASH_LONG |
67 | * has to be at lest 32 bit wide, if it's wider, then | 67 | * has to be at least 32 bit wide. |
68 | * HASH_LONG_LOG2 *has to* be defined along | ||
69 | * HASH_CTX | 68 | * HASH_CTX |
70 | * context structure that at least contains following | 69 | * context structure that at least contains following |
71 | * members: | 70 | * members: |
@@ -98,7 +97,6 @@ | |||
98 | * #define DATA_ORDER_IS_LITTLE_ENDIAN | 97 | * #define DATA_ORDER_IS_LITTLE_ENDIAN |
99 | * | 98 | * |
100 | * #define HASH_LONG MD5_LONG | 99 | * #define HASH_LONG MD5_LONG |
101 | * #define HASH_LONG_LOG2 MD5_LONG_LOG2 | ||
102 | * #define HASH_CTX MD5_CTX | 100 | * #define HASH_CTX MD5_CTX |
103 | * #define HASH_CBLOCK MD5_CBLOCK | 101 | * #define HASH_CBLOCK MD5_CBLOCK |
104 | * #define HASH_UPDATE MD5_Update | 102 | * #define HASH_UPDATE MD5_Update |
diff --git a/src/lib/libcrypto/md4/md4.h b/src/lib/libcrypto/md4/md4.h index 39ee8f5841..5d9b787a28 100644 --- a/src/lib/libcrypto/md4/md4.h +++ b/src/lib/libcrypto/md4/md4.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: md4.h,v 1.13 2014/07/10 22:45:57 jsing Exp $ */ | 1 | /* $OpenBSD: md4.h,v 1.14 2014/10/20 13:06:54 bcook Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -73,8 +73,7 @@ extern "C" { | |||
73 | 73 | ||
74 | /* | 74 | /* |
75 | * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | 75 | * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
76 | * ! MD4_LONG has to be at least 32 bits wide. If it's wider, then ! | 76 | * ! MD4_LONG has to be at least 32 bits wide. ! |
77 | * ! MD4_LONG_LOG2 has to be defined along. ! | ||
78 | * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | 77 | * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
79 | */ | 78 | */ |
80 | 79 | ||
diff --git a/src/lib/libcrypto/md4/md4_locl.h b/src/lib/libcrypto/md4/md4_locl.h index bfc45727ac..efe0ec83a7 100644 --- a/src/lib/libcrypto/md4/md4_locl.h +++ b/src/lib/libcrypto/md4/md4_locl.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: md4_locl.h,v 1.6 2014/08/18 19:11:48 bcook Exp $ */ | 1 | /* $OpenBSD: md4_locl.h,v 1.7 2014/10/20 13:06:54 bcook Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -61,10 +61,6 @@ | |||
61 | #include <openssl/opensslconf.h> | 61 | #include <openssl/opensslconf.h> |
62 | #include <openssl/md4.h> | 62 | #include <openssl/md4.h> |
63 | 63 | ||
64 | #ifndef MD4_LONG_LOG2 | ||
65 | #define MD4_LONG_LOG2 2 /* default to 32 bits */ | ||
66 | #endif | ||
67 | |||
68 | void md4_block_data_order (MD4_CTX *c, const void *p,size_t num); | 64 | void md4_block_data_order (MD4_CTX *c, const void *p,size_t num); |
69 | 65 | ||
70 | #define DATA_ORDER_IS_LITTLE_ENDIAN | 66 | #define DATA_ORDER_IS_LITTLE_ENDIAN |
diff --git a/src/lib/libcrypto/md5/md5.h b/src/lib/libcrypto/md5/md5.h index 89e4b7f5ee..e2c511c7c5 100644 --- a/src/lib/libcrypto/md5/md5.h +++ b/src/lib/libcrypto/md5/md5.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: md5.h,v 1.19 2014/07/13 14:13:27 beck Exp $ */ | 1 | /* $OpenBSD: md5.h,v 1.20 2014/10/20 13:06:54 bcook Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -76,8 +76,7 @@ extern "C" { | |||
76 | 76 | ||
77 | /* | 77 | /* |
78 | * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | 78 | * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
79 | * ! MD5_LONG has to be at least 32 bits wide. If it's wider, then ! | 79 | * ! MD5_LONG has to be at least 32 bits wide. ! |
80 | * ! MD5_LONG_LOG2 has to be defined along. ! | ||
81 | * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | 80 | * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
82 | */ | 81 | */ |
83 | 82 | ||
diff --git a/src/lib/libcrypto/md5/md5_locl.h b/src/lib/libcrypto/md5/md5_locl.h index 9aaed18d7f..00c5a67e31 100644 --- a/src/lib/libcrypto/md5/md5_locl.h +++ b/src/lib/libcrypto/md5/md5_locl.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: md5_locl.h,v 1.12 2014/08/18 19:11:48 bcook Exp $ */ | 1 | /* $OpenBSD: md5_locl.h,v 1.13 2014/10/20 13:06:54 bcook Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -63,10 +63,6 @@ | |||
63 | 63 | ||
64 | #include <openssl/md5.h> | 64 | #include <openssl/md5.h> |
65 | 65 | ||
66 | #ifndef MD5_LONG_LOG2 | ||
67 | #define MD5_LONG_LOG2 2 /* default to 32 bits */ | ||
68 | #endif | ||
69 | |||
70 | #ifdef MD5_ASM | 66 | #ifdef MD5_ASM |
71 | # if defined(__i386) || defined(__i386__) || defined(_M_IX86) || defined(__INTEL__) || \ | 67 | # if defined(__i386) || defined(__i386__) || defined(_M_IX86) || defined(__INTEL__) || \ |
72 | defined(__x86_64) || defined(__x86_64__) || defined(_M_AMD64) || defined(_M_X64) | 68 | defined(__x86_64) || defined(__x86_64__) || defined(_M_AMD64) || defined(_M_X64) |
diff --git a/src/lib/libcrypto/ripemd/rmd_locl.h b/src/lib/libcrypto/ripemd/rmd_locl.h index 0504d048bd..54cce5b645 100644 --- a/src/lib/libcrypto/ripemd/rmd_locl.h +++ b/src/lib/libcrypto/ripemd/rmd_locl.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: rmd_locl.h,v 1.11 2014/08/18 19:11:48 bcook Exp $ */ | 1 | /* $OpenBSD: rmd_locl.h,v 1.12 2014/10/20 13:06:54 bcook Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -61,10 +61,6 @@ | |||
61 | #include <openssl/opensslconf.h> | 61 | #include <openssl/opensslconf.h> |
62 | #include <openssl/ripemd.h> | 62 | #include <openssl/ripemd.h> |
63 | 63 | ||
64 | #ifndef RIPEMD160_LONG_LOG2 | ||
65 | #define RIPEMD160_LONG_LOG2 2 /* default to 32 bits */ | ||
66 | #endif | ||
67 | |||
68 | /* | 64 | /* |
69 | * DO EXAMINE COMMENTS IN crypto/md5/md5_locl.h & crypto/md5/md5_dgst.c | 65 | * DO EXAMINE COMMENTS IN crypto/md5/md5_locl.h & crypto/md5/md5_dgst.c |
70 | * FOR EXPLANATIONS ON FOLLOWING "CODE." | 66 | * FOR EXPLANATIONS ON FOLLOWING "CODE." |
diff --git a/src/lib/libcrypto/sha/sha.h b/src/lib/libcrypto/sha/sha.h index e4fdae9788..d890175159 100644 --- a/src/lib/libcrypto/sha/sha.h +++ b/src/lib/libcrypto/sha/sha.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: sha.h,v 1.19 2014/07/13 14:13:27 beck Exp $ */ | 1 | /* $OpenBSD: sha.h,v 1.20 2014/10/20 13:06:54 bcook Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -76,8 +76,7 @@ extern "C" { | |||
76 | 76 | ||
77 | /* | 77 | /* |
78 | * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | 78 | * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
79 | * ! SHA_LONG has to be at least 32 bits wide. If it's wider, then ! | 79 | * ! SHA_LONG has to be at least 32 bits wide. ! |
80 | * ! SHA_LONG_LOG2 has to be defined along. ! | ||
81 | * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | 80 | * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
82 | */ | 81 | */ |
83 | 82 | ||
diff --git a/src/lib/libssl/src/crypto/md32_common.h b/src/lib/libssl/src/crypto/md32_common.h index 24d003e774..603b3d5fbe 100644 --- a/src/lib/libssl/src/crypto/md32_common.h +++ b/src/lib/libssl/src/crypto/md32_common.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: md32_common.h,v 1.18 2014/08/18 19:11:48 bcook Exp $ */ | 1 | /* $OpenBSD: md32_common.h,v 1.19 2014/10/20 13:06:54 bcook Exp $ */ |
2 | /* ==================================================================== | 2 | /* ==================================================================== |
3 | * Copyright (c) 1999-2007 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 1999-2007 The OpenSSL Project. All rights reserved. |
4 | * | 4 | * |
@@ -64,8 +64,7 @@ | |||
64 | * HASH_CBLOCK | 64 | * HASH_CBLOCK |
65 | * size of a unit chunk HASH_BLOCK operates on. | 65 | * size of a unit chunk HASH_BLOCK operates on. |
66 | * HASH_LONG | 66 | * HASH_LONG |
67 | * has to be at lest 32 bit wide, if it's wider, then | 67 | * has to be at least 32 bit wide. |
68 | * HASH_LONG_LOG2 *has to* be defined along | ||
69 | * HASH_CTX | 68 | * HASH_CTX |
70 | * context structure that at least contains following | 69 | * context structure that at least contains following |
71 | * members: | 70 | * members: |
@@ -98,7 +97,6 @@ | |||
98 | * #define DATA_ORDER_IS_LITTLE_ENDIAN | 97 | * #define DATA_ORDER_IS_LITTLE_ENDIAN |
99 | * | 98 | * |
100 | * #define HASH_LONG MD5_LONG | 99 | * #define HASH_LONG MD5_LONG |
101 | * #define HASH_LONG_LOG2 MD5_LONG_LOG2 | ||
102 | * #define HASH_CTX MD5_CTX | 100 | * #define HASH_CTX MD5_CTX |
103 | * #define HASH_CBLOCK MD5_CBLOCK | 101 | * #define HASH_CBLOCK MD5_CBLOCK |
104 | * #define HASH_UPDATE MD5_Update | 102 | * #define HASH_UPDATE MD5_Update |
diff --git a/src/lib/libssl/src/crypto/md4/md4.h b/src/lib/libssl/src/crypto/md4/md4.h index 39ee8f5841..5d9b787a28 100644 --- a/src/lib/libssl/src/crypto/md4/md4.h +++ b/src/lib/libssl/src/crypto/md4/md4.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: md4.h,v 1.13 2014/07/10 22:45:57 jsing Exp $ */ | 1 | /* $OpenBSD: md4.h,v 1.14 2014/10/20 13:06:54 bcook Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -73,8 +73,7 @@ extern "C" { | |||
73 | 73 | ||
74 | /* | 74 | /* |
75 | * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | 75 | * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
76 | * ! MD4_LONG has to be at least 32 bits wide. If it's wider, then ! | 76 | * ! MD4_LONG has to be at least 32 bits wide. ! |
77 | * ! MD4_LONG_LOG2 has to be defined along. ! | ||
78 | * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | 77 | * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
79 | */ | 78 | */ |
80 | 79 | ||
diff --git a/src/lib/libssl/src/crypto/md4/md4_locl.h b/src/lib/libssl/src/crypto/md4/md4_locl.h index bfc45727ac..efe0ec83a7 100644 --- a/src/lib/libssl/src/crypto/md4/md4_locl.h +++ b/src/lib/libssl/src/crypto/md4/md4_locl.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: md4_locl.h,v 1.6 2014/08/18 19:11:48 bcook Exp $ */ | 1 | /* $OpenBSD: md4_locl.h,v 1.7 2014/10/20 13:06:54 bcook Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -61,10 +61,6 @@ | |||
61 | #include <openssl/opensslconf.h> | 61 | #include <openssl/opensslconf.h> |
62 | #include <openssl/md4.h> | 62 | #include <openssl/md4.h> |
63 | 63 | ||
64 | #ifndef MD4_LONG_LOG2 | ||
65 | #define MD4_LONG_LOG2 2 /* default to 32 bits */ | ||
66 | #endif | ||
67 | |||
68 | void md4_block_data_order (MD4_CTX *c, const void *p,size_t num); | 64 | void md4_block_data_order (MD4_CTX *c, const void *p,size_t num); |
69 | 65 | ||
70 | #define DATA_ORDER_IS_LITTLE_ENDIAN | 66 | #define DATA_ORDER_IS_LITTLE_ENDIAN |
diff --git a/src/lib/libssl/src/crypto/md5/md5.h b/src/lib/libssl/src/crypto/md5/md5.h index 89e4b7f5ee..e2c511c7c5 100644 --- a/src/lib/libssl/src/crypto/md5/md5.h +++ b/src/lib/libssl/src/crypto/md5/md5.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: md5.h,v 1.19 2014/07/13 14:13:27 beck Exp $ */ | 1 | /* $OpenBSD: md5.h,v 1.20 2014/10/20 13:06:54 bcook Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -76,8 +76,7 @@ extern "C" { | |||
76 | 76 | ||
77 | /* | 77 | /* |
78 | * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | 78 | * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
79 | * ! MD5_LONG has to be at least 32 bits wide. If it's wider, then ! | 79 | * ! MD5_LONG has to be at least 32 bits wide. ! |
80 | * ! MD5_LONG_LOG2 has to be defined along. ! | ||
81 | * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | 80 | * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
82 | */ | 81 | */ |
83 | 82 | ||
diff --git a/src/lib/libssl/src/crypto/md5/md5_locl.h b/src/lib/libssl/src/crypto/md5/md5_locl.h index 9aaed18d7f..00c5a67e31 100644 --- a/src/lib/libssl/src/crypto/md5/md5_locl.h +++ b/src/lib/libssl/src/crypto/md5/md5_locl.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: md5_locl.h,v 1.12 2014/08/18 19:11:48 bcook Exp $ */ | 1 | /* $OpenBSD: md5_locl.h,v 1.13 2014/10/20 13:06:54 bcook Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -63,10 +63,6 @@ | |||
63 | 63 | ||
64 | #include <openssl/md5.h> | 64 | #include <openssl/md5.h> |
65 | 65 | ||
66 | #ifndef MD5_LONG_LOG2 | ||
67 | #define MD5_LONG_LOG2 2 /* default to 32 bits */ | ||
68 | #endif | ||
69 | |||
70 | #ifdef MD5_ASM | 66 | #ifdef MD5_ASM |
71 | # if defined(__i386) || defined(__i386__) || defined(_M_IX86) || defined(__INTEL__) || \ | 67 | # if defined(__i386) || defined(__i386__) || defined(_M_IX86) || defined(__INTEL__) || \ |
72 | defined(__x86_64) || defined(__x86_64__) || defined(_M_AMD64) || defined(_M_X64) | 68 | defined(__x86_64) || defined(__x86_64__) || defined(_M_AMD64) || defined(_M_X64) |
diff --git a/src/lib/libssl/src/crypto/ripemd/rmd_locl.h b/src/lib/libssl/src/crypto/ripemd/rmd_locl.h index 0504d048bd..54cce5b645 100644 --- a/src/lib/libssl/src/crypto/ripemd/rmd_locl.h +++ b/src/lib/libssl/src/crypto/ripemd/rmd_locl.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: rmd_locl.h,v 1.11 2014/08/18 19:11:48 bcook Exp $ */ | 1 | /* $OpenBSD: rmd_locl.h,v 1.12 2014/10/20 13:06:54 bcook Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -61,10 +61,6 @@ | |||
61 | #include <openssl/opensslconf.h> | 61 | #include <openssl/opensslconf.h> |
62 | #include <openssl/ripemd.h> | 62 | #include <openssl/ripemd.h> |
63 | 63 | ||
64 | #ifndef RIPEMD160_LONG_LOG2 | ||
65 | #define RIPEMD160_LONG_LOG2 2 /* default to 32 bits */ | ||
66 | #endif | ||
67 | |||
68 | /* | 64 | /* |
69 | * DO EXAMINE COMMENTS IN crypto/md5/md5_locl.h & crypto/md5/md5_dgst.c | 65 | * DO EXAMINE COMMENTS IN crypto/md5/md5_locl.h & crypto/md5/md5_dgst.c |
70 | * FOR EXPLANATIONS ON FOLLOWING "CODE." | 66 | * FOR EXPLANATIONS ON FOLLOWING "CODE." |
diff --git a/src/lib/libssl/src/crypto/sha/sha.h b/src/lib/libssl/src/crypto/sha/sha.h index e4fdae9788..d890175159 100644 --- a/src/lib/libssl/src/crypto/sha/sha.h +++ b/src/lib/libssl/src/crypto/sha/sha.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: sha.h,v 1.19 2014/07/13 14:13:27 beck Exp $ */ | 1 | /* $OpenBSD: sha.h,v 1.20 2014/10/20 13:06:54 bcook Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -76,8 +76,7 @@ extern "C" { | |||
76 | 76 | ||
77 | /* | 77 | /* |
78 | * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | 78 | * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
79 | * ! SHA_LONG has to be at least 32 bits wide. If it's wider, then ! | 79 | * ! SHA_LONG has to be at least 32 bits wide. ! |
80 | * ! SHA_LONG_LOG2 has to be defined along. ! | ||
81 | * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | 80 | * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! |
82 | */ | 81 | */ |
83 | 82 | ||