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