From: Sergey Matveev Date: Thu, 3 Oct 2019 12:36:53 +0000 (+0300) Subject: Let "hello world" string be the same in every example X-Git-Tag: v4.2.0~7 X-Git-Url: http://www.git.cypherpunks.ru/?p=gogost.git;a=commitdiff_plain;h=830040ac890e529af5f4b58574a6835d2b91e493 Let "hello world" string be the same in every example --- diff --git a/INSTALL b/INSTALL index bf0b19c..690ba98 100644 --- 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: diff --git a/download.texi b/download.texi index cacd24b..bfdc5bc 100644 --- a/download.texi +++ b/download.texi @@ -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