shake_generic.go 553 B

1234567891011121314151617181920
  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. //go:build !gc || purego || !s390x
  5. // +build !gc purego !s390x
  6. package sha3
  7. // newShake128Asm returns an assembly implementation of SHAKE-128 if available,
  8. // otherwise it returns nil.
  9. func newShake128Asm() ShakeHash {
  10. return nil
  11. }
  12. // newShake256Asm returns an assembly implementation of SHAKE-256 if available,
  13. // otherwise it returns nil.
  14. func newShake256Asm() ShakeHash {
  15. return nil
  16. }