github.com/zebozhuang/go@v0.0.0-20200207033046-f8a98f6f5c5d/src/crypto/internal/cipherhw/cipherhw_amd64.go (about)

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