Linux-ATSHA204-I2C-140713a_new

所属分类:嵌入式Linux
开发工具:LINUX
文件大小:112KB
下载次数:50
上传日期:2017-09-13 17:28:32
上 传 者MIPS_ucos初学者
说明:  来自厂商源码。实现对加密芯片atsha204的操作,通讯可使用i2c或者GPIO
(From vendor source code. Encryption chip atsha204 operation, communication can use I2C or GPIO)

文件列表:
Linux-ATSHA204-I2C-140713a (0, 2014-07-14)
Linux-ATSHA204-I2C-140713a\linux-sha204 (31018, 2014-07-13)
Linux-ATSHA204-I2C-140713a\main.c (873, 2014-07-07)
Linux-ATSHA204-I2C-140713a\main.o (1700, 2014-07-13)
Linux-ATSHA204-I2C-140713a\Makefile (1480, 2013-07-30)
Linux-ATSHA204-I2C-140713a\Parse (0, 2014-07-13)
Linux-ATSHA204-I2C-140713a\parse.o (1444, 2014-07-13)
Linux-ATSHA204-I2C-140713a\Parse\parse.c (1417, 2013-07-19)
Linux-ATSHA204-I2C-140713a\Parse\parse.h (296, 2013-07-19)
Linux-ATSHA204-I2C-140713a\Project_state.txt (569, 2013-08-16)
Linux-ATSHA204-I2C-140713a\SHA204Library (0, 2014-07-13)
Linux-ATSHA204-I2C-140713a\SHA204Library\bitbang_config.h (6589, 2011-07-19)
Linux-ATSHA204-I2C-140713a\SHA204Library\bitbang_phys.c (9914, 2011-07-19)
Linux-ATSHA204-I2C-140713a\SHA204Library\i2c_phys.h (3550, 2011-07-19)
Linux-ATSHA204-I2C-140713a\SHA204Library\sha204_comm.c (10190, 2013-07-19)
Linux-ATSHA204-I2C-140713a\SHA204Library\sha204_comm.h (2635, 2011-09-27)
Linux-ATSHA204-I2C-140713a\SHA204Library\sha204_comm_marshaling.c (23595, 2013-07-19)
Linux-ATSHA204-I2C-140713a\SHA204Library\sha204_comm_marshaling.h (24800, 2014-07-07)
Linux-ATSHA204-I2C-140713a\SHA204Library\sha204_config.h (5213, 2011-08-02)
Linux-ATSHA204-I2C-140713a\SHA204Library\sha204_i2c.c (9592, 2014-07-04)
Linux-ATSHA204-I2C-140713a\SHA204Library\sha204_lib_return_codes.h (3192, 2011-08-02)
Linux-ATSHA204-I2C-140713a\SHA204Library\sha204_physical.h (2550, 2011-09-27)
Linux-ATSHA204-I2C-140713a\SHA204Library\sha204_swi.c (6584, 2011-08-02)
Linux-ATSHA204-I2C-140713a\SHA204Library\swi_phys.h (2395, 2011-09-27)
Linux-ATSHA204-I2C-140713a\SHA204Library\timer_utilities.c (3953, 2011-07-19)
Linux-ATSHA204-I2C-140713a\SHA204Library\timer_utilities.h (1326, 2011-09-27)
Linux-ATSHA204-I2C-140713a\SHA204Library\uart_config.h (3288, 2011-09-27)
Linux-ATSHA204-I2C-140713a\SHA204Library\uart_phys.c (7383, 2012-10-01)
Linux-ATSHA204-I2C-140713a\sha204_app.c (51892, 2014-07-13)
Linux-ATSHA204-I2C-140713a\sha204_app.h (1830, 2014-07-08)
Linux-ATSHA204-I2C-140713a\sha204_app.o (21160, 2014-07-13)
Linux-ATSHA204-I2C-140713a\sha204_app_diff.txt (8749, 2014-07-13)
Linux-ATSHA204-I2C-140713a\sha204_app_diff2.txt (8749, 2014-07-13)
Linux-ATSHA204-I2C-140713a\sha204_app_ori.c (59955, 2014-07-13)
Linux-ATSHA204-I2C-140713a\sha204_comm.o (1884, 2014-07-13)
Linux-ATSHA204-I2C-140713a\sha204_comm_marshaling.o (2988, 2014-07-13)
Linux-ATSHA204-I2C-140713a\sha204_helper (0, 2014-07-13)
Linux-ATSHA204-I2C-140713a\sha204_helper.o (4448, 2014-07-13)
Linux-ATSHA204-I2C-140713a\sha204_helper\sha204_helper.c (32566, 2014-07-07)
... ...

This example application provide the implementation of I2C interface of ATSHA204 library to Linux user space. Run the command by specifying the i2c_device in the command parameter, i.e. "linux-sha204 0" if the SHA204 is connected to i2c-0. This example receives ATSHA204 command from the command line. The command should follow this format " ()". For example, send "DevRev (30 00 00 00)" via command line to execute DevRev command of ATSHA204. There are also some additional command sequences: 1) Nonce passthrough - MAC tempkey tempkey. command: "test (A0)" 2) Nonce passthrough - HMAC command: "test (A1)" 3) CheckMac copy operation command" "test (A2)" 4) Nonce passthrough - MAC, Nonce passthrough - CheckMac command: "test (A3)" 5) Encrypt write for secure personalization ATSHA204A command: "test (A4) 6) Encrypt write for secure personalization ATSHA204 command: "test (A5) 7) Encrypt write all of data slot for secure personalization ATSHA204A (tested without perform GenDig specifying transport key) command: "test (A6) Below is the content of the ATSHA204 example application. +-----------------------------------------+------------------------------------------------------------------------------------------+ | File | Brief | +-----------------------------------------+------------------------------------------------------------------------------------------+ | Parse/parse.c | Functions for Command Parser | | Parse/parse.h | Definitions and Prototypes for Command Parser | | sha204_helper/sha256/sha256.c | SHA256 soft implementation | | sha204_helper/sha256/sha256.h | Definitions and Prototypes for SHA256 soft implementation | | sha204_helper/sha204_helper.c | Functions for calculating SHA256 digest as SHA204 | | sha204_helper/sha204_helper.h | Definitions and Prototypes for calculating SHA256 digest as SHA204 | | SHA204Library/ | ATSHA204 Library files directory | | Utility/utility.c | Functions for Converting Hex to ASCII and Vice Versa | | Utility/utility.h | Definitions and Prototypes for Converting Hex to ASCII and Vice Versa | | main.c | Application entry point | | sha204_test.c | ATSHA204 Single Execute Function and Sequence Functions | | sha204_test.h | Prototype for ATSHA204 Example Function | +-----------------------------------------+------------------------------------------------------------------------------------------+

近期下载者

相关文件


收藏者