register.go 413 B

123456789101112131415161718
  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. // +build go1.4
  5. package sha3
  6. import (
  7. "crypto"
  8. )
  9. func init() {
  10. crypto.RegisterHash(crypto.SHA3_224, New224)
  11. crypto.RegisterHash(crypto.SHA3_256, New256)
  12. crypto.RegisterHash(crypto.SHA3_384, New384)
  13. crypto.RegisterHash(crypto.SHA3_512, New512)
  14. }