crypto

package
v0.0.0-...-2c9f6af Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 8, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package crypto provides small X25519 helpers for Reality / v2 key handling. It uses the standard library crypto/ecdh — no xray-core or xtls/reality dep.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeriveX25519Public

func DeriveX25519Public(privB64 string) (string, error)

DeriveX25519Public returns the base64url public key for a base64url private key. Used to derive Reality pbk / v2 pbk for subscription links.

func GenerateX25519KeyPair

func GenerateX25519KeyPair() (privB64, pubB64 string, err error)

GenerateX25519KeyPair returns a fresh (private, public) key pair as base64url strings (no padding). Used to mint Reality server private keys.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL