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

unknown signature key algorithm: 22 #371

Closed
nlmarco opened this issue Jun 19, 2018 · 4 comments
Closed

unknown signature key algorithm: 22 #371

nlmarco opened this issue Jun 19, 2018 · 4 comments

Comments

@nlmarco
Copy link

nlmarco commented Jun 19, 2018

Since last month, reading my key-ring fails with this exception:

Caused by: java.io.IOException: unknown signature key algorithm: 22
        at org.bouncycastle.bcpg.SignaturePacket.<init>(Unknown Source) ~[bcpg-jdk15on-1.56.jar:1.56.0.0]
        at org.bouncycastle.bcpg.BCPGInputStream.readPacket(Unknown Source) ~[bcpg-jdk15on-1.56.jar:1.56.0.0]
        at org.bouncycastle.openpgp.PGPKeyRing.readSignaturesAndTrust(Unknown Source) ~[bcpg-jdk15on-1.56.jar:1.56.0.0]
        at org.bouncycastle.openpgp.PGPKeyRing.readUserIDs(Unknown Source) ~[bcpg-jdk15on-1.56.jar:1.56.0.0]
        at org.bouncycastle.openpgp.PGPPublicKeyRing.<init>(Unknown Source) ~[bcpg-jdk15on-1.56.jar:1.56.0.0]
        at org.bouncycastle.openpgp.PGPObjectFactory.nextObject(Unknown Source) ~[bcpg-jdk15on-1.56.jar:1.56.0.0]
        at org.bouncycastle.openpgp.PGPPublicKeyRingCollection.<init>(Unknown Source) ~[bcpg-jdk15on-1.56.jar:1.56.0.0]
        at org.subshare.core.pgp.gnupg.BcWithLocalGnuPgPgp.load(BcWithLocalGnuPgPgp.java:763) ~[org.subshare.core-0.10.4-SNAPSHOT.jar:na]
        ... 13 common frames omitted

It seems, Enigmail automatically updated my public key-ring -- and repeats doing so, whenever I revert it. Using subshare together with Thunderbird/Enigmail/GnuPG, with both sharing the same key-ring thus does not work, anymore.

There already is an issue for bc-csharp: bcgit/bc-csharp#73

But since these are separate code-bases and my problem subshare/subshare#61 is caused by bc-java (I don't use C#), I assume I should open an issue here. I hope, this is correct.

The problem is very likely the same: The algorithm with the ID 22 is not supported, neither in the Java- nor in the C#-version of BC.

@nlmarco
Copy link
Author

nlmarco commented Jun 19, 2018

I'd like to add that the same problem still happens with BC 1.59, too. The stack-trace above was taken, before I upgraded to the newest BC, but the problem was not solved by the new version.

@bcgit
Copy link
Collaborator

bcgit commented Jun 22, 2018

Okay, I think this is actually fixed in the latest beta of 1.60 - b10. Note we're not trying to support EdDSA at this point, just get through without parse errors.

See https://www.bouncycastle.org/betas - let us know how you go.

@nlmarco
Copy link
Author

nlmarco commented Aug 15, 2018

Thanks a lot! I just found the time to give it a try. The version 1.60 does not yet help, but I just tried bcprov-jdk15on-161b03.jar from this "betas"-download and did not get the exception, anymore.

When is this going to be released?

@bcgit
Copy link
Collaborator

bcgit commented May 13, 2019

Closing this as it seems the 1.61 release would have dealt with it.

@bcgit bcgit closed this as completed May 13, 2019
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

1 participant