Skip to content

Commit 7901321

Browse files
committed
Release v3.5.0 (20230314)
1 parent 9bb492d commit 7901321

File tree

108 files changed

+2951
-1403
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

108 files changed

+2951
-1403
lines changed

CMakeLists.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ cmake_minimum_required(VERSION 3.1.0)
22
project (cryptoauthlib C)
33

44
# Set the current release version
5-
set(VERSION "3.4.1")
5+
set(VERSION "3.5.0")
66
set(VERSION_MAJOR 3)
7-
set(VERSION_MINOR 4)
8-
set(VERSION_PATCH 1)
7+
set(VERSION_MINOR 5)
8+
set(VERSION_PATCH 0)
99

1010
# Build Options
1111
option(BUILD_TESTS "Create Test Application with library" OFF)

app/wpc/atca_config.h

+1
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ extern atca_plib_i2c_api_t sercom2_plib_i2c_api;
9696
#define ATCAB_AES_EN FEATURE_DISABLED
9797
#define ATCAB_AES_GCM_EN FEATURE_DISABLED
9898
#define ATCAB_COUNTER_EN FEATURE_DISABLED
99+
#define ATCAB_DELETE_EN FEATURE_DISABLED
99100
#define ATCAB_DERIVEKEY_EN FEATURE_DISABLED
100101
#define ATCAB_ECDH_EN FEATURE_DISABLED
101102
#define ATCAB_ECDH_ENC_EN FEATURE_DISABLED

app/wpc/wpc_apis.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ ATCA_STATUS wpc_msg_digests(
220220
if (ATCA_SUCCESS == wpccert_get_slot_info(&handle, NULL, slot))
221221
{
222222
if (ATCA_SUCCESS != (status = atcab_read_bytes_zone_ext(device, ATCA_ZONE_DATA, handle, 0,
223-
digest, ATCA_SHA256_DIGEST_SIZE+1)))
223+
digest, ATCA_SHA256_DIGEST_SIZE)))
224224
{
225225
ATCA_TRACE(status, "atcab_read_bytes_zone execution failed");
226226
return wpc_msg_error(response, resp_len, WPC_ERROR_UNSPECIFIED, 0);
@@ -419,7 +419,7 @@ ATCA_STATUS wpc_auth_signature(
419419
{
420420
ATCA_STATUS status;
421421

422-
uint8_t TBSAuth_data[53];
422+
uint8_t TBSAuth_data[54];
423423
uint8_t tbs_digest[ATCA_SHA_DIGEST_SIZE];
424424
uint8_t *data = TBSAuth_data;
425425

cryptoauthlib-manual.pdf

0 Bytes
Binary file not shown.

harmony/config/cryptoauthlib.py

+7
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,13 @@ def instantiateComponent(calComponent):
520520
calCounterEnabledSymbol.setVisible(True)
521521
calCounterEnabledSymbol.setDefaultValue(True)
522522

523+
# DELETE
524+
calDeleteEnabledSymbol = calComponent.createBooleanSymbol("cal_delete", deviceCommands)
525+
calDeleteEnabledSymbol.setLabel("Support Delete?")
526+
calDeleteEnabledSymbol.setDescription("Enable support for Delete Command")
527+
calDeleteEnabledSymbol.setVisible(True)
528+
calDeleteEnabledSymbol.setDefaultValue(False)
529+
523530
# DERIVEKEY
524531
calDerivekeyEnabledSymbol = calComponent.createBooleanSymbol("cal_derivekey", deviceCommands)
525532
calDerivekeyEnabledSymbol.setLabel("Support Derivekey?")

harmony/config/device_instance.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
*****************************************************************************"""
2424

2525
_DEFAULT_I2C_ADDRESS = {'ecc': 0xC0, 'sha': 0xC8, 'ecc204': 0x66, 'ta100': 0x2e}
26-
_SWI_DEVICES = ['ATSHA204A', 'ATSHA206A', 'ATECC108A', 'ATECC508A', 'ATECC608', 'ECC204']
27-
_I2C_DEVICES = ['ATSHA204A', 'ATECC108A', 'ATECC508A', 'ATECC608', 'TA100', 'ECC204']
26+
_SWI_DEVICES = ['ATSHA204A', 'ATSHA206A', 'ATECC108A', 'ATECC508A', 'ATECC608', 'ECC204', 'TA010']
27+
_I2C_DEVICES = ['ATSHA204A', 'ATECC108A', 'ATECC508A', 'ATECC608', 'TA100', 'ECC204', 'TA010']
2828
_SPI_DEVICES = ['TA100']
2929

3030
caldevcfglist = []
@@ -183,7 +183,7 @@ def instantiateComponent(deviceComponent, index):
183183
deviceAddress = deviceComponent.createHexSymbol("I2C_ADDR", interfaceType)
184184
deviceAddress.setLabel("I2C Address")
185185

186-
if 'ECC204' in deviceID:
186+
if (('ECC204' in deviceID) or ('TA010' in deviceID)):
187187
deviceAddress.setDefaultValue(_DEFAULT_I2C_ADDRESS['ecc204'])
188188
elif 'ECC' in deviceID:
189189
deviceAddress.setDefaultValue(_DEFAULT_I2C_ADDRESS['ecc'])

harmony/module.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
import os
2525

26-
_CALIB_SUPPORTED_DEVICES = ['ATECC108A', 'ATECC508A', 'ATECC608', 'ATSHA204A', 'ATSHA206A', 'ECC204']
26+
_CALIB_SUPPORTED_DEVICES = ['ATECC108A', 'ATECC508A', 'ATECC608', 'ATSHA204A', 'ATSHA206A', 'ECC204', 'TA010']
2727
_TALIB_SUPPORTED_DEVICES = ['TA100']
2828

2929
def loadModule():

harmony/templates/atca_config.h.ftl

+7
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,13 @@
196196
<#lt>#define ATCAB_COUNTER_EN (FEATURE_ENABLED)
197197
</#if>
198198

199+
/* Delete Command */
200+
<#if cal_delete == false>
201+
<#lt>#define ATCAB_DELETE_EN (FEATURE_DISABLED)
202+
<#else>
203+
<#lt>#define ATCAB_DELETE_EN (FEATURE_ENABLED)
204+
</#if>
205+
199206
/* Derivekey Command */
200207
<#if cal_derivekey == false>
201208
<#lt>#define ATCAB_DERIVEKEY_EN (FEATURE_DISABLED)

lib/CMakeLists.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ option(ATCA_ATECC508A_SUPPORT "Include support for ATECC508A device" ON)
4444
option(ATCA_ATECC608_SUPPORT "Include support for ATECC608 device" ON)
4545
option(ATCA_TA100_SUPPORT "Include support for TA100 device" OFF)
4646
option(ATCA_ECC204_SUPPORT "Include support for ECC204 device" ON)
47+
option(ATCA_TA010_SUPPORT "Include support for TA010 device" ON)
4748

4849
# RTOS Selection
4950
if (TARGET zephyr_interface)
@@ -210,7 +211,7 @@ endif(ATCA_OPENSSL)
210211

211212
if (ATCA_ATSHA204A_SUPPORT OR ATCA_ATSHA206A_SUPPORT OR
212213
ATCA_ATECC108A_SUPPORT OR ATCA_ATECC508A_SUPPORT OR
213-
ATCA_ATECC608_SUPPORT OR ATCA_ECC204_SUPPORT)
214+
ATCA_ATECC608_SUPPORT OR ATCA_ECC204_SUPPORT OR ATCA_TA010_SUPPORT)
214215
set(LIB_SRC ${LIB_SRC} ${CALIB_SRC} ${HOST_SRC})
215216
endif()
216217

0 commit comments

Comments
 (0)