This directory contains a minimal example for building mlkem-native using only the deterministic API,
without requiring a randombytes() implementation.
Use this approach when:
- Your application manages its own entropy/randomness externally
- You only need
crypto_kem_keypair_derandandcrypto_kem_enc_derand(deterministic variants)
- mlkem-native source tree:
mlkem/src/andmlkem/src/fips202/ - Your application source code
No randombytes() implementation is required.
The configuration file mlkem_native_config.h sets:
MLK_CONFIG_NO_RANDOMIZED_API: Disablescrypto_kem_keypairandcrypto_kem_encMLK_CONFIG_PARAMETER_SET: Security level (default 768)MLK_CONFIG_NAMESPACE_PREFIX: Symbol prefix (set tomlkem)
- This is incompatible with
MLK_CONFIG_KEYGEN_PCT(pairwise consistency test)
make build # Build the example
make run # Run the example