-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PSA Multipart AEAD CCM Internal implementation and tests. #5047
PSA Multipart AEAD CCM Internal implementation and tests. #5047
Conversation
Signed-off-by: Paul Elliott <paul.elliott@arm.com>
Encrypt / Decrypt with expected result. Signed-off-by: Paul Elliott <paul.elliott@arm.com>
Known failures, concentrating on verify (bad signature etc.) Signed-off-by: Paul Elliott <paul.elliott@arm.com>
Signed-off-by: Paul Elliott <paul.elliott@arm.com>
Signed-off-by: Paul Elliott <paul.elliott@arm.com>
Signed-off-by: Paul Elliott <paul.elliott@arm.com>
Signed-off-by: Paul Elliott <paul.elliott@arm.com>
Signed-off-by: Paul Elliott <paul.elliott@arm.com>
Signed-off-by: Paul Elliott <paul.elliott@arm.com>
library/psa_crypto_aead.c
Outdated
@@ -446,11 +444,22 @@ psa_status_t mbedtls_psa_aead_set_lengths( | |||
size_t ad_length, | |||
size_t plaintext_length ) | |||
{ | |||
/* Nothing here yet, work is currently done in PSA Core, however support | |||
* for CCM will require this function. */ | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Redundant empty line
Signed-off-by: Paul Elliott <paul.elliott@arm.com>
CI Fail is the previous (and now fixed) ssl issue, unrelated to this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code changes looks good, but CI is still failing.
Will approve when CI is green.
The CI failures are due to unrelated known CI issues (timeout issues in the SSL Tests) - hence the HEAD failing, but the Merge tests generally not. The only way I could potentially resolve this would be to force update the branch, as some fixes have been merged since this PR was made. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Signed-off-by: Paul Elliott <paul.elliott@arm.com>
Signed-off-by: Paul Elliott <paul.elliott@arm.com>
The requested changes have been addressed and approved by @mprse.
The CI failures in pr-head are a known unrelated issue in TLS tests, now resolved. pr-merge passed. So CI is good. |
Description
This PR adds CCM to the algorithms supported by PSA multipart AEAD. It adds an internal implementation, and a suite of tests for it.
This completes one of the tasks of #3721, however there may be follow up work with regards to Nonce sizes.
Status
READY
Requires Backporting
No. The changes to the underlying cipher API to support multipart are only on this branch. Multipart AEAD was also not backported.
Migrations
No.
Todos
Steps to test
test_suite_psa_crypto should run clean, and all PSA tests should pass.