github.com/cranelv/ethereum_mpc@v0.0.0-20191031014521-23aeb1415092/consensus/cryptonight/x86.go (about) 1 // +build amd64 2 3 package cryptonight 4 5 import "github.com/intel-go/cpuid" 6 7 func init() { 8 if cpuid.HasFeature(cpuid.AES) { 9 HardwareAES = true 10 } 11 } 12 13 // defined in assembly 14 func encryptAESRound(xk *uint32, dst, src *uint32) 15 16 // defined in assembly 17 func encrypt10AESRound(xk *uint32, dst, src *uint32) 18 19 // defined in assembly 20 func mul6464128(input *uint64)