X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=install.texi;h=fec94ebcfe5ecdc1ffa32af76d555eafe82e1626;hb=eb3c28c5170bd08b047cba754ae18eb268c227b6;hp=28eaba3f94e9d63c19e313bc02096d2e02af777a;hpb=30218aec3f41a7e53d71f30eff8f88b83ba0c4a1;p=gogost.git diff --git a/install.texi b/install.texi index 28eaba3..fec94eb 100644 --- a/install.texi +++ b/install.texi @@ -6,21 +6,15 @@ website and, for example, run tests with benchmarks: @example $ [fetch|wget] http://www.gogost.cypherpunks.ru/gogost-@value{VERSION}.tar.zst -$ [fetch|wget] http://www.gogost.cypherpunks.ru/gogost-@value{VERSION}.tar.zst.sig -$ gpg --verify gogost-@value{VERSION}.tar.zst.sig gogost-@value{VERSION}.tar.zst +$ [fetch|wget] http://www.gogost.cypherpunks.ru/gogost-@value{VERSION}.tar.zst.asc +$ gpg --verify gogost-@value{VERSION}.tar.zst.asc gogost-@value{VERSION}.tar.zst $ zstd --decompress --stdout gogost-@value{VERSION}.tar.zst | tar xf - $ cd gogost-@value{VERSION} -$ redo all +$ go build -mod=vendor -o streebog256 ./cmd/streebog256 $ echo hello world | ./streebog256 f72018189a5cfb803dbe1f2149cf554c40093d8e7f81c21e08ac5bcd09d9934d @end example -It uses @url{http://cr.yp.to/redo.html, redo} build system for that -examples. You can use either dozen of various implementations, or at -least minimalistic POSIX shell @command{contrib/do} (just replace -@command{redo} with @command{contrib/do} in the example above) included -in tarball. - @include download.texi And then you can include its source code in your project for example @@ -80,26 +74,45 @@ $ gpg --auto-key-locate wkd --locate-keys gogost at cypherpunks dot ru @end itemize -GoGOST is also @command{go get}-able. For example to use +GoGOST is also @command{go get}-able. For example to install @command{streebog256} utility: @example -$ go get go.cypherpunks.ru/gogost/cmd/streebog256 +$ go install go.cypherpunks.ru/gogost/v5/cmd/streebog256@@latest @end example -If you have problems with @code{*.golang.org}'s inability to verify -authenticity of @code{go.cypherpunks.ru} TLS connection, then you can -disable their usage by setting @env{GOPRIVATE=go.cypherpunks.ru}. You -can override CA certificate file path with @env{SSL_CERT_FILE} and -@env{GIT_SSL_CAINFO} environment variables. +@code{go.cypherpunks.ru} uses @code{ca.cypherpunks.ru} X.509 CA +authority, that may complicate installation: + +@itemize + +@item Go's default @code{proxy.golang.org} and @code{sum.golang.org} +services won't be able to verify @code{go.cypherpunks.ru}'s TLS +authenticity, because there are no common trust anchors. You can skip +their usage by setting @env{$GOPRIVATE=go.cypherpunks.ru}. + +@item You can (temporarily) override CA certificate bundle during installation: -Also you can use @code{replace} feature inside your @file{go.mod}, like: +@example +$ [fetch|wget] http://www.ca.cypherpunks.ru/cert.pem +$ [fetch|wget] http://www.ca.cypherpunks.ru/cert.pem.asc +$ gpg --auto-key-locate dane --locate-keys stargrave at stargrave dot org +$ gpg --auto-key-locate wkd --locate-keys stargrave at gnupg dot net +$ gpg --verify cert.pem.asc +$ SSL_CERT_FILE=`pwd`/cert.pem GIT_SSL_CAINFO=`pwd`/cert.pem go get \ + go.cypherpunks.ru/gogost/v5 +@end example + +@item You can unpack tarball somewhere and use @code{replace} command in +your local @file{go.mod}: @example require go.cypherpunks.ru/gogost/v5 v@value{VERSION} replace go.cypherpunks.ru/gogost/v5 => /path/to/gogost-@value{VERSION} @end example +@end itemize + You can obtain development source code with @command{git clone git://git.cypherpunks.ru/gogost.git} (also you can use @url{https://git.cypherpunks.ru/gogost.git}).