]> Cypherpunks.ru repositories - gogost.git/blobdiff - src/cypherpunks.ru/gogost/gost34112012256/hash.go
Placeholders for hash registration in crypto/ library
[gogost.git] / src / cypherpunks.ru / gogost / gost34112012256 / hash.go
index 7a37ff20a29a04abe31ce7011ade73f8ba208cda..6399ad5b8cbc5a8dc01a9622d5c3d3ed2fae0abe 100644 (file)
@@ -1,5 +1,5 @@
 // GoGOST -- Pure Go GOST cryptographic functions library
-// Copyright (C) 2015-2018 Sergey Matveev <stargrave@stargrave.org>
+// Copyright (C) 2015-2019 Sergey Matveev <stargrave@stargrave.org>
 //
 // 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 gost34112012256
 
 import (
+       "hash"
+
        "cypherpunks.ru/gogost/internal/gost34112012"
 )
 
@@ -27,6 +29,12 @@ const (
        Size      = 32
 )
 
-func New() *gost34112012.Hash {
+/*
+func init() {
+       crypto.RegisterHash(crypto.GOSTR34112012256, New)
+}
+*/
+
+func New() hash.Hash {
        return gost34112012.New(32)
 }