httpsig

package
v0.0.0-...-54d5358 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2024 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Overview

Package httpsig implements the HTTP Signature scheme as defined in draft-cavage-http-signatures-10.

Index

Constants

View Source
const (
	// RequestTarget is the pseudo-header used to sign the request target.
	RequestTarget = "(request-target)"
)

Variables

This section is empty.

Functions

func Sign

func Sign(req *http.Request, keyID string, privateKey crypto.PrivateKey, body []byte) error

Sign signs the request using the given keyID and privateKey.

func Verify

func Verify(req *http.Request, keyFn func(keyID string) (crypto.PublicKey, error)) error

Verify verifies signature of the request.

Types

This section is empty.

Jump to

Keyboard shortcuts

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