X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=cmd%2Fstreebog256%2Fmain.go;h=9db7c477afbf138a497cd25cb48efe14801374bd;hb=9f3355e3239fed2b0110b0724e7ba1ed509b8a19;hp=972216802a90f0543407fa644e94e278c1c2a3c7;hpb=c07494bbd559b9d00f391e28cfd070e18afe9900;p=gogost.git diff --git a/cmd/streebog256/main.go b/cmd/streebog256/main.go index 9722168..9db7c47 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-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 := 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))) }