Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SignatureAlgorithm ¶
type SignatureAlgorithm interface {
// GetType 获取签名类型
GetType() string
// Sign 对消息进行签名
Sign(secKey []byte, message []byte) ([]byte, error)
// Verify 验证签名
Verify(pubKey []byte, signBytes []byte, message []byte) (bool, error)
// GenerateKeyPair 生成密钥对
GenerateKeyPair() ([]byte, []byte, error)
}
SignatureAlgorithm 表示签名算法接口
Click to show internal directories.
Click to hide internal directories.