Chooses the best elliptic curve for Elliptic Curve Diffie-Hellman key exchange, and provides a configureECDHCurve method to set the curve, when appropriate, on a new OpenSSL.SSL.Context.

The configureECDHCurve method will be set to one of the following based on the provided OpenSSL version and configuration:

ParametersopenSSLVersionThe OpenSSL version number. (type: int)
openSSLlibThe OpenSSL cffi library module.
openSSLlibThe OpenSSL crypto module.
See AlsoOpenSSL.SSL.OPENSSL_VERSION_NUMBER
crypto
Method __init__ Undocumented
Method _configureOpenSSL110 OpenSSL 1.1.0 Contexts are preconfigured with an optimal set of ECDH curves. This method does nothing.
Method _configureOpenSSL102 Have the context automatically choose elliptic curves for ECDH. Run on OpenSSL 1.0.2 and OpenSSL 1.1.0+, but only has an effect on OpenSSL 1.0.2.
Method _configureOpenSSL101 Set the default elliptic curve for ECDH on the context. Only run on OpenSSL 1.0.1.
Method _configureOpenSSL101NoCurves No elliptic curves are available on OpenSSL 1.0.1. We can't set anything, so do nothing.
def __init__(self, openSSLVersion, openSSLlib, openSSLcrypto):
Undocumented
def _configureOpenSSL110(self, ctx):

OpenSSL 1.1.0 Contexts are preconfigured with an optimal set of ECDH curves. This method does nothing.

ParametersctxOpenSSL.SSL.Context
def _configureOpenSSL102(self, ctx):

Have the context automatically choose elliptic curves for ECDH. Run on OpenSSL 1.0.2 and OpenSSL 1.1.0+, but only has an effect on OpenSSL 1.0.2.

ParametersctxThe context which . (type: OpenSSL.SSL.Context)
def _configureOpenSSL101(self, ctx):

Set the default elliptic curve for ECDH on the context. Only run on OpenSSL 1.0.1.

ParametersctxThe context on which to set the ECDH curve. (type: OpenSSL.SSL.Context)
def _configureOpenSSL101NoCurves(self, ctx):

No elliptic curves are available on OpenSSL 1.0.1. We can't set anything, so do nothing.

ParametersctxThe context on which to set the ECDH curve. (type: OpenSSL.SSL.Context)
API Documentation for twisted, generated by pydoctor at 2020-03-25 17:34:30.