Skip to content

Add examples for the PSA Crypto API#5064

Closed
hannestschofenig wants to merge 32 commits intoMbed-TLS:developmentfrom
hannestschofenig:crypto_api_examples
Closed

Add examples for the PSA Crypto API#5064
hannestschofenig wants to merge 32 commits intoMbed-TLS:developmentfrom
hannestschofenig:crypto_api_examples

Conversation

@hannestschofenig
Copy link
Copy Markdown
Contributor

Description

This PR contributes examples to help developers better understand the PSA Crypto API.

Status

IN DEVELOPMENT

Requires Backporting

NO

Migrations

NO

Additional comments

Any additional information that could be of interest

Todos

  • Documentation
  • Changelog updated

Steps to test or reproduce

Just run the educational examples

@ronald-cron-arm ronald-cron-arm added component-psa PSA keystore/dispatch layer (storage, drivers, …) enhancement needs-ci Needs to pass CI tests needs-work labels Oct 21, 2021
@mprse mprse self-requested a review October 27, 2021 08:19
@mprse
Copy link
Copy Markdown
Contributor

mprse commented Dec 1, 2021

What is current status of this PR?

@hannestschofenig
Copy link
Copy Markdown
Contributor Author

The status of this PR is the following: While I am still fine-tuning the examples I believe it should otherwise be ready for inclusion.

@gilles-peskine-arm
Copy link
Copy Markdown
Contributor

@hannestschofenig Thanks for these examples. But before we review, please fix the issues reported by the CI. Let us know if you need help understanding some of the errors.

@mprse mprse removed their request for review March 21, 2022 15:41
@daverodgman daverodgman added the priority-medium Medium priority - this can be reviewed as time permits label May 17, 2022
yuhaoth and others added 18 commits July 6, 2022 14:06
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
Signed-off-by: Hannes Tschofenig <hannes.tschofenig@arm.com>
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
Signed-off-by: Hannes Tschofenig <hannes.tschofenig@arm.com>
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
Signed-off-by: Hannes Tschofenig <hannes.tschofenig@arm.com>
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
Signed-off-by: Hannes Tschofenig <hannes.tschofenig@arm.com>
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
Signed-off-by: Hannes Tschofenig <hannes.tschofenig@arm.com>
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
Signed-off-by: Hannes Tschofenig <hannes.tschofenig@arm.com>
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
Signed-off-by: Hannes Tschofenig <hannes.tschofenig@arm.com>
Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
Signed-off-by: Hannes Tschofenig <hannes.tschofenig@arm.com>
Signed-off-by: Hannes Tschofenig <hannes.tschofenig@arm.com>
Signed-off-by: Hannes Tschofenig <hannes.tschofenig@arm.com>
Signed-off-by: Hannes Tschofenig <hannes.tschofenig@arm.com>
... to build Visual Studio files

Signed-off-by: Hannes Tschofenig <hannes.tschofenig@arm.com>
Signed-off-by: Hannes Tschofenig <hannes.tschofenig@arm.com>
Signed-off-by: Hannes Tschofenig <hannes.tschofenig@arm.com>
Signed-off-by: Hannes Tschofenig <hannes.tschofenig@arm.com>
Signed-off-by: Hannes Tschofenig <hannes.tschofenig@arm.com>
Signed-off-by: Hannes Tschofenig <hannes.tschofenig@arm.com>
Signed-off-by: Hannes Tschofenig <hannes.tschofenig@arm.com>
Compilation was failing when all.sh component
test_psa_external_rng_no_drbg_classic was run.

Signed-off-by: Thomas Daubney <thomas.daubney@arm.com>
The psa_key_agreement program was using the %zu format
specifier which is not supported in mingw builds. The
library provides an MBEDTLS_PRINTF_SIZET macro in debug.h
for handling this situation.

Signed-off-by: Thomas Daubney <thomas.daubney@arm.com>
@tom-daubney-arm tom-daubney-arm added needs-review Every commit must be reviewed by at least two team members, needs-reviewer This PR needs someone to pick it up for review and removed needs-work needs-ci Needs to pass CI tests labels Oct 7, 2022
@tom-daubney-arm
Copy link
Copy Markdown
Contributor

All internal CI is passing. OpenCI errors are due to a known issue with the CI that is being worked on.

/*
* Handshake specific crypto variables
*/

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Accidental whitespace change?

@tom-daubney-arm tom-daubney-arm added needs-work needs-ci Needs to pass CI tests size-m Estimated task size: medium (~1w) and removed needs-review Every commit must be reviewed by at least two team members, needs-reviewer This PR needs someone to pick it up for review labels Jul 17, 2023
@tom-daubney-arm
Copy link
Copy Markdown
Contributor

tom-daubney-arm commented Jul 18, 2023

This PR is now being split into a series of smaller PRs in order to make reviewing easier.

This series is summarised below with a check box to indicate when each PR has been merged.

PR Number Program Merged?
#7938 PSA Encrypt [ ]
#7942 PSA Hash [ ]
#7944 PSA HKDF [ ]
#7948 PSA Key Agreement [ ]
#7951 PSA MAC [ ]
#7953 PSA Random [ ]
#7954 PSA Sign Verify [ ]

This PR will be closed now since it is superseded by the new series of PRs.

@tom-daubney-arm
Copy link
Copy Markdown
Contributor

I am now closing this PR since it has been broken down in to series of smaller PRs, as per this comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component-psa PSA keystore/dispatch layer (storage, drivers, …) enhancement historical-reviewed Reviewed & agreed to keep legacy PR/issue needs-ci Needs to pass CI tests needs-work priority-medium Medium priority - this can be reviewed as time permits size-m Estimated task size: medium (~1w)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants