aboutsummaryrefslogtreecommitdiff
path: root/internal/prefer_openssl/prefer_go1.5.go
blob: 70953142711c575d308d6ff39174407d7fcda923 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// +build !go1.6 !amd64
// not go1.6+ OR not amd64

package prefer_openssl

import (
	"github.com/rfjakob/gocryptfs/internal/stupidgcm"
)

func PreferOpenSSL() bool {
	if stupidgcm.BuiltWithoutOpenssl {
		return false
	}
	// OpenSSL is always faster than Go GCM on old Go versions or on anything
	// other than amd64
	return true
}