Skip to content

Commit af1ca6b

Browse files
committed
Release v3.2.4 (20201017)
1 parent c2b38b2 commit af1ca6b

Some content is hidden

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

50 files changed

+1309
-210
lines changed

CMakeLists.txt

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ cmake_minimum_required(VERSION 2.6.4)
22
project (cryptoauthlib)
33

44
# Set the current release version
5-
set(VERSION "3.2.3")
5+
set(VERSION "3.2.4")
66
set(VERSION_MAJOR 3)
77
set(VERSION_MINOR 2)
8-
set(VERSION_PATCH 3)
8+
set(VERSION_PATCH 4)
99

1010
# Build Options
1111
option(BUILD_TESTS "Create Test Application with library" OFF)
@@ -21,6 +21,8 @@ if(WIN32)
2121
string(REPLACE "\\" "/" LOCAL_APP_DATA "$ENV{LOCALAPPDATA}/Microchip")
2222
set(DEFAULT_LIB_PATH "${LOCAL_APP_DATA}" CACHE
2323
STRING "The default absolute library path")
24+
set(DEFAULT_INC_PATH "${LOCAL_APP_DATA}/${PROJECT_NAME}" CACHE
25+
STRING "The default include install path")
2426
set(DEFAULT_CONF_PATH "${LOCAL_APP_DATA}" CACHE
2527
STRING "The default location of ${PROJECT_NAME}.conf")
2628
set(DEFAULT_STORE_PATH "${LOCAL_APP_DATA}/${PROJECT_NAME}" CACHE
@@ -29,6 +31,8 @@ else()
2931
include(GNUInstallDirs)
3032
set(DEFAULT_LIB_PATH "${CMAKE_INSTALL_FULL_LIBDIR}" CACHE
3133
STRING "The default absolute library path")
34+
set(DEFAULT_INC_PATH "${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME}" CACHE
35+
STRING "The default include install path")
3236
set(DEFAULT_CONF_PATH "${CMAKE_INSTALL_FULL_SYSCONFDIR}/${PROJECT_NAME}" CACHE
3337
STRING "The default location of ${PROJECT_NAME}.conf")
3438
set(DEFAULT_STORE_PATH "${CMAKE_INSTALL_FULL_LOCALSTATEDIR}/lib/${PROJECT_NAME}" CACHE
@@ -82,8 +86,12 @@ install(CODE "
8286
DESTINATION ${DEFAULT_CONF_PATH})
8387
endif()
8488
")
85-
install(DIRECTORY DESTINATION ${DEFAULT_STORE_PATH})
86-
install(CODE "execute_process(COMMAND chmod 1777 ${DEFAULT_STORE_PATH})")
89+
install(DIRECTORY DESTINATION ${DEFAULT_STORE_PATH}
90+
DIRECTORY_PERMISSIONS
91+
OWNER_EXECUTE OWNER_WRITE OWNER_READ
92+
GROUP_EXECUTE GROUP_WRITE GROUP_READ
93+
WORLD_EXECUTE WORLD_WRITE WORLD_READ
94+
)
8795
install(CODE "
8896
if(NOT EXISTS ${DEFAULT_STORE_PATH}/slot.conf.tmpl)
8997
file(INSTALL ${PROJECT_SOURCE_DIR}/app/pkcs11/slot.conf.tmpl

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
CryptoAuthLib - Microchip CryptoAuthentication Library
1+
CryptoAuthLib - Microchip CryptoAuthentication Library {#mainpage}
22
====================================================
33

44
Introduction
@@ -10,6 +10,7 @@ device. The family of devices supported currently are:
1010
- [ATECC108A](http://www.microchip.com/ATECC108A)
1111
- [ATECC508A](http://www.microchip.com/ATECC508A)
1212
- [ATECC608A](http://www.microchip.com/ATECC608A)
13+
- [ATECC608B](http://www.microchip.com/ATECC608B)
1314

1415
The best place to start is with the [Microchip Trust Platform](https://www.microchip.com/design-centers/security-ics/trust-platform)
1516

app/README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
1-
app directory - Purpose
2-
===================
1+
Application Support
2+
========================
33

44
This directory is for application specific implementation of various use cases.
55

66
Methods in this directory provide a simple API to perform potentially complex
77
combinations of calls to the main library or API.
88

9+
@subpage app_info_ip_prot
10+
11+
@subpage app_info_pkcs11
12+
13+
@subpage app_info_secure_boot

app/ip_protection/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
IP Protection with Symmetric Authentication
2-
------------------------
2+
===========================================
3+
@page app_info_ip_prot IP Protection with Symmetric Authentication
4+
35
The IP protection can be easily integrated to the existing projects.The user project should include symmetric_authentication.c & symmetric_authentication.h files which contains the api
46
- **symmetric_authenticate()** - For Performing the authentication between host & device.
57

app/pkcs11/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
PKCS11 Application Information
2+
===========================================
3+
@page app_info_pkcs11 PKCS11 Application Information
4+
15
# Setting up cryptoauthlib as a PKCS11 Provider for your system (LINUX)
26

37
These instructions are for building, installing and configuring cryptoauthlib as a pkcs11
@@ -341,4 +345,3 @@ $ p11tool --provider=/usr/lib/libcryptoauth.so
341345
6e:bf:00:e2:61:f2:7c:82:10:d6:87:d8:06:0f:10:3b:d8:d9
342346
```
343347

344-

app/secure_boot/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
# Secure boot using ATECC608
1+
Secure boot using ATECC608
2+
=========================================================
3+
@page app_info_secure_boot Secure boot using ATECC608
24

35
The SecureBoot command is a new feature on the
46
[ATECC608A](https://www.microchip.com/wwwproducts/en/ATECC608A) device compared
@@ -80,4 +82,4 @@ Examples
8082
-----------
8183
For more information about secure boot, please see the example implementation
8284
project and documentation at:
83-
https://github.com/MicrochipTech/cryptoauth_usecase_secureboot
85+
https://github.com/MicrochipTech/cryptoauth_usecase_secureboot

app/tng/readme.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,7 @@ This folder has a number of convenience functions for working with TNG devices
44
(currently ATECC608A-MAHTN-T).
55

66
These devices have standard certificates that can be easily read using the
7-
functions in tng_atcacert_client.h
7+
functions in tng_atcacert_client.h
8+
9+
@ingroup tng_
10+

app/tng/tng_atca.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,22 +45,22 @@ typedef struct
4545
static tng_cert_map_element g_tng_cert_def_map[] =
4646
{
4747
#ifdef ATCA_TNG_LEGACY_SUPPORT
48-
{ "wdNxAjae", &g_tngtls_cert_def_2_device },
49-
{ "Rsuy5YJh", &g_tngtls_cert_def_2_device },
50-
{ "BxZvm6q2", &g_tnglora_cert_def_2_device },
48+
{ "wdNxAjae", &g_tngtls_cert_def_2_device },
49+
{ "Rsuy5YJh", &g_tngtls_cert_def_2_device },
50+
{ "BxZvm6q2", &g_tnglora_cert_def_2_device },
5151
#endif
5252
#ifdef ATCA_TFLEX_SUPPORT
53-
{ "MKMwyhP1", &g_tflxtls_cert_def_4_device },
53+
{ "MKMwyhP1", &g_tflxtls_cert_def_4_device },
5454
#endif
5555
#ifdef ATCA_TNGTLS_SUPPORT
56-
{ "KQp2ZkD8", &g_tngtls_cert_def_3_device },
57-
{ "x6tjuZMy", &g_tngtls_cert_def_3_device },
56+
{ "KQp2ZkD8", &g_tngtls_cert_def_3_device },
57+
{ "x6tjuZMy", &g_tngtls_cert_def_3_device },
5858
#endif
5959
#ifdef ATCA_TNGLORA_SUPPORT
60-
{ "jsMu7iYO", &g_tnglora_cert_def_4_device },
61-
{ "09qJNxI3", &g_tnglora_cert_def_4_device },
60+
{ "jsMu7iYO", &g_tnglora_cert_def_4_device },
61+
{ "09qJNxI3", &g_tnglora_cert_def_4_device },
6262
#endif
63-
{ "", NULL }
63+
{ "", NULL }
6464
};
6565

6666
static const size_t g_tng_cert_def_cnt = sizeof(g_tng_cert_def_map) / sizeof(tng_cert_map_element) - 1;
@@ -122,4 +122,4 @@ ATCA_STATUS tng_get_device_pubkey(uint8_t *public_key)
122122
}
123123

124124
return status;
125-
}
125+
}

app/tng/tnglora_cert_def_1_signer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
extern const uint8_t g_tngtls_cert_template_1_signer[];
3232
extern const atcacert_cert_element_t g_tngtls_cert_elements_1_signer[];
3333

34-
const atcacert_def_t g_tnglora_cert_def_1_signer = {
34+
SHARED_LIB_EXPORT const atcacert_def_t g_tnglora_cert_def_1_signer = {
3535
.type = CERTTYPE_X509,
3636
.template_id = 1,
3737
.chain_id = 0,

app/tng/tnglora_cert_def_1_signer.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ extern "C" {
3737
/** \ingroup tng_
3838
* @{
3939
*/
40-
41-
extern const atcacert_def_t g_tnglora_cert_def_1_signer;
40+
ATCA_DLL const atcacert_def_t g_tnglora_cert_def_1_signer;
4241

4342
/** @} */
4443

0 commit comments

Comments
 (0)