Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Smith <brian@briansmith.org>2015-03-11 18:25:20 +0300
committerAdam Langley <agl@google.com>2015-04-13 23:55:48 +0300
commitc82a00d8187133231707d5417a0d61db8dfd8b69 (patch)
treeb405d5cfb1eaa417189dff4944794314558e4078 /crypto/digest
parent8983a1da7b09d518b8a0b2dab6a859856c216b6f (diff)
Replace MD5 in examples with SHA-256.
Avoiding superflous references to MD5 makes it easier to audit the code to find unsafe uses of it. It also avoids subtly encouraging users to choose MD5 instead of a better alternative. Change-Id: Ic78eb5dfbf44aac39e4e4eb29050e3337c4445cc Reviewed-on: https://boringssl-review.googlesource.com/3926 Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'crypto/digest')
-rw-r--r--crypto/digest/md32_common.h16
1 files changed, 1 insertions, 15 deletions
diff --git a/crypto/digest/md32_common.h b/crypto/digest/md32_common.h
index 51508a6d..d7caba27 100644
--- a/crypto/digest/md32_common.h
+++ b/crypto/digest/md32_common.h
@@ -72,8 +72,7 @@ extern "C" {
* HASH_CBLOCK
* size of a unit chunk HASH_BLOCK operates on.
* HASH_LONG
- * has to be at lest 32 bit wide, if it's wider, then
- * HASH_LONG_LOG2 *has to* be defined along
+ * has to be at least 32 bit wide.
* HASH_CTX
* context structure that at least contains following
* members:
@@ -101,19 +100,6 @@ extern "C" {
* HASH_MAKE_STRING
* macro convering context variables to an ASCII hash string.
*
- * MD5 example:
- *
- * #define DATA_ORDER_IS_LITTLE_ENDIAN
- *
- * #define HASH_LONG MD5_LONG
- * #define HASH_LONG_LOG2 MD5_LONG_LOG2
- * #define HASH_CTX MD5_CTX
- * #define HASH_CBLOCK MD5_CBLOCK
- * #define HASH_UPDATE MD5_Update
- * #define HASH_TRANSFORM MD5_Transform
- * #define HASH_FINAL MD5_Final
- * #define HASH_BLOCK_DATA_ORDER md5_block_data_order
- *
* <appro@fy.chalmers.se>
*/