-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
sample: tfm_psa_template: Print attestation pubkey #19657
base: main
Are you sure you want to change the base?
sample: tfm_psa_template: Print attestation pubkey #19657
Conversation
CI InformationTo view the history of this post, clich the 'edited' button above Inputs:Sources:sdk-nrf: PR head: 66a7efce348c63c495131ed8b97c791babaec564 more detailssdk-nrf:
Github labels
List of changed files detected by CI (1)
Outputs:ToolchainVersion: b77d8c1312 Test Spec & Results: ✅ Success; ❌ Failure; 🟠 Queued; 🟡 Progress; ◻️ Skipped;
|
702de1b
to
6c28e28
Compare
6c28e28
to
a64143a
Compare
psa_key_attributes_t attr = PSA_KEY_ATTRIBUTES_INIT; | ||
|
||
status = psa_get_key_attributes(key_handle, &attr); | ||
if (status != 0) { |
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.
lets use PSA_SUCCESS here instead of hard code 0.
@@ -145,6 +177,7 @@ static void get_attestation_token(void) | |||
} else { | |||
printk("Received initial attestation token of %zu bytes.\n", token_size); | |||
|
|||
printf("Attestation token:\n"); |
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.
Nit but replace all the printf->printk to be consistent across the sample.
Print the public key for attestation, which can be used for verifying the attestation token. Ref: NCSDK-31111 Signed-off-by: Sigurd Hellesvik <[email protected]>
a64143a
to
66a7efc
Compare
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.
readme.rst includes what the sample will print when it is run. That should likely be updated.
Print the public key for attestation, which can be used for verifying the attestation token.
Ref: NCSDK-31111