tify"> * massiv = * (type32 *) A;
* (massiv + 1) = * (type32 *) (A + 2);
* (massiv + 2) = * (type32 *) (A + 4);
* (massiv + 3) = * (type32 *) (A + 6);
bit7 [0] = ((massiv [0] & 0x7f) <<25) &0xfe000000;
bit25 [0] = ((massiv [0] & 0xffffff80)>> 7) &0x1ffffff;
bit7 [1] = ((massiv [1] & 0x7f) <<25) &0xfe000000;
bit25 [1] = ((massiv [1] & 0xffffff80)>> 7) &0x1ffffff;
bit7 [2] = ((massiv [2] & 0x7f) <<25) &0xfe000000;
bit25 [2] = ((massiv [2] & 0xffffff80)>> 7) &0x1ffffff;
bit7 [3] = ((massiv [3] & 0x7f) <<25) &0xfe000000;
bit25 [3] = ((massiv [3] & 0xffffff80)>> 7) &0x1ffffff;
out [0] = bit7 [0] | bit25 [3];
out [1] = bit7 [1] | bit25 [0];
out [2] = bit7 [2] | bit25 [1];
out [3] = bit7 [3] | bit25 [2];
* (type32 *) A = out [0];
* (type32 *) (A + 2) = out [1];
* (type32 *) (A + 4) = out [2];
* (type32 *) (A + 6) = out [3];
delete massiv;
delete bit7;
delete bit25;
delete out;
return 1;
} IDEA_OFB (unsigned * mes, unsigned * key, unsigned * NZ, int n)
{//mes - n * 16bit
IDEA (key, NZ);
for (int i = 0; i
SdvigMas1_4 (NZ);
} mul (unsigned a, unsigned b)
{
unsigned long p;
if (a)
{ if (b)
{ p = (unsigned long) a * b;
b = p &0xffffU;
a = p>> 16;
return b - a + (b
}
else return 1-a;
}
else return 1-b;
}