sm2

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(priv *ecdsa.PrivateKey, ciphertext []byte) ([]byte, error)

Decrypt sm2 decrypt implementation

func Encrypt

func Encrypt(random io.Reader, pub *ecdsa.PublicKey, msg []byte) ([]byte, error)

Encrypt sm2 encrypt implementation

func P256

func P256() elliptic.Curve

P256 init and return the singleton

Types

This section is empty.

Jump to

Keyboard shortcuts

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