]> Cypherpunks.ru repositories - gogost.git/commitdiff
Placeholders for hash registration in crypto/ library
authorSergey Matveev <stargrave@stargrave.org>
Fri, 26 Jul 2019 10:24:06 +0000 (13:24 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Fri, 26 Jul 2019 10:24:06 +0000 (13:24 +0300)
src/cypherpunks.ru/gogost/gost34112012256/hash.go
src/cypherpunks.ru/gogost/gost34112012512/hash.go

index c5d655fa883b33ca12283c0d52febae7485a79f0..6399ad5b8cbc5a8dc01a9622d5c3d3ed2fae0abe 100644 (file)
@@ -29,6 +29,12 @@ const (
        Size      = 32
 )
 
+/*
+func init() {
+       crypto.RegisterHash(crypto.GOSTR34112012256, New)
+}
+*/
+
 func New() hash.Hash {
        return gost34112012.New(32)
 }
index c6a708f6e358ccc3185e661d94ed8fa69a7b145f..b3e1ed3bbb06cef05905d6145e53830341507c8f 100644 (file)
@@ -29,6 +29,12 @@ const (
        Size      = 64
 )
 
+/*
+func init() {
+       crypto.RegisterHash(crypto.GOSTR34112012512, New)
+}
+*/
+
 func New() hash.Hash {
        return gost34112012.New(64)
 }