forked from iotivity/iotivity-lite
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PKI/TPM: allow to set pk functions for TPM use (iotivity#416)
* log: fix SNPRINTFbytes * refactor PKI to enable the configuration of TPM-based PK functions This commit adds functionality that allows the overriding of certain PK functions in PKI. Specifically, `mbedtls_pk_parse_key`, `mbedtls_pk_write_key_der`, and `mbedtls_pk_ecp_gen_key` can now be overridden to enable the association of a reference value with the TPM. Additionally, `pk_free_key` has been implemented to allow for the freeing of a PK generated by `mbedtls_pk_ecp_gen_key`. With this update, factory reset will regenerate a new private key for the device certificate. Furthermore, if the keypair is not valid during CSR signing, a new keypair will be generated. --------- Co-authored-by: Daniel Adam <daniel.adam1922@protonmail.com>
- Loading branch information
1 parent
e5df1c6
commit 41f5fab
Showing
21 changed files
with
1,117 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.