int i,j;
int i = 0,j;
int RSA_padding_check_X931(unsigned char *to, int tlen,	     const unsigned char *from, int flen, int num)	{	int i,j;	const unsigned char *p;	p=from;	if ((num != flen) || ((*p != 0x6A) && (*p != 0x6B)))		{		RSAerr(RSA_F_RSA_PADDING_CHECK_X931,RSA_R_INVALID_HEADER);		return -1;		}	j=flen-3;	if (*p++ == 0x6B)		{		for (i = 0; i < j; i++)			{			unsigned char c = *p++;			if (c == 0xBA)				break;			if (c != 0xBB)				{				RSAerr(RSA_F_RSA_PADDING_CHECK_X931,					RSA_R_INVALID_PADDING);				return -1;				}			}		}	j -= i;	if (i == 0)		{		RSAerr(RSA_F_RSA_PADDING_CHECK_X931, RSA_R_INVALID_PADDING);		return -1;		}	if (p[j] != 0xCC)		{		RSAerr(RSA_F_RSA_PADDING_CHECK_X931, RSA_R_INVALID_TRAILER);		return -1;		}	memcpy(to,p,(unsigned int)j);	return(j);	}