sm2ec

package
v0.27.2 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: MIT Imports: 5 Imported by: 2

Documentation

Overview

Package sm2ec defines/implements SM2 curve structure.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func P256

func P256() elliptic.Curve

func Unmarshal

func Unmarshal(curve elliptic.Curve, data []byte) (x, y *big.Int)

func UnmarshalCompressed

func UnmarshalCompressed(curve elliptic.Curve, data []byte) (x, y *big.Int)

UnmarshalCompressed converts a point, serialized by MarshalCompressed, into an x, y pair. It is an error if the point is not in compressed form, is not on the curve, or is the point at infinity. On error, x = nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

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