commit c8910d7e033098d6e1efd6bde935564d515eb061 parent 7f347a006926d89ba2acfb0fe811ee236a3b153a Author: Martin Schanzenbach <schanzen@gnunet.org> Date: Sat, 26 Jul 2025 15:57:42 +0200 add test vector Diffstat:
| M | draft-schanzen-pils.xml | | | 41 | +++++++++++++++++++++++++++++++++++++++++ |
1 file changed, 41 insertions(+), 0 deletions(-)
diff --git a/draft-schanzen-pils.xml b/draft-schanzen-pils.xml @@ -219,6 +219,47 @@ sk = HKDF-Expand(prk, "gnunet-pils-contextual-peer-key", 32) FIXME test vectors </t> </section> + <section> + <name>Test Vectors</name> + <t> + The following test vectors can be used by implementations to test + for conformance with this specification. Unless indicated otherwise, + the test vectors are provided as hexadecimal byte arrays. + </t> + <section> + <name>PID Derivation</name> + <artwork name="" type="" align="left" alt=""> + <![CDATA[ +Addresses (sorted): +gnunet+udp://6.7.8.9 +gnunet+tcp://1.2.3.4 +gnunet+https://example.gnu + +Address hash: +6c57def87391551d +2d5b16abb8072e42 +dc389a3a85723fcb +a26afdcaccaea027 +3af57a3e0e1d8777 +8099afb0e9a00995 +c444927a120f0170 +732d4fe0f50e3cb2 + +Seed key: +50d7b652a4efeadf +f37396909785e595 +2171a02178c8e7d4 +50fa907925fafd98 + +Derived key: +9b8d17711be50a07 +e7d984bd9c1e6d9c +f5492cfb2713f8cb +42eaf251573f39d7 + ]]> + </artwork> + </section> + </section> <!-- <section> <name>Acknowledgements</name> <t>