CRC32Stream.st
changeset 4873 86aab8ca867c
parent 4871 32729bea327d
child 4875 0ad684e3ac77
--- a/CRC32Stream.st	Sun Mar 17 17:43:17 2019 +0100
+++ b/CRC32Stream.st	Sun Mar 17 17:43:25 2019 +0100
@@ -78,6 +78,10 @@
 
 documentation
 "
+    Only use CRC to protect against communication errors;
+    DO NOT use CRC for cryptography, authentication, security, etc.
+    - use secure hashes for those instead.
+
     Standard CRC method as defined by ISO 3309 [ISO-3309] or ITU-T V.42 [ITU-T-V42].
     The default CRC polynomial employed is
 
@@ -92,9 +96,6 @@
         poly: 16r1edc6f41
         = x32 + x28 + x27 + x26 + x25 + x23 + x22 + x20 + x19 + x18 + x14 + x13 + x11 + x10 + x9 + x8 + x6 + 1
 
-    Only use CRC to protect against communication errors;
-    do NOT use CRC for cryptography - use SHA1Stream or MD5Stream instead.
-
     Notice that this CRC is also used with PNG images; 
     therefore, its performance directly affects png image processing (png write speed).