signer

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Signer

type Signer struct {
	// contains filtered or unexported fields
}

Signer 签名器结构体

func NewSignerFromPEMFile

func NewSignerFromPEMFile(privateKeyPath string) (*Signer, error)

NewSignerFromPEMFile 从PEM文件创建签名器

func (*Signer) SignFile

func (s *Signer) SignFile(filePath string) (string, error)

SignFile 对文件进行签名

func (*Signer) SignString

func (s *Signer) SignString(data string) (string, error)

SignString 对字符串进行签名

Jump to

Keyboard shortcuts

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