`X448` (aka `curve448`) Elliptic-Curve Diffie-Hellman key exchange protocol. See: - [[ https://www.rfc-editor.org/rfc/rfc7748 ]]

Collection Info

View Source
Collection
core
Path
crypto/x448
Entries
4

Source Files

Constants

2

POINT_SIZE #

Source
POINT_SIZE :: 56

POINT_SIZE is the size of a X448 point (public key/shared secret) in bytes.

SCALAR_SIZE #

Source
SCALAR_SIZE :: 56

SCALAR_SIZE is the size of a X448 scalar (private key) in bytes.

Procedures

2

scalarmult #

Source
scalarmult :: proc(dst, scalar, point: []u8) {…}

scalarmult "multiplies" the provided scalar and point, and writes the resulting point to dst.

scalarmult_basepoint #

Source
scalarmult_basepoint :: proc(dst, scalar: []u8) {…}

scalarmult_basepoint "multiplies" the provided scalar with the X448 base point and writes the resulting point to dst.