Skip to content

Commit

Permalink
Release v3.7.6 (20240926)
Browse files Browse the repository at this point in the history
  • Loading branch information
Srinivas-E committed Sep 29, 2024
1 parent 1dfc6d8 commit fe86379
Show file tree
Hide file tree
Showing 96 changed files with 5,288 additions and 1,219 deletions.
4 changes: 2 additions & 2 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.7.5")
set(VERSION "3.7.6")
set(VERSION_MAJOR 3)
set(VERSION_MINOR 7)
set(VERSION_PATCH 5)
set(VERSION_PATCH 6)

# Build Options
option(BUILD_TESTS "Create Test Application with library" OFF)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ Directory Structure
lib - primary library source code
lib/atcacert - certificate data and i/o methods
lib/calib - the Basic Cryptoauth API
lib/crypto - Software crypto implementations external crypto libraries support (primarily SHA1 and SHA256)
lib/crypto - Software crypto implementations external crypto libraries support (primarily SHA1 and SHA2)
lib/hal - hardware abstraction layer code for supporting specific platforms
lib/host - support functions for common host-side calculations
lib/jwt - json web token functions
Expand Down
7 changes: 7 additions & 0 deletions app/kit_host/ascii_kit_host.c
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,11 @@ static ATCA_STATUS kit_host_ca_talk(ascii_kit_host_context_t* ctx, int argc, cha

if (ctx && argc && response && rlen)
{
#ifdef __XC8
static ATCAPacket packet;
#else
ATCAPacket packet;
#endif
size_t plen = sizeof(packet) - 2;

atcab_hex2bin(argv[0], strlen(argv[0]), (uint8_t*)&packet.txsize, &plen);
Expand All @@ -293,6 +297,9 @@ static ATCA_STATUS kit_host_ca_talk(ascii_kit_host_context_t* ctx, int argc, cha
{
*rlen = kit_host_format_response(response, *rlen, status, NULL, 0);
}
#ifdef __XC8
(void)memset(&packet, 0, sizeof(ATCAPacket));
#endif
}
return status;
}
Expand Down
2 changes: 1 addition & 1 deletion app/pkcs11/trust_pkcs11_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ CK_RV pkcs11_trust_load_objects(pkcs11_slot_ctx_ptr pSlot)

if (NULL == pSlot)
{
rv = CKR_ARGUMENTS_BAD;
return CKR_ARGUMENTS_BAD;
}

if (CKR_OK == rv)
Expand Down
6 changes: 4 additions & 2 deletions app/tng/tng_atcacert_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ int tng_atcacert_read_device_cert(uint8_t* cert, size_t* cert_size, const uint8_
int ret;
const atcacert_def_t* cert_def = NULL;
uint8_t ca_public_key[72];
cal_buffer ca_pubkey = CAL_BUF_INIT(ATCA_ECCP256_PUBKEY_SIZE, ca_public_key);

ret = tng_get_device_cert_def(&cert_def);
if (ret != ATCA_SUCCESS)
Expand All @@ -88,7 +89,7 @@ int tng_atcacert_read_device_cert(uint8_t* cert, size_t* cert_size, const uint8_
cert_def->ca_cert_def,
signer_cert,
cert_def->ca_cert_def->cert_template_size, // Cert size doesn't need to be accurate
ca_public_key);
&ca_pubkey);
if (ret != ATCACERT_E_SUCCESS)
{
return ret;
Expand Down Expand Up @@ -179,6 +180,7 @@ int tng_atcacert_signer_public_key(uint8_t* public_key, uint8_t* cert)
int ret;
const atcacert_def_t* cert_def = NULL;
uint8_t raw_public_key[72];
cal_buffer pubkey = CAL_BUF_INIT(ATCA_ECCP256_PUBKEY_SIZE, public_key);

if (public_key == NULL)
{
Expand All @@ -192,7 +194,7 @@ int tng_atcacert_signer_public_key(uint8_t* public_key, uint8_t* cert)
&g_tngtls_cert_def_1_signer,
cert,
g_tngtls_cert_def_1_signer.cert_template_size, // cert size doesn't need to be accurate
public_key);
&pubkey);
}
else
{
Expand Down
140 changes: 0 additions & 140 deletions app/wpc/atca_config.h

This file was deleted.

Loading

0 comments on commit fe86379

Please sign in to comment.