Skip to content

Conversation

@L-series
Copy link
Contributor

@L-series L-series commented Jan 8, 2026

As a follow up to e15b34f, we modify the rng failure test so that it
does not generate a new build. To achieve this we do the following:

  • Modify components.mk so that it does not generate new objects for
    the rng test. Simply reuse the MLDSAxx_OBJS
  • Updated test function names to use standard crypto_sign_* API
    instead of mld_* aliases as the mld_* namespace is no longer available
    as we are now using the default build with
    MLD_DEFAULT_NAMESPACE_PREFIX. Those functions which are not exposed
    in this way by default are wrapped with MLD_API_NAMESPACE.
  • Replaced custom mld_randombytes() with __wrap_randombytes() using
    --wrap linker flag which resolves strong definitions of randombytes to
    __real_randombytes and all calls within the test suite to
    __wrap_randombytes.
  • Removed redundant build rules from components.mk and rules.mk

Signed-off-by: Andreas Hatziiliou [email protected]

@L-series L-series requested a review from a team as a code owner January 8, 2026 19:26
@L-series L-series marked this pull request as draft January 9, 2026 00:25
As a follow up to e15b34f, we modify the rng failure test so that it
does not generate a new build. To achieve this we do the following:

* Modify components.mk so that it does not generate new objects for
  the rng test. Simply reuse the MLDSAxx_OBJS
* Updated test function names to use standard crypto_sign_* API
  instead of mld_* aliases as the mld_* namespace is no longer available
  as we are now using the default build with
  MLD_DEFAULT_NAMESPACE_PREFIX. Those functions which are not exposed
  in this way by default are wrapped with MLD_API_NAMESPACE.
* Removed redundant build rules from components.mk and rules.mk

Signed-off-by: Andreas Hatziiliou <[email protected]>
static uint32_t out[8];
static int32_t outleft = 0;

int randombytes_counter __attribute__((weak)) = 0;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need to change notrandombytes? I was hoping we just don't link that when we build the RNG failure test.

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.

3 participants