Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

22 rader
364 B

  1. // Copyright 2017 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.9
  5. package blake2s
  6. import (
  7. "crypto"
  8. "hash"
  9. )
  10. func init() {
  11. newHash256 := func() hash.Hash {
  12. h, _ := New256(nil)
  13. return h
  14. }
  15. crypto.RegisterHash(crypto.BLAKE2s_256, newHash256)
  16. }