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