cipherhw_amd64.go 400 B

12345678910111213141516
  1. // Copyright 2016 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 amd64,!gccgo,!appengine
  5. package cipherhw
  6. // defined in asm_amd64.s
  7. func hasAESNI() bool
  8. // AESGCMSupport returns true if the Go standard library supports AES-GCM in
  9. // hardware.
  10. func AESGCMSupport() bool {
  11. return hasAESNI()
  12. }