Skip to content

Add brainpoolP256r1 curve support #421

New issue

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

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

Already on GitHub? # to your account

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

zachdoctolib
Copy link

The brainpoolP256r1 curve is defined in RFC 5639, and is a recommended standard (PDF) by the German Ministry for Information Security. This curve is used in several of the German healthcare system's digitization standards (PDF; and also in German, sorry) for authenticating with various specialist services.

}

try {
promise = Promise.resolve(nodejs.apply(null, args));
promise = promise.catch(check);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nodejs.apply(null, args) is a synchronous operation so i think this statement is unreachable.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aaccenture good point! nodejs.apply is a synchronous function that can throw. However, it also returns a promise that can reject. Hence we need to both wrap the call in a try/catch, and call promise.catch here. I'll add a comment to clarify.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the link, I saw return Promise.reject() so this catch here save us from unhandled promise rejection. Legitimate.

@RichardOtvos
Copy link

Hi!
I know this has been open for a while, but this is something we would also need.
If there is a change this can get merged I'd rather go that way (and maybe provide support for this PR if needed) than monkeypatch the library. What can I do to get this in @aaccenture?

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

Successfully merging this pull request may close these issues.

5 participants