/* Table containing NVM key catalog entries */
const hseKeyGroupCfgEntry_t aHseNvmKeyCatalog[] =
{
/* NvmKeyGroup_0 */
{(HSE_MU0_MASK | HSE_MU1_MASK), HSE_KEY_OWNER_CUST, HSE_KEY_TYPE_AES, 10U, 256U, {0U, 0U}},
/* NvmKeyGroup_1 */
{(HSE_MU0_MASK | HSE_MU1_MASK), HSE_KEY_OWNER_CUST, HSE_KEY_TYPE_ECC_PAIR, 10U, 521U, {0U, 0U}},
/* Marker to end the key catalog */
{0U, 0U, 0U, 0U, 0U, {0U, 0U}}
};
/* Table containing RAM key catalog entries */
const hseKeyGroupCfgEntry_t aHseRamKeyCatalog[] =
{
/* RamKeyGroup_0 */
{(HSE_MU0_MASK | HSE_MU1_MASK), HSE_KEY_OWNER_ANY, HSE_KEY_TYPE_AES, 10U, 128U, {0U, 0U}},
/* RamKeyGroup_1 */
{(HSE_MU0_MASK | HSE_MU1_MASK), HSE_KEY_OWNER_ANY, HSE_KEY_TYPE_ECC_PAIR, 10U, 521U, {0U, 0U}},
/* Marker to end the key catalog */
{0U, 0U, 0U, 0U, 0U, {0U, 0U}}
};
The root cause of my error is the absence of the RAM marker(/* Marker to end the key catalog */)—I simply never configured ramKeyCatalog, and it turns out this entry is mandatory.