Skip to content

[RFC] Discuss placement of custom code inside/outside of config #1387

@hanno-becker

Description

@hanno-becker

Currently, the only place where users can provide custom functionality is in their custom config. However, since the config is the first header to be included by all other mlkem-native headers, this prevents custom implementations to build on functionality provided by later headers. For example, it was noted in #1379 that a custom implementation could not refer to mlk_zeroize, because that would lead to a circular dependency config -> verify -> common -> config. In #1379, this is worked around by unconditionally calling mlk_zeroize in a wrapper macro defined later, but in principle the issue remains.

An alternative to custom code in the config would be for the user to specify the name of an additional header file that could be included separately from the config.

I'm unsure what the cleanest / most convenient approach is, here, so am opening this up for discussion.

@davidchisnall I'd appreciate your thoughts/experience here.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions