algorithm

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: 0 Imported by: 0

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 表示签名算法接口

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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