Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

OpenPGPApi integration with Luna JCPROV PKCS#11 Wrapper #2188

Unanswered
scordio asked this question in Q&A
Discussion options

I need to use OpenPGP with a Luna HSM, currently integrated via the JCPROV PKCS#11 Wrapper. The wrapper offers a set of APIs that aim to stay as close as possible to PKCS#11.

I see that the Luna could be used with the PGP implementation of BouncyCastle via its JCE provider, in combination with the JcaOpenPGPImplementation. However, JCE is unfortunately not an option for my use case because I need to keep the more fine-grained crypto operations that PKCS#11 supports and JCE does not.

I started looking into how to implement a custom OpenPGPImplementation based on JCPROV: my best shot so far is to extend BcOpenPGPImplementation and override all the parts that eventually deal with the low-level crypto operations to be executed inside the HSM. However, the complexity goes up quite fast.

Is there any reference or guidance I could follow for such a use case?

Thanks in advance for any feedback!


Relates to:

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /