x448

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package x448 provides constant-time field arithmetic and scalar multiplication for Curve448. Portions of this file are derived from Cloudflare's CIRCL project (https://github.com/cloudflare/circl) which is licensed under the BSD 3-Clause "New" or "Revised" License. The code has been adapted to fit the needs of the cryptonite-go project.

Index

Constants

View Source
const Size = 56

Size is the length in bytes of field elements and Curve448 points.

Variables

This section is empty.

Functions

func LowOrderPoint

func LowOrderPoint(pub *[Size]byte) bool

LowOrderPoint reports whether the provided public key is a low-order point on the curve or its twist. This mirrors the validation performed in CIRCL.

func ScalarBaseMult

func ScalarBaseMult(dst *[Size]byte, scalar *[Size]byte)

ScalarBaseMult multiplies the canonical base point by the provided scalar.

func ScalarMult

func ScalarMult(dst *[Size]byte, scalar, point *[Size]byte)

ScalarMult performs scalar multiplication on Curve448 using the Montgomery ladder. The scalar is clamped as per RFC 7748.

Types

This section is empty.

Jump to

Keyboard shortcuts

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