len = BN_num_bytes(in); inbuf = xmalloc(len);
ilen = BN_num_bytes(in); inbuf = xmalloc(ilen);
rsa_private_decrypt(BIGNUM *out, BIGNUM *in, RSA *key){  char *inbuf, *outbuf;  int len;  len = BN_num_bytes(key->n);  outbuf = xmalloc(len);  len = BN_num_bytes(in);  inbuf = xmalloc(len);  BN_bn2bin(in, inbuf);  if ((len = RSA_private_decrypt(len, inbuf, outbuf, key,				 RSA_SSLV23_PADDING)) <= 0)    fatal("rsa_private_decrypt() failed");  BN_bin2bn(outbuf, len, out);  memset(outbuf, 0, len);  memset(inbuf, 0, len);  xfree(outbuf);  xfree(inbuf);}