Index: cipher/rsa.c =================================================================== --- cipher/rsa.c +++ cipher/rsa.c @@ -355,7 +355,7 @@ static void secret(gcry_mpi_t output, gcry_mpi_t input, RSA_secret_key *skey ) { - if (!skey->p && !skey->q && !skey->u) + if (!skey->p || !skey->q || !skey->u) { mpi_powm (output, input, skey->d, skey->n); }