-
Notifications
You must be signed in to change notification settings - Fork 3k
Crypto Service - keys access control TESTS #9780
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
Conversation
@itayzafrir, thank you for your changes. |
read_input_param_from_message(msg, 1, &key_type); | ||
read_input_param_from_message(msg, 2, &key_data_size); | ||
|
||
key_data = calloc(1, key_data_size); |
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.
where key_data is being freed?
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.
oops :(
added in 391ff6135acbb28bd7797e847b7556f9dee0763c
|
||
/* via test partition - create a key, set key policy but no key material */ | ||
key_handle = 0; | ||
TEST_ASSERT_EQUAL(PSA_SUCCESS, test_partition_crypto_create_persistent_key(key_id, &key_handle)); |
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.
when is this key destroyed?
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.
All ITS keys are being erased in case_setup_handler
and case_teardown_handler
.
size_t len; | ||
|
||
/* via test partition - create a key, set key policy, generate key material and close */ | ||
TEST_ASSERT_EQUAL(PSA_SUCCESS, create_and_generate_key_via_test_partition(key_id, key_type, key_alg, key_usage, |
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.
were is teardown for this key?
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.
All ITS keys are being erased in case_setup_handler
and case_teardown_handler
.
psa_cipher_operation_t operation; | ||
|
||
/* via test partition - create a key, set key policy, generate key material and close */ | ||
TEST_ASSERT_EQUAL(PSA_SUCCESS, create_and_generate_key_via_test_partition(key_id, key_type, key_alg, key_usage, |
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.
were is teardown for this key?
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.
All ITS keys are being erased in case_setup_handler
and case_teardown_handler
.
3b4d187
to
c75ede1
Compare
rebased on master + aligned with updated error codes |
CI started |
CI won't pass now, this needs preceding PR #9638 |
Test run: SUCCESSSummary: 12 of 12 test jobs passed |
It did pass, what do we miss? |
There was no reason for compilation to break, but running the tests would have failed. AFAIK for targets which are |
391ff61
to
a7efc0e
Compare
Rebased on master & added a7efc0e which aligns error code handling to latest standards. |
#9638 is merged, this PR is unblocked now. |
CI started |
Test run: FAILEDSummary: 3 of 8 test jobs failed Failed test jobs:
|
Restarted CI. |
Test run: FAILEDSummary: 1 of 8 test jobs failed Failed test jobs:
|
a7efc0e
to
b124ae2
Compare
CI failure doesn't seem to be directly related to the changes in this PR. Rebased branch on master & added 2 new commits:
|
CI restarted |
Test run: FAILEDSummary: 1 of 8 test jobs failed Failed test jobs:
|
@itayzafrir Please take a look at the NUMAKER_PFM_M2351 ARM build failure. |
Info: A CI config issue appears to be affecting Other build failures should still be investigated, if any. Will restart CI when appropriate. |
b124ae2
to
02f5918
Compare
CI restarted |
Test run: FAILEDSummary: 2 of 13 test jobs failed Failed test jobs:
|
CI failures don't seem to be related to changes in this PR:
|
@0xc0170: Ci will be restarted (iar8 exporter issue we will resolve separately). |
Description
Tests for crypto access control in PSA systems.
This PR needs preceding PR #9638Pull request type
Reviewers
@avolinski
Release Notes