signing

package
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const EmptyBodySHA256Hex = irishmac.EmptyBodySHA256Hex

Variables

This section is empty.

Functions

func CanonicalIrisRequest

func CanonicalIrisRequest(method, target, timestamp, nonce, bodySHA256 string) string

func CanonicalIrisTarget

func CanonicalIrisTarget(target string) (string, error)

func GenerateNonce

func GenerateNonce() string

func SHA256HexBytes

func SHA256HexBytes(body []byte) string

func SetIrisHMACHeaders

func SetIrisHMACHeaders(req *http.Request, signer *HMACSigner, method, path, bodySHA256 string) error

func SignIrisCanonicalWithSigner

func SignIrisCanonicalWithSigner(signer *HMACSigner, method, path, timestamp, nonce, bodySHA256 string) (string, error)

Types

type HMACSigner

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

func NewHMACSigner

func NewHMACSigner(secret string) *HMACSigner

func (*HMACSigner) Sign

func (s *HMACSigner) Sign(canonical string) string

Jump to

Keyboard shortcuts

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