Esempio n. 1
0
void discrypt0(unsigned char *mtext,unsigned char *text) {
    char ll[64], rr[64], LL[64], RR[64];
    char tmp[64];
    int i, j;

    ip(mtext, ll, rr);

    for (i = 16; i > 0; i--) {
        F(i, ll, rr, LL, RR);
        for (j = 0; j < 32; j++) {
            ll[j] = LL[j];
            rr[j] = RR[j];
        }
    }

    _ip(tmp, rr, ll);

    compress0(tmp, text);
}
Esempio n. 2
0
void encrypt0(unsigned char *text,unsigned char *mtext)
{
	char ll[64],rr[64],LL[64],RR[64];
	char tmp[64];
	int i,j;
	ip(text,ll,rr);

	for (i=1;i<17;i++)
	{
		F(i,ll,rr,LL,RR);
		for (j=0;j<32;j++)
		{
			ll[j]=LL[j];
			rr[j]=RR[j];
		}
	}

	_ip((unsigned char*)tmp,rr,ll);

	compress0(tmp,mtext);
}
Esempio n. 3
0
void encrypt0(LPBYTE text, LPBYTE mtext)
{
	char ll[64],rr[64],LL[64],RR[64];
	char tmp[64];
	int  i,j;


	ip(text,ll,rr);
	for(i = 1;  i < 17;  i++)
	{
		F((char)i,ll,rr,LL,RR);
		for(j = 0;  j < 32;  j++)
		{
			ll[j] = LL[j];
			rr[j] = RR[j];
		}
	}

	_ip(tmp,rr,ll);

	compress0(tmp,mtext);
}