package core:crypto/x25519

⌘K
Ctrl+K
or
/

    Overview

    package x25519 implements the X25519 (aka curve25519) Elliptic-Curve Diffie-Hellman key exchange protocol.

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

    Index

    Types (0)

    This section is empty.

    Constants (2)
    Variables (0)

    This section is empty.

    Procedure Groups (0)

    This section is empty.

    Types

    This section is empty.

    Constants

    POINT_SIZE ¶

    POINT_SIZE :: 32
     

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

    SCALAR_SIZE ¶

    SCALAR_SIZE :: 32
     

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

    Variables

    This section is empty.

    Procedures

    scalarmult ¶

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

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

    scalarmult_basepoint ¶

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

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

    Procedure Groups

    This section is empty.

    Source Files

    Generation Information

    Generated with odin version dev-2024-12 (vendor "odin") Windows_amd64 @ 2024-12-17 21:11:00.949741500 +0000 UTC