bcgit / bc-java

Bouncy Castle Java Distribution (Mirror)
https://www.bouncycastle.org/java.html
MIT License
2.3k stars 1.14k forks source link

Supported pgp subkey types #1405

Open ArtMek opened 1 year ago

ArtMek commented 1 year ago

Hello!

I've faced some issue related to RSA-E type of the pgp subkey. All works fine with the RSA type, but cannot recognize the key when it has type RSA-E. Could you please verify if RSA-E type is supported in Bouncy Castle java library?

vanitasvitae commented 1 year ago

I assume by RSA-E you mean RSA Encrypt-Only? The RFC states that

RSA Encrypt-Only (2) and RSA Sign-Only are deprecated and SHOULD NOT be generated, but may be interpreted.

Such keys should nevertheless work fine I think. Can you provide more details as to what goes wrong? A stacktrace and perhaps a test key would be useful.