Previous: , Up: GoGOST  


Download

Preferable way is to download tarball with the signature from website and, for example, run tests with benchmarks:

$ [fetch|wget] http://www.gogost.cypherpunks.su/gogost-6.1.0.tar.zst
$ [fetch|wget] http://www.gogost.cypherpunks.su/gogost-6.1.0.tar.zst.{asc,sig}
[verify signature]
$ tar xf gogost-6.1.0.tar.zst
$ cd gogost-6.1.0
$ go build -o streebog256 ./cmd/streebog256
$ echo hello world | ./streebog256
f72018189a5cfb803dbe1f2149cf554c40093d8e7f81c21e08ac5bcd09d9934d
VersionDateSizeTarball
6.1.02025-02-1282 KiBmeta4 tar pgp ssh
6.0.22025-01-1785 KiBmeta4 tar pgp ssh
6.0.12024-08-0685 KiBmeta4 tar pgp ssh
6.0.02024-07-2385 KiBmeta4 tar pgp ssh
5.15.02024-07-1685 KiBmeta4 tar pgp ssh
5.14.12024-04-2267 KiBmeta4 tar pgp ssh
5.14.02023-12-0866 KiBmeta4 tar pgp ssh
5.13.02023-08-0765 KiBmeta4 tar pgp ssh
5.12.02023-08-0365 KiBmeta4 tar pgp ssh
5.11.02023-06-1470 KiBmeta4 tar pgp ssh
5.10.02023-04-0570 KiBmeta4 tar pgp ssh
5.9.12022-11-0267 KiBmeta4 tar pgp ssh
5.9.02021-11-1667 KiBmeta4 tar pgp ssh
5.8.02021-10-0867 KiBmeta4 tar pgp ssh
5.7.12021-10-0466 KiBmeta4 tar pgp ssh
5.7.02021-08-1761 KiBmeta4 tar pgp ssh
5.6.02021-04-0261 KiBmeta4 tar pgp ssh
5.5.02021-01-2561 KiBmeta4 tar pgp ssh
5.4.02021-01-2460 KiBmeta4 tar pgp ssh
5.3.02021-01-2161 KiBmeta4 tar pgp ssh
5.2.02021-01-2160 KiBmeta4 tar pgp ssh
5.1.12021-01-1660 KiBmeta4 tar pgp ssh
5.1.02020-10-0763 KiBmeta4 tar pgp ssh
5.0.22020-09-0562 KiBmeta4 tar pgp ssh
5.0.12020-09-0562 KiBmeta4 tar pgp ssh
5.0.02020-09-0462 KiBmeta4 tar pgp ssh
4.3.12020-09-0163 KiBmeta4 tar pgp ssh
4.3.02020-08-0258 KiBmeta4 tar pgp ssh
4.2.42020-06-2458 KiBmeta4 tar pgp ssh
4.2.32020-01-2258 KiBmeta4 tar pgp ssh
4.2.22020-01-0758 KiBmeta4 tar pgp ssh
4.2.12019-12-1857 KiBmeta4 tar pgp ssh
4.2.02019-10-1857 KiBmeta4 tar pgp ssh
4.1.02019-10-0355 KiBmeta4 tar pgp ssh
4.02019-08-1256 KiBmeta4 tar pgp ssh
3.02019-07-1947 KiBmeta4 tar pgp ssh
2.02016-11-2639 KiBmeta4 tar pgp ssh
1.22016-11-1334 KiBmeta4 tar pgp ssh
1.12016-10-0433 KiBmeta4 tar pgp ssh

And then you can include its source code in your project for example like this:

$ mkdir -p myproj/vendor/go.cypherpunks.su/gogost
$ mv gogost-6.1.0 myproj/vendor/go.cypherpunks.su/gogost/v6
$ cd myproj
$ cat >main.go <<EOF
package main

import (
    "encoding/hex"
    "fmt"

    "go.cypherpunks.su/gogost/v6/gost34112012256"
)

func main() {
    h := gost34112012256.New()
    h.Write([]byte("hello world\n"))
    fmt.Println(hex.EncodeToString(h.Sum(nil)))
}
EOF
$ go run main.go
f72018189a5cfb803dbe1f2149cf554c40093d8e7f81c21e08ac5bcd09d9934d

You have to verify downloaded tarballs authenticity to be sure that you retrieved trusted and untampered software. There are two options:

OpenPGP .asc signature

Use GNU Privacy Guard free software implementation. For the very first time it is necessary to get signing public key and import it. It is provided here, but you should check alternate resources.

pub   rsa2048/0x82343436696FC85A 2016-09-13
      CEBD 1282 2C46 9C02 A81A  0467 8234 3436 696F C85A
uid   GoGOST releases <gogost at cypherpunks dot su>
$ gpg --auto-key-locate dane --locate-keys gogost at cypherpunks dot su
$ gpg --auto-key-locate  wkd --locate-keys gogost at cypherpunks dot su
OpenSSH .sig signature

Public key and its OpenPGP signature made with the key above. Its fingerprint: SHA256:u8X9rPDOhxpyzGs/IugbxXbDeOu/0AttKY+LGAvHBH0.

$ ssh-keygen -Y verify -f PUBKEY-SSH.pub -I gogost@cypherpunks.su -n file \
    -s gogost-6.1.0.tar.zst.sig <gogost-6.1.0.tar.zst

GoGOST is also go get-able. For example to install streebog256 utility:

$ go install go.cypherpunks.su/gogost/v6/cmd/streebog256@latest

Aware that go.cypherpunks.su uses ca.cypherpunks.su X.509 certificate authority.

You can obtain development source code with git clone git://git.cypherpunks.su/gogost.git. You can also use anongit@master.git.stargrave.org:cypherpunks.su/gogost.git, anongit@slave.git.stargrave.org:cypherpunks.su/gogost.git, anongit@master.git.cypherpunks.su:cypherpunks.su/gogost.git, anongit@slave.git.cypherpunks.su:cypherpunks.su/gogost.git, git://git.stargrave.org/gogost.git, git://y.git.stargrave.org/gogost.git, git://y.git.cypherpunks.su/gogost.git URLs instead.


Previous: News, Up: GoGOST