| Electronic Components Datasheet Search |
|
ATSHA204 Datasheet(PDF) 12 Page - ATMEL Corporation |
|
|
|||||||||||||||||||||||||||||
ATSHA204 Datasheet(HTML) 12 Page - ATMEL Corporation |
|
12 / 65 page ![]() Atmel ATSHA204 [DATASHEET] 12 8740D −CRYPTO−3/12 3. Cryptographic Information The ATSHA204 implements a challenge-response protocol using either SHA-256 or HMAC/SHA-256, details are below. The response is always a 256-bit digest. The Nonce command (see Section 8.9) accepts an input challenge from the system and optionally combines it with an internally generated random number to generate a nonce (number used once) for the calculation. This seed is then combined with a secret key as part of the authentication calculation for any of the crypto commands (MAC, HMAC, Read, Write, or GenDig). For compatibility reasons, the input challenge may be passed directly to the MAC command; however, this operation is deprecated. The device can guarantee the uniqueness of the Nonce only if the device has included the output of its random number generator in the calculation, because the system input may or may not be unique. Every random Nonce is guaranteed to be unique when compared to all previous nonces, ensuring that each transaction is unique over all time. 3.1 SHA-256 The ATSHA204 MAC command calculates the digest of a secret key concatenated with the challenge or nonce. It optionally includes various other pieces of information stored on the device within the digested message. The ATSHA204 computes the SHA-256 digest based on the algorithm documented here: http://csrc.nist.gov/publications/fips/fips180-2/fips180-2.pdf The complete SHA-256 message processed by the ATSHA204 is listed in Sections 8.5 and 8.9 for each of the particular commands (GenDig and Nonce) that use the algorithm. Most standard software implementations of the algorithm automatically add the appropriate number of pad and length bits to this message to match the operation the device performs internally. The SHA-256 algorithm is also used for encryption by taking the output digest of the hash algorithm and XORing it with the plain text data to produce the ciphertext. Decryption is the reverse – the ciphertext is XORed with the digest, and the result is the plain text. 3.2 HMAC/SHA-256 The response to the challenge can also be computed using the HMAC algorithm based on SHA-256 documented here: http://csrc.nist.gov/publications/fips/fips198/fips-198a.pdf Because of the increased computation complexity, the HMAC command is not as flexible as the MAC command and the computation time for HMAC is extended. While the HMAC sequence is not necessary to ensure the security of the digest, it is included for compatibility with various software packages. 3.3 Key Values All keys within the CryptoAuthentication family are 256 bits long. The ATSHA204 uses these keys as part of the messages hashed with the MAC, CheckMac, HMAC, and GenDig commands. Any slot in the data zone of the EEPROM can be used to store a key, though the value will be secret only if the read and write permissions are properly set within SlotConfig (including the IsSecret bit). Except for the GenDig command, all but the least-significant four bits of the KeyID parameter are ignored in determining the source of key data. Only the least-significant four bits are used to select one of the slots of the data zone. See Section 3.3.7, below, for information on how GenDig uses other KeyID values. In all cases for which a SHA-256 calculation is performed using Param2, the entire 16-bit KeyID as input is included in the message. |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |