We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f6e81fb + 37d4606 commit 3abd2aeCopy full SHA for 3abd2ae
pkg/sshutil/sshutil.go
@@ -324,6 +324,11 @@ func detectValidPublicKey(content string) bool {
324
325
func detectAESAcceleration() bool {
326
if !cpu.Initialized {
327
+ if runtime.GOOS == "linux" && runtime.GOARCH == "arm64" {
328
+ // cpu.Initialized seems to always be false, even when the cpu.ARM64 struct is filled out
329
+ // it is only being set by readARM64Registers, but not by readHWCAP or readLinuxProcCPUInfo
330
+ return cpu.ARM64.HasAES
331
+ }
332
if runtime.GOOS == "darwin" && runtime.GOARCH == "arm64" {
333
// golang.org/x/sys/cpu supports darwin/amd64, linux/amd64, and linux/arm64,
334
// but apparently lacks support for darwin/arm64: https://github.com/golang/sys/blob/v0.5.0/cpu/cpu_arm64.go#L43-L60
0 commit comments