X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=src%2Fcypherpunks.ru%2Fgogost%2Fgost34112012512%2Fhash.go;h=b3e1ed3bbb06cef05905d6145e53830341507c8f;hb=1486845463092bbcca3ed55f61e96edf926e9116;hp=629629c3e27134fdb1a090e9a8d09656bcf68c8a;hpb=014be6ab0719643d1e2996a360ab0619124b7e0e;p=gogost.git diff --git a/src/cypherpunks.ru/gogost/gost34112012512/hash.go b/src/cypherpunks.ru/gogost/gost34112012512/hash.go index 629629c..b3e1ed3 100644 --- a/src/cypherpunks.ru/gogost/gost34112012512/hash.go +++ b/src/cypherpunks.ru/gogost/gost34112012512/hash.go @@ -1,5 +1,5 @@ // GoGOST -- Pure Go GOST cryptographic functions library -// Copyright (C) 2015-2017 Sergey Matveev +// Copyright (C) 2015-2019 Sergey Matveev // // 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 @@ -19,6 +19,8 @@ package gost34112012512 import ( + "hash" + "cypherpunks.ru/gogost/internal/gost34112012" ) @@ -27,6 +29,12 @@ const ( Size = 64 ) -func New() *gost34112012.Hash { +/* +func init() { + crypto.RegisterHash(crypto.GOSTR34112012512, New) +} +*/ + +func New() hash.Hash { return gost34112012.New(64) }