exclusiveor

  • n."异"
  • 网络互斥或;异或;逻辑异或

exclusiveorexclusiveor

exclusiveor

互斥或

C语言介绍 ... NOT( 反向) ExclusiveOR( 互斥或) Leftshift( 左移) ...

异或

你也可以执行其它几何运算,比如:求并(Union),求交 (Intersect), 异或ExclusiveOr), 差(Difference)及基 于点对象 …

逻辑异或

逻辑与(And) 逻辑或(Or) 逻辑非(Negate) 逻辑异或ExclusiveOr

1
Then perform another exclusive OR operation between the result of the first exclusive OR operation and the third (unchanged) block. 然后将第一次exclusiveOR操作得到的结果与第三个(未改变的)块进行另一次exclusiveOR操作。
2
Take the first (unchanged) block and exclusive OR each of its bits with the corresponding bits of the second (reversed) block. 取第一个(未改变的)块并与第二个(倒转的)块进行每一位的exclusiveOR。
3
Now we need to provide bitwise operation functions: & (and), | (or), ^ (exclusive or), or ~ (not). 现在,我们需要提供逐位运算函数:&(and)、|(or)、^(exclusiveor)、or~(not)。
4
You will end up with a single 8-byte block as the final end result of all exclusive OR operations. 所有exclusiveOR操作的最后结果是一个8字节长的块。
5
If the parity fixing does not result in a weak key, you don't need this exclusive OR operation. 如果奇偶修正得到的不是弱密钥,那么就不需要进行这种exclusiveOR操作。
6
If it is, you will exclusive OR the last byte of the 8-byte parity-fixed block with 0xf0 (11110000). 如果是的话,就要用0xf0(11110000)与奇偶修正过的8字节块进行exclusiveOR。
7
Continue exclusive ORing until you have consumed all the blocks. 继续exclusiveOR操作直到完成了所有块。