Skip to content

Conversation

@stefanberger
Copy link
Owner

@stefanberger stefanberger commented Oct 1, 2025

In order to be able to write certificates signed with an ML-DSA key into an NVRAM index, the size must be increased. Therefore, increase the size of MAX_NV_INDEX_SIZE to 10kb starting ats StateFormatLevel 9.

Replace many occurrences of MAX_NV_INDEX_SIZE with a function get_MAX_NV_INDEX_SIZE_by_SFL() to get the maximum allowed index size given the StateFormatLevel of the current profile. This allows to create bigger indices with default-v2 profile and only smaller ones with any older profile.

In order to be able to write certificates signed with an ML-DSA key into
an NVRAM index, the size must be increased. Therefore, increase the size
of MAX_NV_INDEX_SIZE to 10kb starting ats StateFormatLevel 9.

Replace many occurrenced of MAX_NV_INDEX_SIZE with a function
get_MAX_NV_INDEX_SIZE_by_SFL() to get the maximum allowed index size given
the StateFormatLevel of the current profile. This allows to create bigger
indices with default-v2 profile and only smaller ones with any older
profile.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants