github.com/chain5j/chain5j-pkg@v1.0.7/crypto/hashalg/sha3/register.go (about) 1 // Copyright 2014 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 //go:build go1.4 6 // +build go1.4 7 8 package sha3 9 10 import ( 11 "crypto" 12 ) 13 14 func init() { 15 crypto.RegisterHash(crypto.SHA3_224, New224) 16 crypto.RegisterHash(crypto.SHA3_256, New256) 17 crypto.RegisterHash(crypto.SHA3_384, New384) 18 crypto.RegisterHash(crypto.SHA3_512, New512) 19 }