cloudflared-mirror/vendor/git.schwanenlied.me/yawning/x448.git
Tanya Verma e3b1f5b7d0 Add Oblivious DoH support 2020-12-07 02:52:41 -08:00
..
LICENSE.txt Add Oblivious DoH support 2020-12-07 02:52:41 -08:00
README.md Add Oblivious DoH support 2020-12-07 02:52:41 -08:00
x448.go Add Oblivious DoH support 2020-12-07 02:52:41 -08:00
x448_ref.go Add Oblivious DoH support 2020-12-07 02:52:41 -08:00

README.md

x448 - curve448 ECDH

Yawning Angel (yawning at schwanenlied dot me)

A straight forward port of Michael Hamburg's x448 code to Go lang.

See: https://www.rfc-editor.org/rfc/rfc7748.txt

If you're familiar with how to use golang.org/x/crypto/curve25519, you will be right at home with using x448, since the functions are the same. Generate a random secret key, ScalarBaseMult() to get the public key, etc etc etc.

Both routines return 0 on success, -1 on failure which MUST be checked, and the handshake aborted on failure.