Skip to main content

Crate polyjose

Crate polyjose 

Source
Expand description

polyjose: JSON Object Signing and Encryption in pure Rust.

  • json RFC 8259 JSON with RFC 7493 (I-JSON) constraints
  • jwa RFC 7518 – algorithm identifiers
  • header RFC 7515/7516 – the JOSE Header
  • jwk RFC 7517 – keys and key sets
  • keys key generation and PEM/DER import and export (RFC 7468, RFC 5958, RFC 5280)
  • jws RFC 7515 – signatures
  • jwe RFC 7516 – encryption
  • jwt RFC 7519 – tokens and claims
  • util base64url and other helpers

Re-exports§

pub use error::Error;
pub use error::Result;

Modules§

error
Error type. The polyjose error type and its stable, cross-platform error codes.
header
The JOSE Header (RFC 7515 §4, RFC 7516 §4). The JOSE Header: registered Header Parameters (RFC 7515 §4.1, RFC 7516 §4.1, RFC 7518 §4.6.1/§4.7.1/§4.8.1, RFC 7797 §3) plus any Public or Private Header Parameters (RFC 7515 §4.2–§4.3).
json
JSON parser, value type and serializer (RFC 8259, RFC 7493). polyjose’s own JSON: RFC 8259 with the I-JSON constraints of RFC 7493.
jwa
Algorithm identifiers (RFC 7518). Algorithm identifiers: JWS alg, JWE alg and JWE enc (RFC 7518).
jwe
JSON Web Encryption (RFC 7516). JSON Web Encryption (RFC 7516).
jwk
JSON Web Key (RFC 7517). JSON Web Key (RFC 7517): typed oct, RSA, EC and OKP keys.
jws
JSON Web Signature (RFC 7515). JSON Web Signature (RFC 7515), with the unencoded payload option (RFC 7797).
jwt
JSON Web Token (RFC 7519). JSON Web Token (RFC 7519): claims, the RFC 8725 validation policy, and nested JWTs.
keys
Key generation and PEM/DER key import and export (RFC 7468, RFC 5958, RFC 5280 §4.1, RFC 5915, RFC 8410, RFC 8017 App. A.1.1). Key generation and PEM/DER key import and export.
util
base64url and helpers. base64url (RFC 4648 §5, no padding) helpers used throughout JOSE.