* agl@golang.org <agl@golang.org> [2011-03-13 18:42:43 +0000]:
> Description:
> crypto/openpgp: add DSA signature support.
>
thanks
hm in keys.go in function ReadKeyRing:
for {
var e *Entity
e, err = readEntity(packets)
if err != nil {
if _, ok := err.(error.UnsupportedError); ok {
err = readToNextPublicKey(packets)
}
so it seems unsupported keys are discarded
but then if i have a keyring with only one entity
which is unsupported then i get no keys and no error
the doc comment says one or more:
// ReadKeyRing reads one or more public/private keys, ignoring unsupported keys.
eg i have a dsa secret keyring with elgammal (algo 16)
subkey, but elgamal is not supported so ReadKeyRing returns
empty entity list and i don't know the reason
i don't know how to resolve this nicely, but it seems
returning unsupported errors in some way would be
useful
On Sun, Mar 13, 2011 at 5:47 PM, Szabolcs Nagy <nsz@port70.net> wrote:
> i don't know how to resolve this nicely, but it seems
> returning unsupported errors in some way would be
> useful
It seems reasonable that, if no keys were read and we got an
Unsupported error, then we return it. I'll make that change.
AGL
Issue 4280041: crypto/openpgp: add DSA signature support.
(Closed)
Created 14 years ago by agl1
Modified 13 years, 11 months ago
Reviewers:
Base URL:
Comments: 8