Documentation
¶
Overview ¶
Package dpop implements strict, reusable DPoP proof cryptographic primitives.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrReplay identifies a proof already accepted by this process. ErrReplay = errors.New("DPoP proof replay") // ErrReplayCacheFull identifies a cache whose unexpired entries reached its bound. ErrReplayCacheFull = errors.New("DPoP replay cache full") )
Functions ¶
func ReplayHash ¶
ReplayHash computes the versioned, length-delimited replay-storage key.
func VerifyAccessTokenHash ¶
VerifyAccessTokenHash requires and constant-time verifies a proof's ath.
func VerifyThumbprint ¶
VerifyThumbprint constant-time verifies a proof's binding against a stored jkt.
Types ¶
type Proof ¶
type Proof struct {
Algorithm string
Thumbprint string
JTI string
Method string
Target string
ATH string
}
Proof is a verified DPoP proof and its replay inputs.
type ReplayCache ¶
type ReplayCache struct {
// contains filtered or unexported fields
}
ReplayCache is a process-local, capacity-bounded DPoP replay cache.
func NewReplayCache ¶
func NewReplayCache(maxEntries int) *ReplayCache
NewReplayCache creates a replay cache with the supplied hard entry limit.
Click to show internal directories.
Click to hide internal directories.