]> Cypherpunks.ru repositories - gogost.git/blobdiff - src/cypherpunks.ru/gogost/gost34112012256/hash.go
Forbid any later GNU GPL versions autousage
[gogost.git] / src / cypherpunks.ru / gogost / gost34112012256 / hash.go
index bc0c662223db80548e9606fe46ec385ae806b182..30e308bbf9920e0b06c52b054fd7e82505e5c555 100644 (file)
@@ -3,8 +3,7 @@
 //
 // 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
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
+// the Free Software Foundation, version 3 of the License.
 //
 // This program is distributed in the hope that it will be useful,
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -19,6 +18,8 @@
 package gost34112012256
 
 import (
+       "hash"
+
        "cypherpunks.ru/gogost/internal/gost34112012"
 )
 
@@ -27,6 +28,12 @@ const (
        Size      = 32
 )
 
-func New() *gost34112012.Hash {
+/*
+func init() {
+       crypto.RegisterHash(crypto.GOSTR34112012256, New)
+}
+*/
+
+func New() hash.Hash {
        return gost34112012.New(32)
 }