Debian Codegraph @

others/mbedtls/tf-psa-crypto/drivers/pqcp/mldsa-native/examples/README.md

raw
1 [//]: # (SPDX-License-Identifier: CC-BY-4.0)
2
3 # Usage examples
4
5 This directory contains minimal examples demonstrating how you can use mldsa-native.
6
7 ## Basic
8
9 See [basic](basic) for a basic example of how to build a single instance of mldsa-native.
10
11 ## Basic_deterministic
12
13 See [basic_deterministic](basic_deterministic) for a basic example of how to build a single instance of mldsa-native without `randombytes()` implementation. This allows users to build mldsa-native using only the deterministic API when randomized functions are not required.
14
15 ## Basic_lowram
16
17 See [basic_lowram](basic_lowram) for a basic example of how to build a single instance of mldsa-native with reduced RAM usage (`MLD_CONFIG_REDUCE_RAM`). This is useful for embedded systems with tight RAM constraints.
18
19 ## Multi-level build (C only)
20
21 See [multilevel_build](multilevel_build) for an example of how to build one instance of mldsa-native per security level,
22 in such a way that level-independent code is shared.
23
24 ## Multi-level build (with native code)
25
26 See [multilevel_build_native](multilevel_build_native) for an example of how to build one instance of mldsa-native per
27 security level, in such a way that level-independent code is shared, and leveraging the native backends.
28
29 ## Custom FIPS202 implementation
30
31 See [bring_your_own_fips202](bring_your_own_fips202) for an example of how to use mldsa-native with your own FIPS-202
32 implementation.
33
34 ## Custom FIPS202 implementation (static state variant)
35
36 See [bring_your_own_fips202_static](bring_your_own_fips202_static) for an example of how to use mldsa-native with a
37 custom FIPS-202 implementation using a static state. This variant demonstrates the serial-only FIPS-202 configuration
38 (`MLD_CONFIG_SERIAL_FIPS202_ONLY`).
39
40 ## Custom config + custom FIPS-202 backend
41
42 See [custom_backend](custom_backend) for an example of how to use mldsa-native with a custom configuration file and a
43 custom FIPS-202 backend.
44
45 ## Monobuild (C only)
46
47 See [monolithic_build](monolithic_build) for an example of how to build mldsa-native (with C backend) from a single
48 auto-generated compilation unit.
49
50 ## Multi-level monobuild (C only)
51
52 See [monolithic_build_multilevel](monolithic_build_multilevel) for an example of how to build all security levels of
53 mldsa-native (with C backend) inside a single compilation unit, sharing the level-independent code.
54
55 ## Multi-level monobuild (with native code)
56
57 See [monolithic_build_multilevel_native](monolithic_build_multilevel_native) for an example of how to build all security
58 levels of mldsa-native inside a single compilation unit, sharing the level-independent code, while also linking in assembly
59 from the native backends.