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 #61

Open
nlmarco opened this issue Jun 5, 2018 · 4 comments
Assignees
Labels
bug
Milestone

Comments

@nlmarco
Copy link
Contributor

@nlmarco nlmarco commented Jun 5, 2018

Just encountered this:

2018-06-05 19:58:13,548 [qtp2079565272-28] ERROR c.c.c.l.r.s.DefaultExceptionMapper - java.lang.RuntimeException: java.io.IOException: unknown signature key algorithm: 22
java.lang.RuntimeException: java.io.IOException: unknown signature key algorithm: 22
        at org.subshare.core.pgp.gnupg.BcWithLocalGnuPgPgp.load(BcWithLocalGnuPgPgp.java:777) ~[org.subshare.core-0.10.4-SNAPSHOT.jar:na]
        at org.subshare.core.pgp.gnupg.BcWithLocalGnuPgPgp.loadIfNeeded(BcWithLocalGnuPgPgp.java:714) ~[org.subshare.core-0.10.4-SNAPSHOT.jar:na]
        at org.subshare.core.pgp.gnupg.BcWithLocalGnuPgPgp.getMasterKeys(BcWithLocalGnuPgPgp.java:220) ~[org.subshare.core-0.10.4-SNAPSHOT.jar:na]
        at org.subshare.core.pgp.gnupg.BcWithLocalGnuPgPgp.getMasterKeysWithSecretKey(BcWithLocalGnuPgPgp.java:869) ~[org.subshare.core-0.10.4-SNAPSHOT.jar:na]
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:na]
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:na]
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:na]
        at java.base/java.lang.reflect.Method.invoke(Method.java:564) ~[na:na]
        at co.codewizards.cloudstore.core.util.ReflectionUtil.invoke(ReflectionUtil.java:153) ~[co.codewizards.cloudstore.core-0.10.4-SNAPSHOT.jar:na]
        at co.codewizards.cloudstore.core.util.ReflectionUtil.invoke(ReflectionUtil.java:131) ~[co.codewizards.cloudstore.core-0.10.4-SNAPSHOT.jar:na]
        at co.codewizards.cloudstore.ls.core.invoke.InvokeMethodExecutor$InvocationRunnable.run(InvokeMethodExecutor.java:201) ~[co.codewizards.cloudstore.ls.core-0.10.4-SNAPSHOT.jar:na]
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) ~[na:na]
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) ~[na:na]
        at java.base/java.lang.Thread.run(Thread.java:844) [na:na]
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

@nlmarco nlmarco added the bug label Jun 5, 2018
@nlmarco nlmarco added this to the 0.10.4 milestone Jun 5, 2018
@nlmarco nlmarco self-assigned this Jun 5, 2018
@nlmarco

This comment has been minimized.

Copy link
Contributor Author

@nlmarco nlmarco commented Jun 5, 2018

Workaround:

This just worked for me: I restored the ~/.gnupg/pubring.gpg from ~/.gnupg/pubring.gpg~ (which I just copied again, as Thunderbird/Enigmail might overwrite it twice).

@nlmarco

This comment has been minimized.

Copy link
Contributor Author

@nlmarco nlmarco commented Jun 5, 2018

We need to upgrade to a newer BouncyCastle as soon as possible.

@nlmarco

This comment has been minimized.

Copy link
Contributor Author

@nlmarco nlmarco commented Jun 17, 2018

Switching to the newest BouncyCastle version (1.59) did not solve this problem :-(

@nlmarco

This comment has been minimized.

Copy link
Contributor Author

@nlmarco nlmarco commented Jun 17, 2018

According to the info in the issue bcgit/bc-csharp#73 the algorithm 22 is EDDSA.

@nlmarco nlmarco modified the milestones: 0.10.4, 0.10.6 Jul 14, 2018
nlmarco added a commit that referenced this issue Aug 15, 2018
Incremented bouncy-castle-version to 1.60.
nlmarco added a commit that referenced this issue Aug 15, 2018
Fixed a bug in merging public-keys which became evident with new BC
1.60.
nlmarco added a commit to cloudstore/cloudstore that referenced this issue Aug 15, 2018
Using bouncycastle beta version 161b03.
nlmarco added a commit that referenced this issue Aug 15, 2018
Using bouncycastle beta version 161b03.
@nlmarco nlmarco modified the milestones: 0.10.6, 0.10.5 Aug 16, 2018
@nlmarco nlmarco modified the milestones: 0.10.5, 0.10.8 Oct 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.