verifier

package
v0.0.0-...-ab87613 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EcdsaP256Sha256VerifyingAlgorithm

type EcdsaP256Sha256VerifyingAlgorithm struct {
	EcdsaVerifyingAlgorithm
}

func NewEcdsaSha256VerifyingAlgorithm

func NewEcdsaSha256VerifyingAlgorithm(key *ecdsa.PublicKey) EcdsaP256Sha256VerifyingAlgorithm

func (EcdsaP256Sha256VerifyingAlgorithm) Name

type EcdsaP384Sha384VerifyingAlgorithm

type EcdsaP384Sha384VerifyingAlgorithm struct {
	EcdsaVerifyingAlgorithm
}

func NewEcdsaSha384VerifyingAlgorithm

func NewEcdsaSha384VerifyingAlgorithm(key *ecdsa.PublicKey) EcdsaP384Sha384VerifyingAlgorithm

func (EcdsaP384Sha384VerifyingAlgorithm) Name

type EcdsaVerifyingAlgorithm

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

func (EcdsaVerifyingAlgorithm) Verify

func (alg EcdsaVerifyingAlgorithm) Verify(b []byte, signature []byte) bool

type HttpMessageVerifier

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

func (*HttpMessageVerifier) VerifyRequest

func (hmv *HttpMessageVerifier) VerifyRequest(req *http.Request) (res VerifyResult, err error)

type Verifier

type Verifier interface {
	VerifyRequest(req *http.Request) (VerifyResult, error)
}

type VerifyResult

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

type VerifyingAlgorithm

type VerifyingAlgorithm interface {
	httpsig.Algorithm
	Verify(b []byte, signature []byte) bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳