Skip to content

Commit e0d143b

Browse files
committed
CRACEN: Avoid "unused function" for RSA helper functions
-Change cracen_ffkey_write_sz and cracen_ffkey_write functions from static to static inline to avoid "unused functions" warning when these are not used See sdk-nrf PR-22619 for details ref: NCSDK-28901 Signed-off-by: Frank Audun Kvamtrø <[email protected]>
1 parent d7b0f5b commit e0d143b

File tree

1 file changed

+2
-2
lines changed
  • subsys/nrf_security/src/drivers/cracen/cracenpsa/src

1 file changed

+2
-2
lines changed

subsys/nrf_security/src/drivers/cracen/cracenpsa/src/rsa_key.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#include <silexpk/sxbuf/sxbufop.h>
1313

1414
/** Write the sizes of the elements of a RSA key. */
15-
static void cracen_ffkey_write_sz(const struct cracen_rsa_key *key, int *sizes)
15+
static inline void cracen_ffkey_write_sz(const struct cracen_rsa_key *key, int *sizes)
1616
{
1717
int slotidx = 0;
1818
int i = 0;
@@ -29,7 +29,7 @@ static void cracen_ffkey_write_sz(const struct cracen_rsa_key *key, int *sizes)
2929
}
3030

3131
/** Write the elements of a RSA key into the input slots. */
32-
static void cracen_ffkey_write(const struct cracen_rsa_key *key, struct sx_pk_slot *inputs)
32+
static inline void cracen_ffkey_write(const struct cracen_rsa_key *key, struct sx_pk_slot *inputs)
3333
{
3434
int slotidx = 0;
3535
int i = 0;

0 commit comments

Comments
 (0)