Пример #1
0
 private static void GetGammaForCheck(SHA3 keccak, byte[] k2, byte[] k3, byte[] a, byte[] b, byte[][] g1, byte[][] g2, List <byte[]> keys, List <byte[]> oi, int gr)
 {
     keccak.prepareGammaRegime10(keys, oi, gr, 64, out g1[0], out g2[0], null);
     keys[0] = a;
     keccak.prepareGammaRegime10(keys, oi, gr, 64, out g1[1], out g2[1], null);
     keys[0] = b;
     keccak.prepareGammaRegime10(keys, oi, gr, 64, out g1[2], out g2[2], null);
     keys[0] = k3;
     keys[1] = b;
     keccak.prepareGammaRegime10(keys, oi, gr, 64, out g1[3], out g2[3], null);
     keys[0]    = k3;
     keys[1]    = k2;
     keys[2][0] = 1;
     keccak.prepareGammaRegime10(keys, oi, gr, 64, out g1[4], out g2[4], null);
     keys[2][0] = 0;
     oi[0][0]   = 1;
     keccak.prepareGammaRegime10(keys, oi, gr, 64, out g1[5], out g2[5], null);
     oi[0][0] = 0;
     oi[1][0] = 1;
     keccak.prepareGammaRegime10(keys, oi, gr, 64, out g1[6], out g2[6], null);
     oi[1][0] = 0;
     keccak.prepareGammaRegime10(keys, oi, gr, 64, out g1[7], out g2[7], null);
     keys[2][128] = 1;
     keccak.prepareGammaRegime10(keys, oi, gr, 64, out g1[8], out g2[8], null);
     keys[2][128] = 0;
     keys[2][359] = 1;
     keccak.prepareGammaRegime10(keys, oi, gr, 64, out g1[9], out g2[9], null);
     keys[2][359] = 0;
 }