gtsocial-umbx

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

register.go (381B)


      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 
      5 //go:build go1.9
      6 // +build go1.9
      7 
      8 package blake2s
      9 
     10 import (
     11 	"crypto"
     12 	"hash"
     13 )
     14 
     15 func init() {
     16 	newHash256 := func() hash.Hash {
     17 		h, _ := New256(nil)
     18 		return h
     19 	}
     20 
     21 	crypto.RegisterHash(crypto.BLAKE2s_256, newHash256)
     22 }