libgocryptfs/internal/prefer_openssl/prefer_go1.5.go
Jakob Unterwurzacher 4ad9d4e444 prefer_openssl: add amd64 constraint
Optimized assembly versions for Go GCM are only available
on amd64.
2016-05-12 09:50:36 +02:00

11 lines
215 B
Go

// +build !go1.6 !amd64
// not go1.6+ OR not amd64
package prefer_openssl
func PreferOpenSSL() bool {
// OpenSSL is always faster than Go GCM on old Go versions or on anything
// other than amd64
return true
}