github.com/turingchain2020/turingchain@v1.1.21/common/crypto/sha3/register.go (about) 1 // Copyright Turing Corp. 2018 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 // Copyright 2014 The Go Authors. All rights reserved. 6 // Use of this source code is governed by a BSD-style 7 // license that can be found in the LICENSE file. 8 9 // +build go1.4 10 11 package sha3 12 13 import ( 14 "crypto" 15 ) 16 17 func init() { 18 crypto.RegisterHash(crypto.SHA3_224, New224) 19 crypto.RegisterHash(crypto.SHA3_256, New256) 20 crypto.RegisterHash(crypto.SHA3_384, New384) 21 crypto.RegisterHash(crypto.SHA3_512, New512) 22 }