Passing the class directly throws a deprecation warning from cryptography.
CryptographyDeprecationWarning: Curve argument: Curve argument must be an instance of an EllipticCurve class. Did you pass a class by mistake? This will be an exception in a future version of cryptography.
Passing the class directly throws a deprecation warning from cryptography.
See the documentation for Cryptography https://cryptography.io/en/43.0.0/hazmat/primitives/asymmetric/ec.html