X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=cmd%2Fstreebog256%2Fmain.go;h=44822eae41092e394b3cf030efa1073cc0becb74;hb=5fc90f4d05f0515cc91dd9feceb813e2b753cbb7;hp=972216802a90f0543407fa644e94e278c1c2a3c7;hpb=c07494bbd559b9d00f391e28cfd070e18afe9900;p=gogost.git diff --git a/cmd/streebog256/main.go b/cmd/streebog256/main.go index 9722168..44822ea 100644 --- a/cmd/streebog256/main.go +++ b/cmd/streebog256/main.go @@ -1,5 +1,5 @@ // GoGOST -- Pure Go GOST cryptographic functions library -// Copyright (C) 2015-2019 Sergey Matveev +// Copyright (C) 2015-2022 Sergey Matveev // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by @@ -23,8 +23,8 @@ import ( "io" "os" - "go.cypherpunks.ru/gogost/v4" - "go.cypherpunks.ru/gogost/v4/gost34112012256" + "go.cypherpunks.ru/gogost/v5" + "go.cypherpunks.ru/gogost/v5/gost34112012256" ) var ( @@ -38,6 +38,8 @@ func main() { return } h := gost34112012256.New() - io.Copy(h, os.Stdin) + if _, err := io.Copy(h, os.Stdin); err != nil { + panic(err) + } fmt.Println(hex.EncodeToString(h.Sum(nil))) }