Lines Matching defs:parity
485 * Add the parity to the 56-bit key converting it to 64-bit key.
617 * Set the parity bit for an integer.
620 * to add the parity bit for.
621 * @return integer with the parity bit set.
623 private static int setOddParity(final int parity)
625 final boolean hasEvenBits = ((parity >>> 7) ^ (parity >>> 6)
626 ^ (parity >>> 5) ^ (parity >>> 4)
627 ^ (parity >>> 3) ^ (parity >>> 2)
628 ^ (parity >>> 1) & 0x01) == 0;
631 return parity | 0x01;
635 return parity & 0xFE;