ThomasGerstenberg / blatann

Python BLE library for using Nordic nRF52 with Connectivity firmware
BSD 3-Clause "New" or "Revised" License
71 stars 21 forks source link

Pass class instance for lesc private key generation #180

Closed AnatoleMombrun closed 2 months ago

AnatoleMombrun commented 2 months ago

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.

See the documentation for Cryptography https://cryptography.io/en/43.0.0/hazmat/primitives/asymmetric/ec.html