-
Notifications
You must be signed in to change notification settings - Fork 1.3k
nrf_security: Make the Cracen IKG configurable #22542
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
Vge0rge
commented
May 27, 2025
CI InformationTo view the history of this post, clich the 'edited' button above Inputs:Sources:sdk-nrf: PR head: 83fa46f5af1fcd5a1eb83d204409f519651fd389 more detailssdk-nrf:
Github labels
List of changed files detected by CI (10)
Outputs:ToolchainVersion: 4aa3467a6d Test Spec & Results: ✅ Success; ❌ Failure; 🟠 Queued; 🟡 Progress; ◻️ Skipped;
|
You can find the documentation preview for this PR here. |
6b5e695
to
590d9a5
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.
Approved with change to misspelled config. Also NIT: in commit message for "remove unused function" you dropped a word in :"The function exit_ikg instead which is placed in the file
ikg_signature.c". Probably "is used" or something similar.
return status; | ||
} else { | ||
return SX_ERR_INCOMPATIBLE_HW; |
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: you could have this as a single return status;
outside the if since the status is set to SX_ERR_INCOMPATIBLE_HW
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.
Makes sense, I did this
@@ -99,7 +106,7 @@ int read_status(sx_pk_req *req) | |||
int sx_pk_wait(sx_pk_req *req) | |||
{ | |||
do { | |||
#ifndef CONFIG_CRACEN_HW_VERSION_LITE | |||
#if !defined(CONFIG_CRACEN_HW_VERSION_LITE) && defined(COFNIG_CRACEN_IKG) |
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.
#if !defined(CONFIG_CRACEN_HW_VERSION_LITE) && defined(COFNIG_CRACEN_IKG) | |
#if !defined(CONFIG_CRACEN_HW_VERSION_LITE) && defined(CONFIG_CRACEN_IKG) |
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.
Also as discussed offline this should probably not be here
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.
Updated the logic, have a second look on this please.
Add the configuration option CRACEN_IKG which allows to disable the IKG funcionality if it is not needed. This will decrease the flash usage for applications which don't use the IKG. Ref: NCSDK-30246 Signed-off-by: Georgios Vasilakis <[email protected]>
Remove the function sx_pk_ik_mode_exit which was unused. The function exit_ikg is used instead which is placed in the file ikg_signature.c Signed-off-by: Georgios Vasilakis <[email protected]>