Skip to content

Commit 2242323

Browse files
committed
tests: do not generate custom build for rng test
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 compontents and rules to not generate a cusom build. * Remove the custom test_rng_fail config. * Do not link the rng failure test against notrandombytes.c and instead implement our own randombytes. * 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. Signed-off-by: Andreas Hatziiliou <andreas.hatziiliou@savoirfairelinux.com>
1 parent 052ee8d commit 2242323

File tree

6 files changed

+73
-833
lines changed

6 files changed

+73
-833
lines changed

BIBLIOGRAPHY.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ source code and documentation.
5353
- [test/configs/no_asm_config.h](test/configs/no_asm_config.h)
5454
- [test/configs/serial_fips202_config.h](test/configs/serial_fips202_config.h)
5555
- [test/configs/test_alloc_config.h](test/configs/test_alloc_config.h)
56-
- [test/configs/test_rng_fail_config.h](test/configs/test_rng_fail_config.h)
5756

5857
### `FIPS202`
5958

@@ -108,7 +107,6 @@ source code and documentation.
108107
- [test/configs/no_asm_config.h](test/configs/no_asm_config.h)
109108
- [test/configs/serial_fips202_config.h](test/configs/serial_fips202_config.h)
110109
- [test/configs/test_alloc_config.h](test/configs/test_alloc_config.h)
111-
- [test/configs/test_rng_fail_config.h](test/configs/test_rng_fail_config.h)
112110

113111
### `HYBRID`
114112

test/configs/configs.yml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -427,18 +427,3 @@ configs:
427427
MLD_CONFIG_FILE:
428428
comment: "/* No need to set this -- we _are_ already in a custom config */"
429429

430-
- path: test/configs/test_rng_fail_config.h
431-
description: "Using custom randombytes that can fail at specific invocation"
432-
defines:
433-
MLD_CONFIG_NAMESPACE_PREFIX: mld
434-
MLD_CONFIG_CUSTOM_RANDOMBYTES:
435-
content: |
436-
#define MLD_CONFIG_CUSTOM_RANDOMBYTES
437-
#if !defined(__ASSEMBLER__)
438-
#include <stddef.h>
439-
#include <stdint.h>
440-
#include "src/sys.h"
441-
int mld_randombytes(uint8_t *out, size_t outlen);
442-
#endif
443-
MLD_CONFIG_FILE:
444-
comment: "/* No need to set this -- we _are_ already in a custom config */"

0 commit comments

Comments
 (0)