]> Cypherpunks.ru repositories - gogost.git/blobdiff - cmd/streebog256/main.go
Update namespace major version
[gogost.git] / cmd / streebog256 / main.go
index efaae810553c8e8265f2a600f1e34d39eda65965..b45678a40d47396df05fe73e8f8ca1a3e65c7801 100644 (file)
@@ -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)))
 }