A common scenario that we have evidenced in our technical support practice for DidiSoft OpenPGP Library for .NET is that some customers by mistake try to decrypt .pgp files with an OpenPGP public key.
Although the exception was of class DidiSoft.Pgp.Exceptions.WrongPrivateKeyException, the exception text so far wasn’t very helpful and it stated: “Decryption of data encrypted using KEY-ID(s) : XXX failed, The provided key is not a valid OpenPGP private key.”.
As of version 1.7.11.11 the library was updated to check if the supplied key is a public key and in that case the exception will be “Decryption of data encrypted using KEY-ID(s) : XXX failed, The provided key is a Public Key (You need a Private Key for decryption!)“