From 1486845463092bbcca3ed55f61e96edf926e9116 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Fri, 26 Jul 2019 13:24:06 +0300 Subject: [PATCH] Placeholders for hash registration in crypto/ library --- src/cypherpunks.ru/gogost/gost34112012256/hash.go | 6 ++++++ src/cypherpunks.ru/gogost/gost34112012512/hash.go | 6 ++++++ 2 files changed, 12 insertions(+) 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) } -- 2.44.0