]> Cypherpunks.ru repositories - gogost.git/commitdiff
Let "hello world" string be the same in every example
authorSergey Matveev <stargrave@stargrave.org>
Thu, 3 Oct 2019 12:36:53 +0000 (15:36 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Thu, 3 Oct 2019 12:36:53 +0000 (15:36 +0300)
INSTALL
download.texi

diff --git a/INSTALL b/INSTALL
index bf0b19cda674623f50ca1656809427b89db2a265..690ba98156248f97362ebc8cba233f39329b29a9 100644 (file)
--- a/INSTALL
+++ b/INSTALL
@@ -28,12 +28,12 @@ like this:
 
     func main() {
         h := gost34112012256.New()
-        h.Write([]byte("hello world"))
+        h.Write([]byte("hello world\n"))
         fmt.Println(hex.EncodeToString(h.Sum(nil)))
     }
     EOF
     $ go run main.go
-    c600fd9dd049cf8abd2f5b32e840d2cb0e41ea44de1c155dcd88dc84fe58a855
+    f72018189a5cfb803dbe1f2149cf554c40093d8e7f81c21e08ac5bcd09d9934d
 
 GoGOST is also go-get-able. For example to use streebog256 utility:
 
index cacd24bfdf7ae01362d77dc8436d92aeeb330c25..bfdc5bc016663e5e75aac49799e8aacd3b888b2e 100644 (file)
@@ -34,12 +34,12 @@ import (
 
 func main() {
     h := gost34112012256.New()
-    h.Write([]byte("hello world"))
+    h.Write([]byte("hello world\n"))
     fmt.Println(hex.EncodeToString(h.Sum(nil)))
 }
 EOF
 $ go run main.go
-c600fd9dd049cf8abd2f5b32e840d2cb0e41ea44de1c155dcd88dc84fe58a855
+f72018189a5cfb803dbe1f2149cf554c40093d8e7f81c21e08ac5bcd09d9934d
 @end verbatim
 
 GoGOST is also @command{go get}-able. For example to use