From 9ad1e034e0ff1db15fe8df74e864fdab7bfb30bd Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Sat, 25 Aug 2018 10:04:38 +0200 Subject: [PATCH] use gcm on arm64 --- common/protocol/headers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/protocol/headers.go b/common/protocol/headers.go index 9bd332f4..f668255a 100644 --- a/common/protocol/headers.go +++ b/common/protocol/headers.go @@ -79,7 +79,7 @@ type CommandSwitchAccount struct { func (sc *SecurityConfig) GetSecurityType() SecurityType { if sc == nil || sc.Type == SecurityType_AUTO { - if runtime.GOARCH == "amd64" || runtime.GOARCH == "s390x" { + if runtime.GOARCH == "amd64" || runtime.GOARCH == "s390x" || runtime.GOARCH == "arm64" { return SecurityType_AES128_GCM } return SecurityType_CHACHA20_POLY1305