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

Support for creating BoxedMontyParams from ConstMontyParams #593

Open
jjteo74 opened this issue Apr 8, 2024 · 3 comments
Open

Support for creating BoxedMontyParams from ConstMontyParams #593

jjteo74 opened this issue Apr 8, 2024 · 3 comments

Comments

@jjteo74
Copy link

jjteo74 commented Apr 8, 2024

Version: 0.6.0-pre.12.

I am trying to define pre-computed SSH DH groups 1 and 14-18 parameters using ConstMontyParams because groups 15-18 take a long time to compute--more than 5s (debug) for group 18 with modulus U8192 on my laptop. And to do DH shared secret computation in BoxedUint for good hygiene.

However, there doesn't seem to be a way to create BoxedMontyParams from either MontyParams or ConstMontyParams so the current way forward is to use OnceLock<Arc<BoxedMontyParams>>, but this is not ideal.

Is there a way to pre-compute BoxedMontyParams?

@tarcieri
Copy link
Member

We don't yet have an easy From conversion for this but it should be easy to add

@jjteo74
Copy link
Author

jjteo74 commented May 13, 2024

Thanks for the reply.

@jjteo74 jjteo74 closed this as completed May 13, 2024
@tarcieri tarcieri reopened this May 13, 2024
@tarcieri tarcieri changed the title Question: How to create a BoxedMontyParams from ConstMontyForm? Support for creating BoxedMontyParams from ConstMontyParams May 13, 2024
@tarcieri
Copy link
Member

Reopened this so we can track adding an appropriate From impl

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

No branches or pull requests

2 participants