n align="justify"> turn (rot2);
. if (c3 <256)
. {
. c3 + +;
. }
. else
. {
. c3 = 1;
. turn (rot3);
. }
. }
.
76. tmp = pre_refl (file [i]);
77. tmp = refl (tmp, re);
. tmp = aft_refl (tmp);
. }
.
. file [i] = tmp;
. }
.
. returnfile;
. }
Додаток 2
Криптосистема вдосконалена В«ЕнігмаВ»
1. public byte [] LFSR__ (Int64 S, Int32 S1, byte [] file)
2. {
. int RS = 0, c = 0;
. inti, p;
. byte [] tt;
. longttt;
. byte RCB;
. byte [] R = newbyte [256];
.
. R = fill (S1);
.
12. for (p = 0; p
13. {
. S = LFSR80 (S);
. ttt = (long) S;
. tt = BitConverter.GetBytes (ttt);
.
. RCB = tt [4];
.
. RS = (RS + c + RCB)% 256;
. i = (file [p] + RS)% 256;
. c = R [i];
. file [p] = (byte) c;
....