Documentation ¶
Index ¶
- Constants
- func ExportPublicKey(priv *xmss.PrivateKey) (*xmss.PublicKey, error)
- func GenerateKey(rand io.Reader, oid uint32) (*xmss.PrivateKey, *xmss.PublicKey, error)
- func GenerateKeyWithName(rand io.Reader, name string) (*xmss.PrivateKey, *xmss.PublicKey, error)
- func GetNameByOid(oid uint32) (string, error)
- func GetOidByName(name string) (uint32, error)
- func GetPrivateKeyTypeName(priv *xmss.PrivateKey) (string, error)
- func GetPublicKeyTypeName(pub *xmss.PublicKey) (string, error)
- func NewParamsWithName(name string) (*xmss.Params, error)
- func NewParamsWithOid(oid uint32) (*xmss.Params, error)
- func Sign(priv *xmss.PrivateKey, msg []byte) ([]byte, error)
- func Verify(pub *xmss.PublicKey, msg, signature []byte) (match bool)
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 GenerateKeyWithName ¶
func GetNameByOid ¶
func GetOidByName ¶
func GetPrivateKeyTypeName ¶
func GetPrivateKeyTypeName(priv *xmss.PrivateKey) (string, error)
获取私钥 OID 类型 / Get PrivateKey OID type name
func GetPublicKeyTypeName ¶
获取公钥 OID 类型 / Get PublicKey OID type name
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.