X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=cmd%2Fstreebog256%2Fmain.go;h=9521415d50c015f7eb49668bd94ebd10b2ed7d92;hb=6d9056bfe4a2d69469a1e70f3bf08f89b377b06e;hp=efaae810553c8e8265f2a600f1e34d39eda65965;hpb=c40d1e5634cf6d540d908a57423f4b504e39f186;p=gogost.git diff --git a/cmd/streebog256/main.go b/cmd/streebog256/main.go index efaae81..9521415 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-2020 Sergey Matveev +// Copyright (C) 2015-2021 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))) }