g10: Fix card keygen for decryption.