Page MenuHome GnuPG

gcry_pk_testkey does not support public keys
Closed, ResolvedPublic

Description

Release: 1.1.13-cvs

Environment

irrelevant

Description

The info page says that gcry_pk_testkey can be used to
verify both public and private keys. The source code
says it can only verify private keys. Worse, the code
returns an error code when run on a valid public key.

How To Repeat

Run gcry_pk_testkey on a public RSA key.

Fix

Update documentation until code can verify public keys.

Release Note

Fixed in 1.1.42

Event Timeline

Documentation fixed. Function is only useful for private keys.