hashes_generic.go (841B)
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 !gc || purego || !s390x 6 // +build !gc purego !s390x 7 8 package sha3 9 10 import ( 11 "hash" 12 ) 13 14 // new224Asm returns an assembly implementation of SHA3-224 if available, 15 // otherwise it returns nil. 16 func new224Asm() hash.Hash { return nil } 17 18 // new256Asm returns an assembly implementation of SHA3-256 if available, 19 // otherwise it returns nil. 20 func new256Asm() hash.Hash { return nil } 21 22 // new384Asm returns an assembly implementation of SHA3-384 if available, 23 // otherwise it returns nil. 24 func new384Asm() hash.Hash { return nil } 25 26 // new512Asm returns an assembly implementation of SHA3-512 if available, 27 // otherwise it returns nil. 28 func new512Asm() hash.Hash { return nil }