From: Sergey Matveev Date: Fri, 26 Jul 2019 10:24:06 +0000 (+0300) Subject: Placeholders for hash registration in crypto/ library X-Git-Tag: 4.0~7 X-Git-Url: http://www.git.cypherpunks.ru/?p=gogost.git;a=commitdiff_plain;h=1486845463092bbcca3ed55f61e96edf926e9116 Placeholders for hash registration in crypto/ library --- diff --git a/src/cypherpunks.ru/gogost/gost34112012256/hash.go b/src/cypherpunks.ru/gogost/gost34112012256/hash.go index c5d655f..6399ad5 100644 --- a/src/cypherpunks.ru/gogost/gost34112012256/hash.go +++ b/src/cypherpunks.ru/gogost/gost34112012256/hash.go @@ -29,6 +29,12 @@ const ( Size = 32 ) +/* +func init() { + crypto.RegisterHash(crypto.GOSTR34112012256, New) +} +*/ + func New() hash.Hash { return gost34112012.New(32) } diff --git a/src/cypherpunks.ru/gogost/gost34112012512/hash.go b/src/cypherpunks.ru/gogost/gost34112012512/hash.go index c6a708f..b3e1ed3 100644 --- a/src/cypherpunks.ru/gogost/gost34112012512/hash.go +++ b/src/cypherpunks.ru/gogost/gost34112012512/hash.go @@ -29,6 +29,12 @@ const ( Size = 64 ) +/* +func init() { + crypto.RegisterHash(crypto.GOSTR34112012512, New) +} +*/ + func New() hash.Hash { return gost34112012.New(64) }