Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

DeprecationWarnings with current release 1.9.0 #157

Copy link
Copy link
@sallner

Description

@sallner
Issue body actions

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.

Reactions are currently unavailable

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.