Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1019577: hokey lint: "Non-exhaustive patterns in function getSecretKey" when sending a secret key instead of certificate

7 views
Skip to first unread message

Daniel Kahn Gillmor

unread,
Sep 12, 2022, 9:00:04 AM9/12/22
to
Package: hopenpgp-tools
Version: 0.23.7-1

When i send an OpenPGP secret key to "hokey lint", i see this warning:

hokey: Codec/Encryption/OpenPGP/Serialize.hs:(986,1)-(1015,77): Non-exhaustive patterns in function getSecretKey

I think what it's trying to say is "hokey lint only works on OpenPGP
certificates, not secret keys". But this is a pretty awkward way to say
it.

Alternately, "hokey lint" could just convert the secret key to a public
key and do the linting anyway.

Thanks for maintaining hopenpgp-tools!

--dkg
signature.asc

Clint Adams

unread,
Sep 12, 2022, 10:10:04 AM9/12/22
to
On Sun, Sep 11, 2022 at 01:02:33PM -0400, Daniel Kahn Gillmor wrote:
> I think what it's trying to say is "hokey lint only works on OpenPGP
> certificates, not secret keys". But this is a pretty awkward way to say
> it.

That is not what it is saying. If you have the hOpenPGP source code handy,
you should receive reasonable output from something like

hokey lint <tests/data/nist_p-256_secretkey.gpg

What is the nature of the input you're providing?

Clint Adams

unread,
Sep 13, 2022, 7:20:04 AM9/13/22
to
On Tue, Sep 13, 2022 at 03:02:14AM -0400, Daniel Kahn Gillmor wrote:
> I was "hokey lint"ing the attached binary-formatted secret key, which
> was provided by Justus Winter for use with the notmuch test suite:

Looks like parsing of Ed25519 secret keys hasn't been implemented
in hOpenPGP yet and that is the cause of the failure.
0 new messages