Skip to content

Commit

Permalink
Release v3.5.0 (20230314)
Browse files Browse the repository at this point in the history
  • Loading branch information
bryan-hunt committed Mar 15, 2023
1 parent 9bb492d commit 7901321
Show file tree
Hide file tree
Showing 108 changed files with 2,951 additions and 1,403 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ cmake_minimum_required(VERSION 3.1.0)
project (cryptoauthlib C)

# Set the current release version
set(VERSION "3.4.1")
set(VERSION "3.5.0")
set(VERSION_MAJOR 3)
set(VERSION_MINOR 4)
set(VERSION_PATCH 1)
set(VERSION_MINOR 5)
set(VERSION_PATCH 0)

# Build Options
option(BUILD_TESTS "Create Test Application with library" OFF)
Expand Down
1 change: 1 addition & 0 deletions app/wpc/atca_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ extern atca_plib_i2c_api_t sercom2_plib_i2c_api;
#define ATCAB_AES_EN FEATURE_DISABLED
#define ATCAB_AES_GCM_EN FEATURE_DISABLED
#define ATCAB_COUNTER_EN FEATURE_DISABLED
#define ATCAB_DELETE_EN FEATURE_DISABLED
#define ATCAB_DERIVEKEY_EN FEATURE_DISABLED
#define ATCAB_ECDH_EN FEATURE_DISABLED
#define ATCAB_ECDH_ENC_EN FEATURE_DISABLED
Expand Down
4 changes: 2 additions & 2 deletions app/wpc/wpc_apis.c
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ ATCA_STATUS wpc_msg_digests(
if (ATCA_SUCCESS == wpccert_get_slot_info(&handle, NULL, slot))
{
if (ATCA_SUCCESS != (status = atcab_read_bytes_zone_ext(device, ATCA_ZONE_DATA, handle, 0,
digest, ATCA_SHA256_DIGEST_SIZE+1)))
digest, ATCA_SHA256_DIGEST_SIZE)))
{
ATCA_TRACE(status, "atcab_read_bytes_zone execution failed");
return wpc_msg_error(response, resp_len, WPC_ERROR_UNSPECIFIED, 0);
Expand Down Expand Up @@ -419,7 +419,7 @@ ATCA_STATUS wpc_auth_signature(
{
ATCA_STATUS status;

uint8_t TBSAuth_data[53];
uint8_t TBSAuth_data[54];
uint8_t tbs_digest[ATCA_SHA_DIGEST_SIZE];
uint8_t *data = TBSAuth_data;

Expand Down
Binary file modified cryptoauthlib-manual.pdf
Binary file not shown.
7 changes: 7 additions & 0 deletions harmony/config/cryptoauthlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,6 +520,13 @@ def instantiateComponent(calComponent):
calCounterEnabledSymbol.setVisible(True)
calCounterEnabledSymbol.setDefaultValue(True)

# DELETE
calDeleteEnabledSymbol = calComponent.createBooleanSymbol("cal_delete", deviceCommands)
calDeleteEnabledSymbol.setLabel("Support Delete?")
calDeleteEnabledSymbol.setDescription("Enable support for Delete Command")
calDeleteEnabledSymbol.setVisible(True)
calDeleteEnabledSymbol.setDefaultValue(False)

# DERIVEKEY
calDerivekeyEnabledSymbol = calComponent.createBooleanSymbol("cal_derivekey", deviceCommands)
calDerivekeyEnabledSymbol.setLabel("Support Derivekey?")
Expand Down
6 changes: 3 additions & 3 deletions harmony/config/device_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
*****************************************************************************"""

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

caldevcfglist = []
Expand Down Expand Up @@ -183,7 +183,7 @@ def instantiateComponent(deviceComponent, index):
deviceAddress = deviceComponent.createHexSymbol("I2C_ADDR", interfaceType)
deviceAddress.setLabel("I2C Address")

if 'ECC204' in deviceID:
if (('ECC204' in deviceID) or ('TA010' in deviceID)):
deviceAddress.setDefaultValue(_DEFAULT_I2C_ADDRESS['ecc204'])
elif 'ECC' in deviceID:
deviceAddress.setDefaultValue(_DEFAULT_I2C_ADDRESS['ecc'])
Expand Down
2 changes: 1 addition & 1 deletion harmony/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

import os

_CALIB_SUPPORTED_DEVICES = ['ATECC108A', 'ATECC508A', 'ATECC608', 'ATSHA204A', 'ATSHA206A', 'ECC204']
_CALIB_SUPPORTED_DEVICES = ['ATECC108A', 'ATECC508A', 'ATECC608', 'ATSHA204A', 'ATSHA206A', 'ECC204', 'TA010']
_TALIB_SUPPORTED_DEVICES = ['TA100']

def loadModule():
Expand Down
7 changes: 7 additions & 0 deletions harmony/templates/atca_config.h.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,13 @@
<#lt>#define ATCAB_COUNTER_EN (FEATURE_ENABLED)
</#if>

/* Delete Command */
<#if cal_delete == false>
<#lt>#define ATCAB_DELETE_EN (FEATURE_DISABLED)
<#else>
<#lt>#define ATCAB_DELETE_EN (FEATURE_ENABLED)
</#if>

/* Derivekey Command */
<#if cal_derivekey == false>
<#lt>#define ATCAB_DERIVEKEY_EN (FEATURE_DISABLED)
Expand Down
3 changes: 2 additions & 1 deletion lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ option(ATCA_ATECC508A_SUPPORT "Include support for ATECC508A device" ON)
option(ATCA_ATECC608_SUPPORT "Include support for ATECC608 device" ON)
option(ATCA_TA100_SUPPORT "Include support for TA100 device" OFF)
option(ATCA_ECC204_SUPPORT "Include support for ECC204 device" ON)
option(ATCA_TA010_SUPPORT "Include support for TA010 device" ON)

# RTOS Selection
if (TARGET zephyr_interface)
Expand Down Expand Up @@ -210,7 +211,7 @@ endif(ATCA_OPENSSL)

if (ATCA_ATSHA204A_SUPPORT OR ATCA_ATSHA206A_SUPPORT OR
ATCA_ATECC108A_SUPPORT OR ATCA_ATECC508A_SUPPORT OR
ATCA_ATECC608_SUPPORT OR ATCA_ECC204_SUPPORT)
ATCA_ATECC608_SUPPORT OR ATCA_ECC204_SUPPORT OR ATCA_TA010_SUPPORT)
set(LIB_SRC ${LIB_SRC} ${CALIB_SRC} ${HOST_SRC})
endif()

Expand Down
Loading

0 comments on commit 7901321

Please sign in to comment.