JWK and PEM Key Support
The rfc9180.jwk module provides JSON Web Key (JWK) and PEM support for HPKE keys.
Keys can be loaded from JWK (EC, X25519, X448) or PEM format and used directly with
the HPKE API.
- class rfc9180.jwk.KEMKeyInterface(key)[source]
Bases:
ABC- property raw: EllipticCurvePublicKey | X25519PublicKey | X448PublicKey | EllipticCurvePrivateKey | X25519PrivateKey | X448PrivateKey
- class rfc9180.jwk.ECKey(key)[source]
Bases:
KEMKeyInterface
- class rfc9180.jwk.X25519Key(key)[source]
Bases:
KEMKeyInterface
- class rfc9180.jwk.X448Key(key)[source]
Bases:
KEMKeyInterface