X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=cmd%2Fstreebog512%2Fmain.go;h=052592f2b6efe6a700e88a40971a95e800524dc5;hb=9f3355e3239fed2b0110b0724e7ba1ed509b8a19;hp=41d0c6a972b3515a8cfc9984e7f53475fa0feae6;hpb=c07494bbd559b9d00f391e28cfd070e18afe9900;p=gogost.git diff --git a/cmd/streebog512/main.go b/cmd/streebog512/main.go index 41d0c6a..052592f 100644 --- a/cmd/streebog512/main.go +++ b/cmd/streebog512/main.go @@ -1,5 +1,5 @@ // GoGOST -- Pure Go GOST cryptographic functions library -// Copyright (C) 2015-2019 Sergey Matveev +// Copyright (C) 2015-2020 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 @@ -38,6 +38,8 @@ func main() { return } h := gost34112012512.New() - io.Copy(h, os.Stdin) + if _, err := io.Copy(h, os.Stdin); err != nil { + panic(err) + } fmt.Println(hex.EncodeToString(h.Sum(nil))) }