资源简介
ATECC08A加密芯片配置 Provision 代码Demo,实现了Atecc508A自动化配置,包括初始化配置Config、DataZone,以及密钥、证书读写,还包括X.509证书生成、重组及解析的Demo。经过配置并Lock后,才能使用该加密芯片。
代码片段和文件信息
/** \file provision.c
* \brief provisioning phase of example
*
* Copyright (c) 2015 Atmel Corporation. All rights reserved.
*
* \asf_license_start
*
* \page License
*
* Redistribution and use in source and binary forms with or without
* modification are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice
* this list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* 3. The name of Atmel may not be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* 4. This software may only be redistributed and used in connection with an
* Atmel microcontroller product.
*
* THIS SOFTWARE IS PROVIDED BY ATMEL “AS IS“ AND ANY EXPRESS OR IMPLIED
* WARRANTIES INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
* MERCHANTABILITY FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE
* EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR
* ANY DIRECT INDIRECT INCIDENTAL SPECIAL EXEMPLARY OR CONSEQUENTIAL
* DAMAGES (INCLUDING BUT NOT LIMITED TO PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE DATA OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY WHETHER IN CONTRACT
* STRICT LIABILITY OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
* ANY WAY OUT OF THE USE OF THIS SOFTWARE EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
* \asf_license_stop
*/
#include “provision.h“
#include “cert_def_1_signer.h“
#include “cert_def_2_device.h“
#include “basic/atca_basic.h“
#include
/** \defgroup auth Node authentication stages for node-auth-basic example
*
@{ */
// modified W25 ECC508 configuration (slot 7 has external sign turned on for cert testing)
static const uint8_t g_ecc_configdata[128] = {
0x01 0x23 0x00 0x00 0x00 0x00 0x50 0x00 0x04 0x05 0x06 0x07 0xEE 0x00 0x01 0x00
0xC0 0x00 0x55 0x00 0x8F 0x20 0xC4 0x44 0x87 0x20 0xC4 0x44 0x8F 0x0F 0x8F 0x8F
0x9F 0x8F 0x83 0x64 0xC4 0x44 0xC4 0x44 0x0F 0x0F 0x0F 0x0F 0x0F 0x0F 0x0F 0x0F
0x0F 0x0F 0x0F 0x0F 0xFF 0xFF 0xFF 0xFF 0x00 0x00 0x00 0x00 0xFF 0xFF 0xFF 0xFF
0x00 0x00 0x00 0x00 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF
0xFF 0xFF 0xFF 0xFF 0x00 0x00 0x00 0x00 0xFF 0xFF 0x00 0x00 0x00 0x00 0x00 0x00
0x33 0x00 0x1C 0x00 0x13 0x00 0x1C 0x00 0x3C 0x00 0x1C 0x00 0x1C 0x00 0x33 0x00
0x1C 0x00 0x1C 0x00 0x3C 0x00 0x3C 0x00 0x3C 0x00 0x3C 0x00 0x3C 0x00 0x3C 0x00 };
static const uint8_t g_signer_ca_private_key[36]
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 13832 2016-01-09 05:51 provision.c
文件 1877 2015-09-15 03:59 provision.h
- 上一篇:CCleaner 绿色免安装中文版
- 下一篇:wincc 动画显示
评论
共有 条评论