Source file src/crypto/internal/fips140deps/cpu/cpu.go

     1  // Copyright 2024 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  package cpu
     6  
     7  import (
     8  	"internal/cpu"
     9  	"internal/goarch"
    10  )
    11  
    12  const BigEndian = goarch.BigEndian
    13  const AMD64 = goarch.IsAmd64 == 1
    14  const ARM64 = goarch.IsArm64 == 1
    15  const PPC64 = goarch.IsPpc64 == 1
    16  const PPC64le = goarch.IsPpc64le == 1
    17  
    18  var ARM64HasAES = cpu.ARM64.HasAES
    19  var ARM64HasPMULL = cpu.ARM64.HasPMULL
    20  var ARM64HasSHA2 = cpu.ARM64.HasSHA2
    21  var ARM64HasSHA512 = cpu.ARM64.HasSHA512
    22  var S390XHasAES = cpu.S390X.HasAES
    23  var S390XHasAESCBC = cpu.S390X.HasAESCBC
    24  var S390XHasAESCTR = cpu.S390X.HasAESCTR
    25  var S390XHasAESGCM = cpu.S390X.HasAESGCM
    26  var S390XHasECDSA = cpu.S390X.HasECDSA
    27  var S390XHasGHASH = cpu.S390X.HasGHASH
    28  var S390XHasSHA256 = cpu.S390X.HasSHA256
    29  var S390XHasSHA3 = cpu.S390X.HasSHA3
    30  var S390XHasSHA512 = cpu.S390X.HasSHA512
    31  var X86HasAES = cpu.X86.HasAES
    32  var X86HasADX = cpu.X86.HasADX
    33  var X86HasAVX = cpu.X86.HasAVX
    34  var X86HasAVX2 = cpu.X86.HasAVX2
    35  var X86HasBMI2 = cpu.X86.HasBMI2
    36  var X86HasPCLMULQDQ = cpu.X86.HasPCLMULQDQ
    37  var X86HasSHA = cpu.X86.HasSHA
    38  var X86HasSSE41 = cpu.X86.HasSSE41
    39  var X86HasSSSE3 = cpu.X86.HasSSSE3
    40  

View as plain text