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.
1 parent b762849 commit bd96333Copy full SHA for bd96333
ec.go
@@ -22,6 +22,11 @@ func SupportsCurve(curve string) bool {
22
}
23
24
var supportsX25519 = sync.OnceValue(func() bool {
25
+ if !versionAtOrAbove(1, 1, 1) {
26
+ // X25519 support was added in OpenSSL 1.1.0, but the APIs we use
27
+ // to implement it were only added in 1.1.1.
28
+ return false
29
+ }
30
ctx, _ := ossl.EVP_PKEY_CTX_new_id(ossl.EVP_PKEY_X25519, nil)
31
if ctx != nil {
32
ossl.EVP_PKEY_CTX_free(ctx)
0 commit comments