#DOCUMENTATION by cg
authorClaus Gittinger <cg@exept.de>
Sun, 17 Mar 2019 17:43:25 +0100
changeset 4873 86aab8ca867c
parent 4872 002feff60199
child 4874 9ead0ae602b2
#DOCUMENTATION by cg class: CRC32Stream class comment/format in: #documentation
CRC32Stream.st
--- 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).