Library for interacting with the Crypto Authentication secure elements
Repo MicrochipTech/cryptoauthlib, read from GitHub 3 h ago. MicrochipTech has not joined Take My Repo.
CKK_EC key type validation in pkcs11_key_get_ec_params() and pkcs11_key_get_ec_point() APIs.PKCS11_NO_LOGIN build option to disable C_Login() support for deployments using no-auth-required keys.target_include_directories() for improved build maintainability.C_SetPIN() authentication requirements.CKA_ALWAYS_AUTHENTICATE handling for CA devices.ATCA_NO_HEAP guard protection for custom interface configurations.ECC206 Device Support
Modular CMake Build System
calib, pkcs11, jwt, and atcacertdevices.cmake and added device-specific CMake validation checks within each moduleCMakeLists.txt files for calib, atcacert, jwt, and pkcs11 modulesTest Framework Updates
api_calib and atcacert test modulesCode Quality & Compliance
PKCS#11
pkcs11_config.c configuration parsing for device-specific selectionpkcs11_signature.c with proper ATCA_CA_SUPPORT and ATCA_TA_SUPPORT macro guardspkcs11_token.c for volatile register usage and device-specific token identificationpkcs11_cert.c X.509 certificate write handling to use volatile register access when TALIB_CREATE_SHARED_DATA_EN is disabledInitialization & Configuration
calib_device.h to enable device-specific configuration handling based on device selectioncalib_execution.c to support device-specific execution timing configurationkit_protocol.c to enable device-specific protocol selection supportBuild System & Macro Protection
ATCA_HAL_CUSTOM build issues to restore compatibility across custom HAL configurationsPython Bindings
bytearray handling for cal_buffer usage and interoperability supportCertificate & Key Handling
atcacert_verify_ APIs to use correct key size macros and cal_buffer membersatca_mbedtls_cert_add() to correctly read public key using is_genkey checkatcacert_set_signature(), ensuring correct WPC certificate reads from ECC608 devicesATCA_MBEDTLS guards to exclude MbedTLS code when disabledHAL (Hardware Abstraction Layer)
halinit) failures by adding appropriate hal_release callshal_kit_hid_send() to flush any pending data from HID device input buffer before writeshal_free_shared() and updated access permissions for shared memory in hal_linux.cword_address parameter in hal_i2c_send() even when transmit buffer is empty (e.g., device wake-up)hal_esp32_i2c.c to support latest ESP-IDF library
i2c_config_t fields and i2c_driver_install API may be deprecated in future ESP-IDF releases. Refer to ESP-IDF official documentation.Initialization & Configuration
atcab_init_ext() to read ECC608 config zone only with ATCA_NO_POLL configurationdevice_conf.json to define feature sets per secure element, used as base configuration for device selectionCode Quality & Compliance
memset with pkcs11_util_memset in PKCS#11 implementation (for structure handling)Build System
CMAKE_INSTALL_FULL_<dir> with CMAKE_INSTALL_<dir> to ensure proper handling of --prefix and cpackSecure element ICs provisioned with compressed certificates after 2031 will be incompatible with CryptoAuthLib versions earlier than 3.7.5.
To ensure compatibility and proper functionality, it is recommended to use CryptoAuthLib version 3.7.5 or later.
This release is especially relevant for existing users utilizing compressed certificates with CAL library versions earlier than v3.7.5 who wish to upgrade and take advantage of the new extended year support.
x509_comp_cert_extended_years.zip
Note:
README.md file included with the attached x509_comp_cert_extended_years.zip packageUpdated minimum required version of CMake to v3.20 to support its new features and improvements
Resolved tng_atcacert_read_signer_cert build failure when using MPLAB Harmony projects
Fixed tng_atcacert_max_device_cert_size function to prevent overwriting max_cert_size
Addressed the dependency issue where SHA512 is required for SHA384 in the SW Crypto module
Fixed an issue in the Linux environment where the SPI file descriptor was inadvertently closed twice
Incorporated additional ATCA_CHECK_PARAMS_EN checks in sections of the code where they were previously absent
Eliminated all compiler warnings in MPLAB Melody related to the atcacert module
Eliminated all compiler warnings in MPLAB Harmony projects when adding the CAL library as a project component
Addressed all MISRA violations categorized as "Required" in MPLAB Harmony. Note that "Advisory" issues remain unaddressed
Resolved build issues in the PyCAL library to ensure its compatibility CAL library counterpart in C
Resolved build errors on arm64 MacOS platforms when utilizing the USB library for hidapi; kick-start transition to libusb-maintained version of hidapi, moving away from the previous signal11 repository
Addressed incorrect header file inclusions in atca_mbedtls_wrap.h related to the ATCA_MBEDTLS configuration
PKCS11 layer fixes/updates
Corrected return value in C_FindObjectsInit API to no longer return CKR_OK when no objects are found
Fixed an issue causing certificate export failures when using ATECCC608 TNGTLS devices
Resolved a race condition that occurred during the creation of a mutex
New Features
Extended atcacert module to support compressed certificate usage for TA devices
Enhanced WPC application to support TA devices
Updated PKCS#11 and Openssl wiki documentation to include steps for using Openssl 3.0+ versions
Updated PKCS#11 module to add compatibility for higher [SHA-2](https://bitbucket.microchip.com/plugins/servlet/jira-integration/issues/SHA-2) (SHA384 and SHA512) functions
Added NIST vector tests to cover AES CCM module validation
Modified calib packet allocation to use memory from either heap or data segment based on user configuration instead of always using data segment.
Fixes
Resolved SWI 1-wire communication failure occuring in hal_swi_gpio while using MPLABx Harmony projects
delay routines in hal_cortex_m_delay are optimized to generate accurate delays for SAM cortex-m device family
removed call stack overhead in hal_swi_gpio to meet required SWI bit timing
Minimum required version for CMake is changed from 3.0.1 to 3.10.0
Fixed compilation issues with atcac_get_subj_public_key when WolfSSL configuration is enabled
API CHANGES
Replaced I/O buffers in atcacert with cal_buffer at few instances to support resource-constrained PIC18 devices
Refer [lib/atcacert/MIGRATION.md] for details on atcacert API changes