Skip to content

Commit

Permalink
Release v3.7.2 (20240119)
Browse files Browse the repository at this point in the history
  • Loading branch information
Srinivas-E committed Jan 25, 2024
1 parent 279bb1d commit 77cd260
Show file tree
Hide file tree
Showing 8 changed files with 44 additions and 16 deletions.
17 changes: 10 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,14 @@ Introduction
This library implements the APIs required to communicate with Microchip Security
device. The family of devices supported currently are:

- [ATSHA204A](http://www.microchip.com/ATSHA204A)
- [ATECC108A](http://www.microchip.com/ATECC108A)
- [ATECC508A](http://www.microchip.com/ATECC508A)
- [ATECC608A](http://www.microchip.com/ATECC608A)
- [ATECC608B](http://www.microchip.com/ATECC608B)
|CryptoAuth |CryptoAuth2 ||
|:----------------------------------------------:|:----------------------------------------:|:-------------------------------------:|
|[ATECC608B](https://www.microchip.com/ATECC608B)|[ECC204](https://www.microchip.com/ECC204)
|[ATECC608A](http://www.microchip.com/ATECC608A) |[ECC206](https://www.microchip.com/ECC206)|
|[ATECC508A](http://www.microchip.com/ATECC508A) |[SHA104](https://www.microchip.com/SHA104)|
|[ATECC108A](http://www.microchip.com/ATECC108A) |[SHA105](https://www.microchip.com/SHA105)| |
|[ATSHA204A](http://www.microchip.com/ATSHA204A) |[SHA106](https://www.microchip.com/SHA106)| |
|[ATSHA206A](https://www.microchip.com/ATSHA206A)|[RNG90](https://www.microchip.com/RNG90) | |

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

Expand Down Expand Up @@ -40,8 +43,8 @@ not be changeable.
Examples
-----------

- Watch [CryptoAuthLib Documents](http://www.microchip.com/design-centers/security-ics/cryptoauthentication/overview )
for new examples coming online.
- Install the [Trust Platform Design Suite](https://www.microchip.com/en-us/products/security/trust-platform ) to access Use Case examples
for the different Security Solutions (ATECC608, SHA104/105, ECC204, TA010, TA100…)
- Node Authentication Example Using Asymmetric PKI is a complete, all-in-one
example demonstrating all the stages of crypto authentication starting from
provisioning the Crypto Authentication device ATECC608/ATECC508A with keys
Expand Down
Binary file modified cryptoauthlib-manual.pdf
Binary file not shown.
4 changes: 2 additions & 2 deletions lib/atca_basic.c
Original file line number Diff line number Diff line change
Expand Up @@ -4016,7 +4016,7 @@ ATCA_STATUS atcab_verify_extern_mac(const uint8_t* message, const uint8_t* signa

if (atcab_is_ca_device(dev_type))
{
#ifdef ATCA_ECC_SUPPORT
#ifdef ATCA_ATECC608_SUPPORT
status = calib_verify_extern_mac(g_atcab_device_ptr, message, signature, public_key, num_in, io_key, is_verified);
#endif
}
Expand Down Expand Up @@ -4163,7 +4163,7 @@ ATCA_STATUS atcab_verify_stored_mac(const uint8_t* message, const uint8_t* signa

if (atcab_is_ca_device(dev_type))
{
#ifdef ATCA_ECC_SUPPORT
#ifdef ATCA_ATECC608_SUPPORT
status = calib_verify_stored_mac(g_atcab_device_ptr, message, signature, key_id, num_in, io_key, is_verified);
#endif
}
Expand Down
4 changes: 2 additions & 2 deletions lib/atca_version.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
#define ATCA_VERSION_H

// Version format yyyymmdd
#define ATCA_LIBRARY_VERSION_DATE "20231215"
#define ATCA_LIBRARY_VERSION_DATE "20231222"
#define ATCA_LIBRARY_VERSION_MAJOR 3
#define ATCA_LIBRARY_VERSION_MINOR 7
#define ATCA_LIBRARY_VERSION_BUILD 1
#define ATCA_LIBRARY_VERSION_BUILD 2

#endif /* ATCA_VERSION_H */
2 changes: 1 addition & 1 deletion lib/calib/calib_config_check.h
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@
* Supported API's: calib_hmac
**/
#ifndef CALIB_HMAC_EN
#define CALIB_HMAC_EN (ATCAB_HMAC_EN && (CALIB_SHA204_EN || CALIB_ECC108_EN || CALIB_ECC508))
#define CALIB_HMAC_EN (ATCAB_HMAC_EN && (CALIB_SHA204_EN || CALIB_ECC108_EN || CALIB_ECC508_EN))
#endif

/******* INFO COMMAND ********/
Expand Down
5 changes: 5 additions & 0 deletions lib/cryptoauthlib.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@
#define ATCA_ZONE_OTP ((uint8_t)0x01)
#define ATCA_ZONE_DATA ((uint8_t)0x02)

#define DEVICE_PRODUCT_ID_LOCATION 0
#define DEVICE_IDENTIFIER_LOCATION 1
#define DEVICE_PART_LOCATION 2
#define DEVICE_REVISION_LOCATION 3

#if ATCA_CA2_SUPPORT
#define ATCA_ZONE_CA2_DATA ((uint8_t)0x00)
#define ATCA_ZONE_CA2_CONFIG ((uint8_t)0x01)
Expand Down
15 changes: 11 additions & 4 deletions lib/pkcs11/pkcs11_token.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,10 @@ static const char * pkcs11_token_device(ATCADeviceType dev_type, uint8_t info[4]

if (atcab_is_ca_device(dev_type))
{
switch (info[2])
switch (info[DEVICE_PART_LOCATION])
{
case 0x00:
if (0x02u == info[1])
if (0x02u == info[DEVICE_IDENTIFIER_LOCATION])
{
rv = "ATSHA204A";
}
Expand All @@ -98,7 +98,7 @@ static const char * pkcs11_token_device(ATCADeviceType dev_type, uint8_t info[4]
rv = "ATECC508A";
break;
case 0x60:
if (0x02u < info[3])
if (0x02u < info[DEVICE_REVISION_LOCATION])
{
rv = "ATECC608B";
}
Expand All @@ -115,7 +115,14 @@ static const char * pkcs11_token_device(ATCADeviceType dev_type, uint8_t info[4]

if (atcab_is_ta_device(dev_type))
{
rv = "TA100";
if(0x01u == info[DEVICE_PRODUCT_ID_LOCATION])
{
rv = "TA101";
}
else
{
rv = "TA100";
}
}

return rv;
Expand Down
13 changes: 13 additions & 0 deletions release_notes.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@

# Microchip Cryptoauthlib Release Notes

## Release v3.7.2 (01/19/2023)

### New Features
- See [talib/CHANGES.md] for details on talib module changes

### Fixes
- Updated PKCS11 token info to list TA101 device details
- Fixed compilation errors when ECC508 device is enabled
- See [talib/CHANGES.md] for details on talib module fixes

### API Changes
- Added sign and verfy API in talib module to support `1024 bytes ED25519 mode`

## Release v3.7.1 (12/15/2023)

### New Features
Expand Down

0 comments on commit 77cd260

Please sign in to comment.