javacardx.framework.math
Class ParityBit

java.lang.Object
  extended by javacardx.framework.math.ParityBit

@TransactionType(value=SUPPORTS)
public final class ParityBit
extends Object

The ParityBit class is a utility to assist with DES key parity bit generation.

Since:
2.2.2

Constructor Summary
ParityBit()
          Intended to be package visible.
 
Method Summary
static void set(byte[] bArray, short bOff, short bLen, boolean isEven)
          Inserts the computed parity bit of the specified type as the last bit(LSB) in each of the bytes of the specified byte array.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParityBit

public ParityBit()
Intended to be package visible. Retain for compatibility

Method Detail

set

public static void set(byte[] bArray,
                       short bOff,
                       short bLen,
                       boolean isEven)
Inserts the computed parity bit of the specified type as the last bit(LSB) in each of the bytes of the specified byte array. The parity is computed over the first(MS) 7 bits of each byte. The incoming last bit of each byte is ignored.

Note:



Copyright (c) 2009 Sun Microsystems, Inc. All rights reserved.