6 Preferable way is to download tarball with the signature from
7 website and, for example, run tests with benchmarks:
10 $ [fetch|wget] http://www.gogost.cypherpunks.ru/gogost-@value{VERSION}.tar.xz
11 $ [fetch|wget] http://www.gogost.cypherpunks.ru/gogost-@value{VERSION}.tar.xz.sig
12 $ gpg --verify gogost-@value{VERSION}.tar.xz.sig gogost-@value{VERSION}.tar.xz
13 $ xz --decompress --stdout gogost-@value{VERSION}.tar.xz | tar xf -
14 $ cd gogost-@value{VERSION}
16 $ echo hello world | ./streebog256
17 f72018189a5cfb803dbe1f2149cf554c40093d8e7f81c21e08ac5bcd09d9934d
20 It uses @url{http://cr.yp.to/redo.html, redo} build system for that
21 examples. You can use either dozen of various implementations, or at
22 least minimalistic POSIX shell @command{contrib/do} (just replace
23 @command{redo} with @command{contrib/do} in the example above) included
26 @include download.texi
28 And then you can include its source code in your project for example
33 $ cp -r gogost-@value{VERSION}/src/go.cypherpunks.ru myproj/src
34 $ export GOPATH=$PWD/myproj
43 "go.cypherpunks.ru/gogost/v4/gost34112012256"
47 h := gost34112012256.New()
48 h.Write([]byte("hello world\n"))
49 fmt.Println(hex.EncodeToString(h.Sum(nil)))
53 f72018189a5cfb803dbe1f2149cf554c40093d8e7f81c21e08ac5bcd09d9934d
56 You @strong{have to} verify downloaded tarballs integrity and
57 authenticity to be sure that you retrieved trusted and untampered
58 software. @url{https://www.gnupg.org/, GNU Privacy Guard} is used
61 For the very first time it is necessary to get signing public key and
62 import it. It is provided below, but you should check alternative
66 pub rsa2048/0x82343436696FC85A 2016-09-13 [SC]
67 CEBD 1282 2C46 9C02 A81A 0467 8234 3436 696F C85A
68 uid GoGOST releases <gogost at cypherpunks dot ru>
73 @item @url{https://lists.cypherpunks.ru/mailman/listinfo/gost, gost} maillist
77 $ gpg --auto-key-locate dane --locate-keys gogost at cypherpunks dot ru
78 $ gpg --auto-key-locate wkd --locate-keys gogost at cypherpunks dot ru
82 @verbatiminclude PUBKEY.asc
86 GoGOST is also @command{go get}-able. For example to use
87 @command{streebog256} utility:
90 $ go get go.cypherpunks.ru/gogost/cmd/streebog256
93 @code{go.cypherpunks.ru} uses @url{http://www.ca.cypherpunks.ru/, ca.cypherpunks.ru}
94 certificate authority. If you have issues using either
95 @code{sum.golang.org} or @code{proxy.golang.org}, then you can disable
96 their usage with @env{GOPRIVATE=go.cypherpunks.ru/gogost} environment
99 Also you can use @code{replace} feature inside your @file{go.mod}, like:
102 require go.cypherpunks.ru/gogost/v4 v@value{VERSION}
103 replace go.cypherpunks.ru/gogost/v4 => /home/stargrave/gogost-@value{VERSION}/src/go.cypherpunks.ru/gogost/v4
106 You can obtain development source code with
107 @command{git clone git://git.cypherpunks.ru/gogost.git}.