signature

package
v0.0.0-...-f08b0e3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Signature

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

func NewSignature

func NewSignature(privateKey *rsa.PrivateKey) *Signature

func (*Signature) Sign

func (s *Signature) Sign(data []byte) ([]byte, error)

func (*Signature) SignBase64

func (s *Signature) SignBase64(data []byte) (string, error)

func (*Signature) Verify

func (s *Signature) Verify(data []byte, signature []byte) bool

func (*Signature) VerifyBase64

func (s *Signature) VerifyBase64(data []byte, signature string) bool

Jump to

Keyboard shortcuts

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