In openpgp/key_generation.go the rsa.GenerateKey function from the standard library is used. As far as I can tell, the new key may have primes such that p > q, which is not according to RFC 4880 and can lead to occasional problems when decrypting using gpg.
In
openpgp/key_generation.go
thersa.GenerateKey
function from the standard library is used. As far as I can tell, the new key may have primes such that p > q, which is not according to RFC 4880 and can lead to occasional problems when decrypting using gpg.See also: https://dev.gnupg.org/T4579