Skip to content

Commit 759b434

Browse files
committed
nrf_security: cracen: Use a smaller prng_pool on 54h20
The CPU that uses CRACEN on 54h20 has only 29kB of RAM so for this platform we would like to save 96 bytes of RAM at the cost of PRNG runtime. Ref: NCSDK-NONE Signed-off-by: Sebastian Bøe <sebastian.boe@nordicsemi.no>
1 parent 88b64bb commit 759b434

File tree

1 file changed

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

1 file changed

+6
-0
lines changed

subsys/nrf_security/src/drivers/cracen/cracenpsa/src/prng_pool.c

+6
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,14 @@
1717
* and can be freely adjusted later when we test this
1818
* in practice.
1919
*
20+
* The CONFIG_SOC_NRF54H20_CPUSEC secure element only has 29kB of RAM
21+
* so we have a smaller pool for this platform.
2022
*/
23+
#ifdef CONFIG_SOC_NRF54H20_CPUSEC
24+
#define PRNG_POOL_SIZE (8)
25+
#else
2126
#define PRNG_POOL_SIZE (32)
27+
#endif
2228

2329
static uint32_t prng_pool[PRNG_POOL_SIZE];
2430
static uint32_t prng_pool_remaining;

0 commit comments

Comments
 (0)