ATSHA204 ATMEL [ATMEL Corporation], ATSHA204 Datasheet - Page 37

no-image

ATSHA204

Manufacturer Part Number
ATSHA204
Description
Atmel CryptoAuthentication
Manufacturer
ATMEL [ATMEL Corporation]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
ATSHA204-MAH-DA-T
Manufacturer:
NVIDIA
Quantity:
340
Part Number:
ATSHA204-SH-DA-B
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Part Number:
ATSHA204-SH-DA-T
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Part Number:
ATSHA204-TSU-T
Manufacturer:
EPSON
Quantity:
418
Part Number:
ATSHA204-TSU-T
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Part Number:
ATSHA204A
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Part Number:
ATSHA204A-MAHDA-T
Manufacturer:
AT
Quantity:
20 000
Company:
Part Number:
ATSHA204A-MAHFD-T
Quantity:
14 270
Company:
Part Number:
ATSHA204A-MAHMF-S
Quantity:
2 973
Part Number:
ATSHA204A-SSHDA-B
Manufacturer:
ATMEL
Quantity:
3 450
Part Number:
ATSHA204A-SSHDA-B
Manufacturer:
AT
Quantity:
21 810
Company:
Part Number:
ATSHA204A-SSHDA-B
Quantity:
50 000
Part Number:
ATSHA204A-SSHDA-T
Manufacturer:
ATMEL
Quantity:
3 450
Part Number:
ATSHA204A-STUCZ-T
Manufacturer:
ATMEL
Quantity:
12 000
Company:
Part Number:
ATSHA204A-TSU-T
Quantity:
569
Company:
Part Number:
ATSHA204A-XHDA-T
Quantity:
3 360
8.2
CheckMac Command
The CheckMac command calculates a MAC response that would have been generated on a CryptoAuthentication device and
compares that with an input value. It returns a Boolean to indicate the success or failure of the comparison.
Prior to running this command, the Nonce and/or GenDig commands may have been optionally run to create a key or nonce
value in TempKey. The input mode parameter determines the source of the “key” (the first 32 bytes of the SHA message) and
“challenge/nonce” (the second 32 bytes of the SHA message).
If the comparison matches, then the target EEPROM slot value may be copied into TempKey. If KeyID is even, then the target
slot is KeyID+1, else the target slot is KeyID. For the copy to take place, the mode parameter to CheckMac must have a value
of 0x01 and SlotConfig.ReadKey for the target key must be zero. When CheckMac is loaded in this manner, it will not be
retained when the device enters the idle state
Table 8-9.
Table 8-10. Output parameter
The message that will be hashed with the SHA-256 algorithm consists of the following information:
Opcode
Param1
Param2
Data1
Data2
Data3
Name
Result
32 bytes
32 bytes
4 bytes
8 bytes
3 bytes
1 byte
4 bytes
2 bytes
2 bytes
Input parameters
Name
CHECKMAC
Mode
KeyID
ClientChal
ClientResp
OtherData
key[KeyID] or TempKey (depending on mode)
ClientChal or TempKey (depending on mode)
OtherData[0:3]
OTP[0:7] (or 0s depending on mode)
OtherData[4:6]
SN[8]
OtherData[7:10]
SN[0:1]
OtherData[11:12]
Size
Size
1
32
32
13
1
1
2
Notes
Returns a single byte with a value of zero if ClientResp matches the internally
computed digest, one if there is a mismatch.
Notes
0x28
Bit 0: If zero, the second 32 bytes of the SHA message are taken from the input
Bit 1: If zero, use key[KeyID] in first SHA block. If one, use TempKey.
Bit 2: If Mode:0 or Mode:1 are set, then the value of this bit must match the value in
Bit 5: If one, use 64 bits of OTP zone in calculation. If zero, use 64 zeros.
Bits 3-4 and 6-7: Must be zero.
Which internal key is to be used to generate the response. All but bits 0:3 are ignored.
Challenge sent to client. If Mode:0 is one, then the value of this parameter will be
ignored (though these 32 bytes MUST still appear in the input stream).
Response generated by the client.
Remaining constant data needed for response calculation.
ClientChal parameter. If one, the second 32 bytes of the message are taken
from TempKey.
TempKey.SourceFlag or the command will return an error.
Atmel ATSHA204 [DATASHEET]
8740D−CRYPTO−3/12
37

Related parts for ATSHA204