Atmel AT88SA102S [DATASHEET] 13
8584HCRYPTO9/2012
6. Commands
The command packet is broken down in the following way:
Byte Name Meaning
0 Opcode The Command code
1 Param1 The first parameter always present
2-3 Param2 The second parameter always present
4 + Data Optional remaining input data
If a command fails because the CRC within the block is incorrect or there is some other communications error then
immediately after t
PARSE
the system will be able to retrieve an error response block containing a single byte packet. The value
of that byte will be all ones. In this situation, the system should re-transmit the command block including the proceeding
transmit flag providing there is sufficient time before the expiration of the watchdog timeout.
If the opcode is invalid, one of the parameters is illegal, or the AT88SA102S is in an illegal state for the execution of this
command then immediately after t
PARSE
the system will be able to retrieve an error response block containing a single byte
packet. The value of that byte will be 0x0F. In this situation, the condition must be corrected before the (modified) command is
sent back to AT88SA102S.
If a command is received successfully then after the appropriate execution delay the system will be able to retrieve the output
block as described in the individual command descriptions below.
In the individual command description tables below, the size column describes the number of bytes in the parameter
documented in each particular row. The total size of the block for each of the commands is fixed, though that value is different
for each command. If the block size for a particular command is incorrect, the chip will not attempt the command execution
and return an error.
Atmel AT88SA102S [DATASHEET] 14
8584HCRYPTO9/2012
6.1 MAC
Computes a SHA-256 digest of a key stored inside the chip, an input challenge and other information on the chip. The output
of this command is the digest of this message.
If the message includes the serial number of the chip, then the response is said to be diversified. Protocols that utilize
diversified responses may be more secure because two AT88SA102S chips with same key will return different responses to
an identical challenge based on their unique serial number.
Table 6-1. Input Parameters
Name Size Notes
Opcode
MAC 1 0x08
Param1
Mode 1 Controls which fields within the chip are used in the message
Param2
KeyID 2 Which internal key is to be used in the message
Data
Challenge 32 Input portion of message to be digested
Table 6-2. Output Parameters
Name Size Notes
Response 32 SHA-256 digest
Regardless of the value of mode, the first 512-bit block of the message that will be hashed with the SHA-256 algorithm will
consist of:
256-bits key[KeyID]
256-bits challenge
The second block consists of the following information:
8-bits Opcode (always 0x08)
8-bits Mode
16-bits KeyID
64-bits Secret Fuses including BurnFuse and BurnSecure enable (or zeros, see Table 6-3)
24-bits Status Fuses including FuseDisable (or zeros, see Table 6-3)
8-bits Fuse MfrID fuses, (Fuse[88:95]) (never zero’d out)
32-bits Fuse SN, (Fuse[96:127]) (or zeros, see Table 6-3)
16-bits ROM MfrID (never zero’d out)
16-bits ROM SN (or zeros, see Table 6-3)
1-bit ‘1’ pad
255-bit ‘0’ pad
64-bit Total length of message in bits (512+192=704), excluding pad and length
Atmel AT88SA102S [DATASHEET] 15
8584HCRYPTO9/2012
Mode is encoded as follows:
Table 6-3. Mode Encoding
Bits Meaning
7 Should be zero
6 If set, include the 48-bit serial number (combination of fuses and ROM values) in the message
Otherwise, the corresponding message bits are set to zero
5 If set, and Fuse[87] is burned, include the 64-secret fuses (Fuse[0] through Fuse[63]) in the message
Otherwise, the corresponding message bits are set to Zero
If Mode[4] is set, then the value of this mode bit is ignored
4 If set, and Fuse[87] is burned, include the 64-secret fuses and 24-status fuses (Fuse[0] through Fuse[87]) in
the message
Otherwise, the corresponding message bits are set to zero
3-0 Should be zero

AT88SA102S-TSU-T

Mfr. #:
Manufacturer:
Description:
IC AUTHENTICATION CHIP SOT23-3
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union