Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/omtls/blob/main/tests/vectors/x25519/rfc7748.txt # omtls omtls: a TLS 1.3 client (RFC 8446) written fresh in seeded Omega, for mailhand. Not audited by a cryptographer. Free (Apache-2.0). Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `omtls / tests / vectors / x25519 / rfc7748.txt` 21 lines ยท 2052 bytes Raw Blame History 1 # RFC 7748 X25519 test vectors (https://www.rfc-editor.org/rfc/rfc7748.txt, sha256 2 # `279ca0ecc5e92e2962e27b846986aeb74729d9dd34bd4a04a362f80dcb596ad3`), sections 5.2 and 6.1, copied by hand. 3 # License: rfc7748.NOTICE. Line formats (read by driver.om): 4 # X R KHEX UHEX OHEX x25519_scalarmult(k, u) must return R and write OHEX 5 # B KHEX OHEX x25519_base(k) must return 0 and write OHEX 6 # I N OHEX section 5.2 iteration from k = u = 9: N steps of (k, u) = (X25519(k, u), k) 7 # L length checks: 31- and 33-byte o, k, u must return 2 8 # section 5.2, first vector 9 X 0 `a546e36bf0527c9d3b16154b82465edd62144c0ac1fc5a18506a2244ba449ac4` `e6db6867583030db3594c1a424b15f7c726624ec26b3353b10a903a6d0ab1c4c` `c3da55379de9c6908e94ea4df28d084f32eccf03491c71f754b4075577a28552` 10 # section 5.2, second vector 11 X 0 `4b66e9d4d1b4673c5ad22691957d6af5c11b6421e0ea01d42ca4169e7918ba0d` `e5210f12786811d3f4b7959d0538ae2c31dbe7106fc03c3efc4cd549c715a493` `95cbde9476e8907d7aade45cb4b873f88b595a68799fa152e6f8f7647aac7957` 12 # section 5.2, iteration: after one and after 1,000 iterations 13 I 1 `422c8e7a6227d7bca1350b3e2bb7279f7897b87bb6854b783c60e80311ae3079` 14 I 1000 `684cf59ba83309552800ef566f2f4d3c1c3887c49360e3875f2eb94d99532c51` 15 # section 6.1: Alice's and Bob's public keys, then the shared secret both ways 16 B `77076d0a7318a57d3c16c17251b26645df4c2f87ebc0992ab177fba51db92c2a` `8520f0098930a754748b7ddcb43ef75a0dbf3a0d26381af4eba4a98eaa9b4e6a` 17 B `5dab087e624a8a4b79e17f8b83800ee66f3bb1292618b6fd1c2f8b27ff88e0eb` `de9edb7d7b7dc1b4d35b61c2ece435373f8343c85b78674dadfc7e146f882b4f` 18 X 0 `77076d0a7318a57d3c16c17251b26645df4c2f87ebc0992ab177fba51db92c2a` `de9edb7d7b7dc1b4d35b61c2ece435373f8343c85b78674dadfc7e146f882b4f` `4a5d9d5ba4ce2de1728e3bf480350f25e07e21c947d19e3376f09b3c1e161742` 19 X 0 `5dab087e624a8a4b79e17f8b83800ee66f3bb1292618b6fd1c2f8b27ff88e0eb` `8520f0098930a754748b7ddcb43ef75a0dbf3a0d26381af4eba4a98eaa9b4e6a` `4a5d9d5ba4ce2de1728e3bf480350f25e07e21c947d19e3376f09b3c1e161742` 20 # API length contract (not from the RFC): five calls, each must return 2 21 L