Difference between revisions of "CryptoAuthentication SOIC Xplained Pro Starter Kit (DM320109)"

From Embedded Lab Vienna for IoT & Security
Jump to navigation Jump to search
Line 66: Line 66:


== Used  Software and Hardware ==
== Used  Software and Hardware ==
The links for the used software Microchip Studio and the used hardware CryptoAuthentication SOIC Xplained Pro Starter Kit (DM320109) can be found at the beginning of this article under "requirements" and "description".
The links for the used software Microchip Studio and the used hardware CryptoAuthentication SOIC Xplained Pro Starter Kit (DM320109) and its microchips can be found at the beginning of this article under "requirements" and "description".





Revision as of 17:31, 31 October 2021

Summary

!!!!  W O R K   I N   P R O G R E S S   !!!! (Petra Fenzel)

This documentation describes the usage of the CryptoAuthentication SOIC Xplained Pro Starter Kit (DM320109)

Requirements


Description

The CryptoAuthentication SOIC Xplained Pro Starter Kit (DM320109) consists of:


Implementation of ATSHA204A

An example implementation for the ATSHA204A can be found under Philly's Tutorial ATSHA204A - A Full Tutorial [1]

The example program implements:

  • Device Details like serial number, device number, lock config
  • Locking the configuration, OTP and Data Zone
  • HMAC challenge
  • GenDig example
  • Read encrypted slots
  • Creating diversified keys for challenges
  • CheckMac
  • DeriveKey


Usage:

  • The program code can be found on Phil's website: DemoProject
  • Download the code and open it in Microchip Studio, build it and flash it onto your DM320109 board
  • To flash the code connect your DM320109 board with the USB cable at the USB EDBG port and your PC
  • Open a terminal program like TeraTerm Tera Term Download
  • Terminal / Tera Term port setup:
  Port          according to your device manager e.g. COM3
  Speed         9600
  Data          8 bit
  Parity        none
  Stop bits     1 bit
  Flow control  none
  • Press then the reset button on your DM320109 board and in the Tera Term terminal the menu of the program will appear
  • You can navigate through the different implementations via the menu

Implementation for ATAES132A

File:AES132ADatasheet.pdf -> that Datasheet is made available from Atmel to get a better understanding of the ATAES132A Chip.

The ATAES132A Chip is NOT based on the Cryptoauthlib. Therefore Atmel doesn't offer complete or functioning example codes for this Chip. There are some example codes that might be working but only for the SAMD21 Xplained Pro board not the SAMR21 Xplained Pro B board, which we are using. I tried to use those example codes, with some changes so it would be working with our board, but I got ERROR messages each time. The main error probably is, that the SAMR21 Xplained Pro Microcontroller is not able to connect to the ATAES132A chip as a I2C slave. Some other problems are, that the example codes for the SAMD21 Xplained Pro board rely too much on that board, so it is nearly impossible to change it for the SAMR21 Xplained Pro B board. Another problem is that Atmel don't even offer an example code to connect to the extension boards, so I wasn't able to check if the ATAES132A chip is working, because no connection could be build. One of the codes is probably working if the connection could be established, because I got a build access and I could load the code onto the board, but I only got negative replies over the Usart.

Here is the link to the projects I tried: [2]


Cryptographic algorithms

Click here for Pdf

User Guides and Data Sheets


Used Software and Hardware

The links for the used software Microchip Studio and the used hardware CryptoAuthentication SOIC Xplained Pro Starter Kit (DM320109) and its microchips can be found at the beginning of this article under "requirements" and "description".


Courses

References

Implementation:


Hash and Cryptographic Algorithms: