Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for ECC signatures by switching to Crypt::PK::* #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yoe
Copy link

@yoe yoe commented Jun 12, 2020

There is no Crypt::OpenSSL::* module to support ECC signatures, which
the JWT standard specifies. As a result, this module currently does not
support ECC tokens, only HMAC and RSA ones.

Switch to Crypt::PK::* instead, which does have a ECC module that has
the exact same API as its RSA counterpart.

As an added advantage, Crypt::PK::RSA also supports importing/exporting
RSA keys in JWK format, which Crypt::OpenSSL::RSA does not. This might
be useful for a module dealing with JSON Web Tokens.

Signed-Off-By: Wouter Verhelst w@uter.be

There is no Crypt::OpenSSL::* module to support ECC signatures, which
the JWT standard specifies. As a result, this module currently does not
support ECC tokens, only HMAC and RSA ones.

Switch to Crypt::PK::* instead, which does have a ECC module that has
the exact same API as its RSA counterpart.

As an added advantage, Crypt::PK::RSA also supports importing/exporting
RSA keys in JWK format, which Crypt::OpenSSL::RSA does not. This might
be useful for a module dealing with JSON Web Tokens.

Signed-Off-By: Wouter Verhelst <w@uter.be>
@yoe yoe force-pushed the add_ec_support branch from b82e61b to e7fc5be Compare June 12, 2020 12:52
@yoe
Copy link
Author

yoe commented Jun 12, 2020

[update: fix test suite, which uncovered code issues -- it does work now, sorry]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant