sm2

package
v0.0.0-...-ebe377f Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const SM2PrivateKeySize = 32

Variables

This section is empty.

Functions

This section is empty.

Types

type SignatureData

type SignatureData struct {
	V byte
	R *big.Int
	S *big.Int
}

SignatureData represents a signature consisting of the components v, r, and s.

func ParseSignatureData

func ParseSignatureData(data []byte) (*SignatureData, error)

ParseSignatureData parses a signature from the provided bytes.

func (*SignatureData) IsCanonical

func (sig *SignatureData) IsCanonical() bool

IsCanonical checks if the signature is canonical.

func (*SignatureData) ToBytes

func (sig *SignatureData) ToBytes() []byte

ToBytes converts the signature to bytes.

Jump to

Keyboard shortcuts

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