Exemple #1
0
 public static ulong CyclicShift4(ulong x)
 {
     rtnulon = RingShift.CyclicShift(x, 19) ^ RingShift.CyclicShift(x, 61) ^ RingShift.AbsoluteBit(x >> 6, 6, 1);
     return(rtnulon);
 }
Exemple #2
0
 public static ulong CyclicShift2(ulong x)
 {
     rtnulon = RingShift.CyclicShift(x, 14) ^ RingShift.CyclicShift(x, 18) ^ RingShift.CyclicShift(x, 41);
     return(rtnulon);
 }
Exemple #3
0
 //数据循环移位与移位后相与
 public static ulong CyclicShift3(ulong x)
 {
     rtnulon = RingShift.CyclicShift(x, 1) ^ RingShift.CyclicShift(x, 8) ^ RingShift.AbsoluteBit(x >> 7, 7, 1);
     return(rtnulon);
 }
Exemple #4
0
 //数据仅循环移位后相与
 public static ulong CyclicShift1(ulong x)
 {
     rtnulon = RingShift.CyclicShift(x, 28) ^ RingShift.CyclicShift(x, 34) ^ RingShift.CyclicShift(x, 39);
     return(rtnulon);
 }