Skip to content

Commit 055dd4a

Browse files
committed
Release v3.3.3 (20211006)
1 parent b177b31 commit 055dd4a

File tree

107 files changed

+2829
-2370
lines changed

Some content is hidden

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

107 files changed

+2829
-2370
lines changed

CMakeLists.txt

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

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

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

CONTRIBUTING.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Contribution Guidelines
2+
==========================
3+
4+
While this is an open source project there are a few considerations that make
5+
it somewhat unique in how it is managed. The first issue is that the development
6+
workflow is a hybrid between internal development and CI/CD systems and external
7+
develop and associated CI/CD systems.
8+
9+
* This project contains a mixture of licenses depending on the section. The vast
10+
majority is under a Microchip proprietary license that is restrictive.
11+
* Contributors must be aware of the specific license they are working under and
12+
must be aware that by submitting the patch that they agree to the terms of the
13+
license covering the target file.
14+
* Sources contained in the third_party path are covered by true open source
15+
licenses and as such are not bound by Microchip's license restrictions.
16+
* Third party contributions for HALs must be licensed under MIT, BSD (3 clause),
17+
or Apache 2.0 license and are placed in third_party/hal/<platform>
18+
* Pull requests (PR) must attest to reviewing of these rules, that licensing terms
19+
have been reviewed, the submitter has approval to submit the changes under the
20+
target license terms.
21+
22+

README.md

Lines changed: 3 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,6 @@ configuration is well tested, then you can commit it to a CryptoAuth Xplained
3636
Pro Extension, for example. Keep in mind that once you lock a device, it will
3737
not be changeable.
3838

39-
Licensing
40-
---------------------------
41-
42-
The CryptoAuthLib license can be found in the accompaning [license.txt](https://github.com/MicrochipTech/cryptoauthlib/blob/main/license.txt)
43-
file.
44-
45-
Cryptoauthlib also includes optional third party software subject to their own licensing terms. If you are using one of these optional components please
46-
verify the terms of those licenses as well in the third_party/<module> directories.
47-
4839

4940
Examples
5041
-----------
@@ -113,19 +104,9 @@ Host Device Support
113104
---------------
114105

115106
CryptoAuthLib will run on a variety of platforms from small micro-controllers
116-
to desktop host systems. The current list of hardware abstraction layer
117-
support includes:
118-
119-
Rich OS Hosts:
120-
- Linux Kit Protocol over HID USB
121-
- Linux I2C
122-
- Linux SPI
123-
- Windows Kit Protocol over HID USB
107+
to desktop host systems. See [hal readme](lib/hal/readme.md)
124108

125-
Microcontrollers:
126-
- Microchip AVR, SAM, & PIC families. See [hal readme](lib/hal/readme.md)
127-
128-
If you have specific microcontrollers or Rich OS platforms you need support
109+
If you have specific microcontrollers or platforms you need support
129110
for, please contact us through the Microchip portal with your request.
130111

131112
CryptoAuthLib Architecture
@@ -165,47 +146,7 @@ Tests
165146
There is a set of integration tests found in the test directory which will at least
166147
partially demonstrate the use of the objects. Some tests may depend upon a
167148
certain device being configured in a certain way and may not work for all
168-
devices or specific configurations of the device.
169-
170-
The test/cmd-processor.c file contains a main() function for running the tests.
171-
It implements a command-line interface. Typing help will bring up the list of
172-
commands available.
173-
174-
One first selects a device type, with one of the following commands:
175-
- 204 (ATSHA204A)
176-
- 108 (ATECC108A)
177-
- 508 (ATECC508A)
178-
- 608 (ATECC608A/B)
179-
180-
From there the following unit test sweets are available:
181-
- unit (test command builder functions)
182-
- basic (test basic API functions)
183-
- cio (test certification i/o functions)
184-
- cd (test certificate data functions)
185-
- util (test utility functions)
186-
- crypto (test software crypto functions)
187-
188-
Tests available depend on the lock level of the device. The unit tests
189-
won't lock the config or data zones automatically to allow retesting at desired
190-
lock levels. Therefore, some commands will need to be repeated after locking
191-
to exercise all available tests.
192-
193-
Starting from a blank device, the sequence of commands to exercise all unit
194-
tests is:
195-
```text
196-
unit
197-
basic
198-
lockcfg
199-
unit
200-
basic
201-
lockdata
202-
unit
203-
basic
204-
cio
205-
cd
206-
util
207-
crypto
208-
```
149+
devices or specific configurations of the device. See [test readme](test/README.md)
209150

210151
Using CryptoAuthLib (Microchip CryptoAuth Library)
211152
===========================================

app/kit_host/ascii_kit_host.c

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -342,8 +342,8 @@ static ATCA_STATUS kit_host_ca_select(ascii_kit_host_context_t* ctx, int argc, c
342342

343343
#if ATCA_CA_SUPPORT
344344
static kit_host_map_entry_t kit_host_ca_physical_map[] = {
345-
{ "select", kit_host_ca_select },
346-
{ NULL, NULL }
345+
{ "select", kit_host_ca_select },
346+
{ NULL, NULL }
347347
};
348348

349349
static ATCA_STATUS kit_host_ca_physical(ascii_kit_host_context_t* ctx, int argc, char* argv[], uint8_t* response, size_t* rlen)
@@ -353,12 +353,12 @@ static ATCA_STATUS kit_host_ca_physical(ascii_kit_host_context_t* ctx, int argc,
353353

354354
/* Cryptoauth Device commands */
355355
static kit_host_map_entry_t kit_host_ca_map[] = {
356-
{ "wake", kit_host_ca_wake },
357-
{ "idle", kit_host_ca_idle },
358-
{ "sleep", kit_host_ca_sleep },
359-
{ "talk", kit_host_ca_talk },
360-
{ "physical", kit_host_ca_physical },
361-
{ NULL, NULL }
356+
{ "wake", kit_host_ca_wake },
357+
{ "idle", kit_host_ca_idle },
358+
{ "sleep", kit_host_ca_sleep },
359+
{ "talk", kit_host_ca_talk },
360+
{ "physical", kit_host_ca_physical },
361+
{ NULL, NULL }
362362
};
363363

364364
static ATCA_STATUS kit_host_process_ca(ascii_kit_host_context_t* ctx, int argc, char* argv[], uint8_t* response, size_t* rlen)
@@ -520,8 +520,8 @@ static ATCA_STATUS kit_host_ta_receive(ascii_kit_host_context_t* ctx, int argc,
520520
}
521521

522522
static kit_host_map_entry_t kit_host_ta_physical_map[] = {
523-
{ "select", kit_host_ca_select }, /* Selection logic is the same */
524-
{ NULL, NULL }
523+
{ "select", kit_host_ca_select }, /* Selection logic is the same */
524+
{ NULL, NULL }
525525
};
526526

527527
static ATCA_STATUS kit_host_ta_physical(ascii_kit_host_context_t* ctx, int argc, char* argv[], uint8_t* response, size_t* rlen)
@@ -530,14 +530,14 @@ static ATCA_STATUS kit_host_ta_physical(ascii_kit_host_context_t* ctx, int argc,
530530
}
531531

532532
static kit_host_map_entry_t kit_host_ta_map[] = {
533-
{ "wake", kit_host_ta_wake },
534-
{ "idle", kit_host_ta_idle },
535-
{ "sleep", kit_host_ta_sleep },
536-
{ "talk", kit_host_ta_talk },
537-
{ "send", kit_host_ta_send },
538-
{ "receive", kit_host_ta_receive },
539-
{ "physical", kit_host_ta_physical },
540-
{ NULL, NULL }
533+
{ "wake", kit_host_ta_wake },
534+
{ "idle", kit_host_ta_idle },
535+
{ "sleep", kit_host_ta_sleep },
536+
{ "talk", kit_host_ta_talk },
537+
{ "send", kit_host_ta_send },
538+
{ "receive", kit_host_ta_receive },
539+
{ "physical", kit_host_ta_physical },
540+
{ NULL, NULL }
541541
};
542542

543543
ATCA_STATUS kit_host_process_ta(ascii_kit_host_context_t* ctx, int argc, char* argv[], uint8_t* response, size_t* rlen)
@@ -578,10 +578,10 @@ static ATCA_STATUS kit_host_board_get_device(ascii_kit_host_context_t* ctx, int
578578

579579

580580
static kit_host_map_entry_t kit_host_board_map[] = {
581-
{ "version", kit_host_board_get_version },
582-
{ "firmware", kit_host_board_get_firmware },
583-
{ "device", kit_host_board_get_device },
584-
{ NULL, NULL }
581+
{ "version", kit_host_board_get_version },
582+
{ "firmware", kit_host_board_get_firmware },
583+
{ "device", kit_host_board_get_device },
584+
{ NULL, NULL }
585585
};
586586

587587
static ATCA_STATUS kit_host_process_board(ascii_kit_host_context_t* ctx, int argc, char* argv[], uint8_t* response, size_t* rlen)
@@ -591,15 +591,15 @@ static ATCA_STATUS kit_host_process_board(ascii_kit_host_context_t* ctx, int arg
591591

592592

593593
static const kit_host_map_entry_t kit_host_target_map[] = {
594-
{ "board", kit_host_process_board },
594+
{ "board", kit_host_process_board },
595595
#if ATCA_CA_SUPPORT
596-
{ "ecc", kit_host_process_ca },
597-
{ "sha", kit_host_process_ca },
596+
{ "ecc", kit_host_process_ca },
597+
{ "sha", kit_host_process_ca },
598598
#endif
599599
#if ATCA_TA_SUPPORT
600-
{ "ta", kit_host_process_ta },
600+
{ "ta", kit_host_process_ta },
601601
#endif
602-
{ NULL, NULL }
602+
{ NULL, NULL }
603603
};
604604

605605
static ATCA_STATUS kit_host_process_target(ascii_kit_host_context_t* ctx, int argc, char* argv[], uint8_t* response, size_t* rlen)

0 commit comments

Comments
 (0)