nqselftest — known
answers for every algorithm family
#include
<noqtis.h>
int
nqselftest(void);
nqselftest()
runs fixed inputs through the public functions of every algorithm family and
compares what they produce with answers built into the library, the kind of
self-test a cryptographic module runs before it is used (FIPS 140-3, section
7.10):
Each family's keys, ciphertexts, signatures, secrets and return codes are hashed with SHA-256; a decapsulation or verification that disagrees changes the hash. The masked decapsulations and signers run as in normal use. It takes about a tenth of a second and allocates nothing.
NQOK when every answer matches;
NQEKAT when one does not.