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

Integration of HSM-Based Randomness with ProtonMail/gopenpgp: Feasibility and Implementation Guidance #291

Open
sabouaram opened this issue Aug 5, 2024 · 2 comments
Labels
v2 Targeting GopenPGP v2 v3 Targeting GopenPGP v3

Comments

@sabouaram
Copy link

Hello folks,

First of all, Thank you for creating and maintaining ProtonMail/gopenpgp it's a great package! I have a question regarding the configuration and customization of the package.

I'm interested in using a hardware security module (HSM) as the source of randomness for key generation. I'm wondering if it's possible to configure your package to use a custom io.Reader that pulls random data directly from an HSM. If this is feasible, could you please provide guidance on how we might integrate this with? Are there existing drivers or interfaces that would allow us to accomplish this, or would additional development be required?

Thank you again for your work on this project. I look forward to your insights.

Best regards,

@lubux
Copy link
Contributor

lubux commented Aug 7, 2024

Hi 👋,

You can achieve this with the lower-level library GopenPGP builds on. You can set the randomness source via the config here.

@lubux lubux added v3 Targeting GopenPGP v3 v2 Targeting GopenPGP v2 labels Aug 7, 2024
@sabouaram
Copy link
Author

Ok thanks !

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

No branches or pull requests

2 participants