internal

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetInt

func GetInt() *big.Int

GetInt get big.Int

func InitTable

func InitTable()

base point &[830053d 328990f 6c04fe1 c0f72e5 1e19f3c 666b093 175a87b ec38276 222cf4b] &[185a1bba 354e593 1295fac1 f2bc469 47c60fa c19b8a9 f63533e 903ae6b c79acba] &[2 0 1fffff00 7ff 0 0 0 2000000 0]

func MarshalSig

func MarshalSig(x, y []byte) []byte

MarshalSig marshal

func PutInt

func PutInt(in *big.Int)

PutInt put big.Int

func Sign_32bit

func Sign_32bit(dgst []byte, reader io.Reader, key []byte) ([]byte, uint8, error)

Sign_32bit to sign dgst

func Sm2_32bit

func Sm2_32bit() elliptic.Curve

nolint Sm2_32bit is sm2 curve init function

func Unmarshal

func Unmarshal(in []byte) (x []byte, y []byte)

Unmarshal unmarshal

func VerifySignature_32bit

func VerifySignature_32bit(sig, dgst []byte, X []byte, Y []byte) (bool, error)

VerifySignature_32bit to verify a signature and return error

Types

This section is empty.

Jump to

Keyboard shortcuts

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