com.thingmagic
Class Gen2.NXP.AES.Tam2Authentication
java.lang.Object
com.thingmagic.Gen2.NXP.AES.Tam1Authentication
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
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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 keykey
- The common secret key K is stored in the ICprofile
- 4-bit pointer that selects a memory profile for the addition of custom dataoffset
- 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 blockblockCount
- 4-bit number to define the size of the customer data as a number of 64-bit blocksprotMode
- 4-bit number that specifies mode of operation used for encipherment of the custom dataenableRawData
- enable or disable raw data filed
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