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

Potentially fix CMS Data Envelope creation for ECC certificates #1003

Merged

Conversation

cipherboy
Copy link
Contributor

@cipherboy cipherboy commented Feb 8, 2024

See comment here for information: bcgit/bc-csharp#516 (comment)

Related: #998

This generates an ephemeral EC-DH key pair for KeyAgreement within the
context of the CMS data envelope, using the same underlying curve as the
recipient's certificate.

Signed-off-by: Alexander Scheel <alexander.scheel@keyfactor.com>
@cipherboy cipherboy force-pushed the potentially-fix-cms-creation-for-ecc branch from 6b0bd49 to f124ef4 Compare February 8, 2024 22:00
Signed-off-by: Alexander Scheel <alexander.scheel@keyfactor.com>
@cipherboy
Copy link
Contributor Author

@jstedfast I think this version should retain compatibility with the existing OAEP selection code, but let you do ECC perhaps. I'll need a PR for BC-CSharp to do OAEP nicely, but you'll probably have to wait a bit to get a new release of that cut, so I'd probably suggest merging this as-is. :-)

@jstedfast
Copy link
Owner

@cipherboy thanks a ton for your help, this is awesome. Give me a ping if you ever add that nicer way to do OAEP nicely, but if not, no worries - I don't mind having code that does a bit of extra work to massage things.

@jstedfast jstedfast merged commit 3f526df into jstedfast:master Feb 8, 2024
@jstedfast jstedfast added the enhancement New feature or request label Feb 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants