xmssmt

package
v1.0.4026 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const XMSS_OID_LEN = 4

Variables

This section is empty.

Functions

func ExportPublicKey

func ExportPublicKey(priv *xmss.PrivateKey) (*xmss.PublicKey, error)

导出公钥 / Export PublicKey

func GenerateKey

func GenerateKey(rand io.Reader, oid uint32) (*xmss.PrivateKey, *xmss.PublicKey, error)

func GenerateKeyWithName

func GenerateKeyWithName(rand io.Reader, name string) (*xmss.PrivateKey, *xmss.PublicKey, error)

func GetNameByOid

func GetNameByOid(oid uint32) (string, error)

func GetOidByName

func GetOidByName(name string) (uint32, error)

func GetPrivateKeyTypeName

func GetPrivateKeyTypeName(priv *xmss.PrivateKey) (string, error)

获取私钥 OID 类型 / Get PrivateKey OID type name

func GetPublicKeyTypeName

func GetPublicKeyTypeName(pub *xmss.PublicKey) (string, error)

获取公钥 OID 类型 / Get PublicKey OID type name

func NewParamsWithName

func NewParamsWithName(name string) (*xmss.Params, error)

func NewParamsWithOid

func NewParamsWithOid(oid uint32) (*xmss.Params, error)

func Sign

func Sign(priv *xmss.PrivateKey, msg []byte) ([]byte, error)

func Verify

func Verify(pub *xmss.PublicKey, msg, signature []byte) (match bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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