-
Notifications
You must be signed in to change notification settings - Fork 16
Closed
Labels
Description
I use cryptojwt = 1.8.3 and cryptography = 42.0.5 and I get the following DeprecationWarning:
def new_ec_key(crv, kid="", **kwargs):
_key = ec.generate_private_key(curve=NIST2SEC[crv], backend=default_backend())
E cryptography.utils.CryptographyDeprecationWarning: 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.
As I try to get rid of DeprecationWarnings preemptively, I asked myself if there is the intention to change the behaviour in cryptojwt soon and how I could help with that. I already upgraded to the newest release cryptojwt = 1.9.0, but the warning is still there.