signature

package
v2.6.3 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HMacSignature

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

func NewHMacSignature

func NewHMacSignature(sk string) *HMacSignature

func (*HMacSignature) Signature

func (s *HMacSignature) Signature(payloads []byte) (string, error)

type Interface

type Interface interface {
	Signature(payloads []byte) (string, error)
}

type RSASignature

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

func NewRSASignature

func NewRSASignature(path string) *RSASignature

func (*RSASignature) Signature

func (r *RSASignature) Signature(payloads []byte) (string, error)

Jump to

Keyboard shortcuts

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