write_rsa
static void write_rsa(unsigned char **out, RSA *rsa, int ispub);
write_rsa(&p, pk->pkey.rsa, ispub);