Skip to main content

Module crypto

Module crypto 

Source
Expand description

§DPoP Cryptographic Primitives

This module provides the implementation of Demonstrating Proof-of-Possession (DPoP) as per RFC 9449.

It handles:

  • P-256 key pair generation.
  • DPoP-signed JWT generation.
  • SHA-256 hashing of access tokens for the ath claim.

Structs§

DpopKey
An ephemeral P-256 key pair used for signing DPoP proofs.

Functions§

dpop_nonce
The DPoP-Nonce response header, if present (RFC 9449 §8.1).