]> Cypherpunks.ru repositories - gogost.git/blobdiff - cmd/streebog512/main.go
Update namespace major version
[gogost.git] / cmd / streebog512 / main.go
index d70506447b021b1cbf4920c4f6886fc5cec89557..5c51e6ec7c1f77101053258360158245aa05b652 100644 (file)
@@ -23,8 +23,8 @@ import (
        "io"
        "os"
 
-       "go.cypherpunks.ru/gogost/v4"
-       "go.cypherpunks.ru/gogost/v4/gost34112012512"
+       "go.cypherpunks.ru/gogost/v5"
+       "go.cypherpunks.ru/gogost/v5/gost34112012512"
 )
 
 var (
@@ -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)))
 }