This change adds module-private interfaces that allow ephemeral key material
to be recorded during execution and, during verification, injected. Two special
tests are defined for generating and verifying test vectors: TestVectorGenerate
and TestVectorInterop. The former writes test vectors to the file identified by
the HPKE_TEST_VECTORS_OUT environment variable, or does nothing if not set.
The latter reads test vectors from the file identified by the HPKE_TEST_VECTORS_IN
environment variable and verifies them, or does nothing if not set. See README.md
for sample usage.
Only generate test vectors for "standard" algorithms. PQC KEMs, not having
backing standards (or ways to encode private keys), are unsupported.
This change adds module-private interfaces that allow ephemeral key material to be recorded during execution and, during verification, injected. Two special tests are defined for generating and verifying test vectors:
TestVectorGenerate
andTestVectorInterop
. The former writes test vectors to the file identified by theHPKE_TEST_VECTORS_OUT
environment variable, or does nothing if not set. The latter reads test vectors from the file identified by theHPKE_TEST_VECTORS_IN
environment variable and verifies them, or does nothing if not set. See README.md for sample usage.Only generate test vectors for "standard" algorithms. PQC KEMs, not having backing standards (or ways to encode private keys), are unsupported.