com.thingmagic
Class Gen2.NXP.AES.Tam2Authentication

java.lang.Object
  extended by com.thingmagic.Gen2.NXP.AES.Tam1Authentication
      extended by com.thingmagic.Gen2.NXP.AES.Tam2Authentication
Enclosing class:
Gen2.NXP.AES

public static class Gen2.NXP.AES.Tam2Authentication
extends Gen2.NXP.AES.Tam1Authentication

TAM2 authentication


Field Summary
 
Fields inherited from class com.thingmagic.Gen2.NXP.AES.Tam1Authentication
authentication, csi, key, keyId, keyLength
 
Constructor Summary
Gen2.NXP.AES.Tam2Authentication(Gen2.NXP.AES.KeyId keyId, byte[] key, Gen2.NXP.AES.Profile profile, int offset, int blockCount, int protMode, boolean enableRawData)
          Constructor to initialize authentication parameters
 
Method Summary
 int getCmdProfileOffset()
          Getting Profile + Offset byte value
 int getCmdProtModeBlockCount()
          Getting ProtMode + BlockCount byte value
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Gen2.NXP.AES.Tam2Authentication

public Gen2.NXP.AES.Tam2Authentication(Gen2.NXP.AES.KeyId keyId,
                                       byte[] key,
                                       Gen2.NXP.AES.Profile profile,
                                       int offset,
                                       int blockCount,
                                       int protMode,
                                       boolean enableRawData)
Constructor to initialize authentication parameters

Parameters:
keyId - KeyID to identify the encryption key
key - The common secret key K is stored in the IC
profile - 4-bit pointer that selects a memory profile for the addition of custom data
offset - 12-bit value that needs to be added to the address that is specified by Profile to define the first address of the custom data block
blockCount - 4-bit number to define the size of the customer data as a number of 64-bit blocks
protMode - 4-bit number that specifies mode of operation used for encipherment of the custom data
enableRawData - enable or disable raw data filed
Method Detail

getCmdProfileOffset

public int getCmdProfileOffset()
Getting Profile + Offset byte value

Returns:
16 bit Profile+Offset value

getCmdProtModeBlockCount

public int getCmdProtModeBlockCount()
Getting ProtMode + BlockCount byte value

Returns:
8-bit ProtMode+BlockCount value

toString

public java.lang.String toString()
Overrides:
toString in class Gen2.NXP.AES.Tam1Authentication
Returns:
Human-readable representation