nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches

◆ SX_ERR_INVALID_KEYREF

#define SX_ERR_INVALID_KEYREF   -34

#include <subsys/nrf_security/src/drivers/cracen/common/include/cracen/statuscodes.h>

Fatal error, trying to call an AEAD or block cipher create function with an uninitialized or invalid key reference.

Examples: calling sx_blkcipher_create_aesecb() with a key reference which has not been initialized yet with sx_keyref_load_material() or sx_keyref_load_by_id() function, sx_keyref_load_material() was called with key NULL or size 0, or sx_keyref_load_by_id() was called with an invalid index ID.