Skip to content

Allow customization of memcpy and memset #441

@mkannwischer

Description

@mkannwischer

We should allow for custom memcpy and memset implementations. It should follow what was done in pq-code-package/mlkem-native#1105

The steps will be

  • Add mld_memset and mlk_memset functions to common.h
  • Replace all uses of memset and memcpy with mld_memset and mlk_memset
  • Add and document configuration options MLD_CONFIG_CUSTOM_MEMCPY and MLK_CONFIG_CUSTOM_MEMSET to config.h
  • Add CI jobs excercising the configuration options.
  • Don't forget the newly added code in Refactor squeeze/absorb to use mld_keccakf1600 primitives #436

Thanks @bremoran for pointing out this gap.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions