}
.
. returnfile;
. }
Додаток 3
Удосконалена В«ЕнігмаВ». Дешифрування
1. public byte [] LFSR__dec (Int64 S, Int32 S1, byte [] file)
2. {
. int RS = 0, c = 0;
. int i, p;
. byte [] tt;
. longttt;
. byte RCB;
. byte [] R = newbyte [256];
. int x = 0;
.
. R = fill (S1);
.
13. for (p = 0; p
14. {
. S = LFSR80 (S);
. ttt = (long) S;
. tt = BitConverter.GetBytes (ttt);
.
. RCB = tt [4];
.
21. i = find_i (file [p], R);
22. if (p == 0)
. {
. RS = (RS + RCB)% 256;
. }
. else
. {
. RS = (RS + c + RCB)% 256;
. }
.
. while (((x + RS)% 256)! = i)
. {
. x + +;
. }
.
. c = file [p];
. file [p] = (byte) x;
. x = 0;
. }
.
. returnfile;
. }
. ...