Commit 1d24ae26 authored by Gaëtan Cassiers's avatar Gaëtan Cassiers
Browse files

Add documentation for variants configuration

parent 7f8e5f84
......@@ -21,6 +21,11 @@ Shadow:
These primitives have much better performance than the reference implementation, however they are not fully optimized either: portability and code simplicity are also a concern.
The code size is not optimized at all, for reduced code size, please look at the portable embedded implementation.
## Configuration
Selecting the spook variant is done by means of the `#define`s `MULTI_USER` and `SMALL_PERM` (both default to `0`, which gives the primary candidate).
## Build
Have a look at `test/Makefile`.
......
......@@ -12,10 +12,12 @@
#ifndef _PARAMETERS_H_
#define _PARAMETERS_H_
// Selects the "su" variant if set to 0 and the "mu" variant if set to "1"
#ifndef MULTI_USER
#define MULTI_USER 0
#endif // MULTI_USER
// Selects the "512" variant if set to 0 and the "384" variant if set to "1"
#ifndef SMALL_PERM
#define SMALL_PERM 0
#endif // SMALL_PERM
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment