if (len > RSAref_MAX_LEN) { RSAREFerr(RSAREF_F_RSA_REF_PRIVATE_DECRYPT,RSAREF_R_LEN); goto err; }
int RSA_ref_private_decrypt(int len, unsigned char *from, unsigned char *to,	     RSA *rsa, int padding)	{	int i,outlen= -1;	RSArefPrivateKey RSAkey;	if (!RSAref_Private_eay2ref(rsa,&RSAkey))		goto err;	if (len > RSAref_MAX_LEN)		{		RSAREFerr(RSAREF_F_RSA_REF_PRIVATE_DECRYPT,RSAREF_R_LEN);		goto err;		}	if ((i=RSAPrivateDecrypt(to,&outlen,from,len,&RSAkey)) != 0)		{		RSAREFerr(RSAREF_F_RSA_REF_PRIVATE_DECRYPT,i);		outlen= -1;		}err:	memset(&RSAkey,0,sizeof(RSAkey));	return(outlen);	}