# Capability tables
Generated by `cargo run --example capabilities`.
`tests/capability_report.rs` performs every advertised operation, so a row that overstates itself fails the test suite.
## Build features
| `post-quantum` | no | ML-DSA and composite signature algorithms, and their key generation |
| `rsa-oaep` | no | RSA-OAEP key transport with SHA-1 |
| `deprecated` | no | legacy identifiers this crate otherwise refuses: `RSA-OAEP` (SHA-1 label) and the `none` algorithm identifier |
## JWS algorithms
| `HS256` | supported | sign, verify | symmetric; requires a key of at least the digest size |
| `HS384` | supported | sign, verify | symmetric |
| `HS512` | supported | sign, verify | symmetric |
| `RS256` | supported | sign, verify | RSA keys must be at least 2048 bits |
| `RS384` | supported | sign, verify | RSA keys must be at least 2048 bits |
| `RS512` | supported | sign, verify | RSA keys must be at least 2048 bits |
| `PS256` | supported | sign, verify | RSASSA-PSS; an imported RSA-PSS key (SPKI with id-RSASSA-PSS parameters) is refused, so use a plain RSA key |
| `PS384` | supported | sign, verify | RSASSA-PSS |
| `PS512` | supported | sign, verify | RSASSA-PSS |
| `ES256` | supported | sign, verify | requires crv P-256 |
| `ES384` | supported | sign, verify | requires crv P-384 |
| `ES512` | supported | sign, verify | requires crv P-521 |
| `EdDSA` | supported | sign, verify | curve-dependent Ed25519 / Ed448; application allowlists keep wire names distinct |
| `Ed25519` | supported | sign, verify | fully specified identifier (RFC 9864); same primitive as `EdDSA` |
| `Ed448` | supported | sign, verify | fully specified pure Ed448; empty context (RFC 8037 / RFC 9864) |
| `ES256K` | recognized, unsupported | — | secp256k1 is not supported by the backend; the identifier parses and every operation refuses it |
| `ML-DSA-44` | feature-gated (`post-quantum`) | — | FIPS 204 |
| `ML-DSA-65` | feature-gated (`post-quantum`) | — | FIPS 204 |
| `ML-DSA-87` | feature-gated (`post-quantum`) | — | FIPS 204 |
| `ML-DSA-44-ES256` | feature-gated (`post-quantum`) | — | composite |
| `ML-DSA-65-ES256` | feature-gated (`post-quantum`) | — | composite |
| `ML-DSA-65-ES384` | feature-gated (`post-quantum`) | — | composite |
| `ML-DSA-87-ES384` | feature-gated (`post-quantum`) | — | composite |
| `ML-DSA-44-Ed25519` | feature-gated (`post-quantum`) | — | composite |
| `none` | refused by policy — unsecured JWS/JWT: the `deprecated` feature exposes the identifier, and verification of an unsecured token remains refused | — | RFC 8725 §3.1 forbids accepting it; the identifier exists for inspection paths only |
## JWE key management
| `A128KW` | supported | encrypt, decrypt | AES key wrapping with an `oct` key of the matching size |
| `A192KW` | supported | encrypt, decrypt | AES key wrapping with an `oct` key of the matching size |
| `A256KW` | supported | encrypt, decrypt | AES key wrapping with an `oct` key of the matching size |
| `dir` | supported | encrypt, decrypt | the `enc` key is the recipient key; size must match the content encryption |
| `A128GCMKW` | supported | encrypt, decrypt | iv and tag are always library-generated, never read from a recipient header |
| `A192GCMKW` | supported | encrypt, decrypt | iv and tag are always library-generated |
| `A256GCMKW` | supported | encrypt, decrypt | iv and tag are always library-generated |
| `RSA-OAEP` | feature-gated (`rsa-oaep`) | — | RSAES-OAEP with SHA-1 MGF1; compiled in only with `rsa-oaep`, and keys below 2048 bits are refused |
| `RSA-OAEP-256` | supported | encrypt, decrypt | RSA-OAEP with SHA-256 |
| `ECDH-ES` | supported | encrypt, decrypt, deriveKey | direct ECDH-ES; the whole key is the derived KEK, so each `enc` needs the matching key size |
| `ECDH-ES+A128KW` | supported | encrypt, decrypt, deriveKey | general serialization is refused for this family (single recipient per element) |
| `ECDH-ES+A192KW` | supported | encrypt, decrypt, deriveKey | single recipient |
| `ECDH-ES+A256KW` | supported | encrypt, decrypt, deriveKey | single recipient |
| `PBES2-HS256+A128KW` | supported | encrypt, decrypt | password-based: takes `Password`, and p2c is bounded (ADR 0021) |
| `PBES2-HS384+A192KW` | supported | encrypt, decrypt | password-based |
| `PBES2-HS512+A256KW` | supported | encrypt, decrypt | password-based |
| `RSA1_5` | refused by policy — PKCS #1 v1.5 key encryption is a chosen-ciphertext oracle (BLEEP/BACA) and RFC 8725 §4.1 forbids it | — | never offered; the refusal names the algorithm so a misconfigured peer is visible |
| `RSA-OAEP-384` | recognized, unsupported | — | not in the backend's key-management set; the identifier is unknown to the parser rather than silently accepted |
## JWE content encryption
| `A128CBC-HS256` | supported | encrypt, decrypt | iv and tag are library-generated; `enc` is always integrity-protected in the protected header |
| `A192CBC-HS384` | supported | encrypt, decrypt | iv and tag are library-generated; `enc` is always integrity-protected in the protected header |
| `A256CBC-HS512` | supported | encrypt, decrypt | iv and tag are library-generated; `enc` is always integrity-protected in the protected header |
| `A128GCM` | supported | encrypt, decrypt | iv and tag are library-generated; `enc` is always integrity-protected in the protected header |
| `A192GCM` | supported | encrypt, decrypt | iv and tag are library-generated; `enc` is always integrity-protected in the protected header |
| `A256GCM` | supported | encrypt, decrypt | iv and tag are library-generated; `enc` is always integrity-protected in the protected header |
## Key formats
| `JWK (JSON)` | supported | import, export | Jwk::from_json / Jwk::to_json |
| `PKCS#8 DER / "PRIVATE KEY"` | supported | import, export | RSA, EC P-256/P-384/P-521, Ed25519, Ed448, X25519; export emits the narrower OneAsymmetricKey form (ADR 0022) |
| `SPKI DER / "PUBLIC KEY"` | supported | import, export | OKP/X25519 has no SPKI form in this backend and is refused by name |
| `PKCS#1 DER / "RSA PRIVATE KEY"` | supported | import | rebuilt from its parts and checked against itself (ADR 0023); multi-prime is refused |
| `PKCS#1 "RSA PUBLIC KEY"` | supported | import | import only; export uses SPKI |
| `SEC1 DER / "EC PRIVATE KEY"` | supported | import | must state its curve by name; explicit parameters are refused (ADR 0024) |
| `Encrypted PKCS#8 / "ENCRYPTED PRIVATE KEY"` | supported | import, export | PBES2 + PBKDF2-HMAC-SHA2 + AES-CBC only, with a bounded work budget (ADR 0025) |
| `X.509 certificate / "CERTIFICATE"` | supported | import | subject public key only; validates nothing about the certificate (ADR 0026) |
| `PKCS#12 / JWK Set encryption` | recognized, unsupported | — | not implemented; a JWK Set is read as plain JSON only |
| `password-protected legacy PEM (Proc-Type/DEK-Info)` | recognized, unsupported | — | recognized by the armor reader and refused: the encryption is its own key material, not a JOSE input |
## Key types and curves
| `RSA` | supported | generate, import, export, thumbprint | minimum 2048-bit modulus, enforced on import, generation and use |
| `EC P-256` | supported | generate, import, export, thumbprint | ES256, ECDH-ES |
| `EC P-384` | supported | generate, import, export, thumbprint | ES384, ECDH-ES |
| `EC P-521` | supported | generate, import, export, thumbprint | ES512, ECDH-ES |
| `EC secp256k1` | recognized, unsupported | — | no backend support; see ES256K |
| `EC Brainpool curves` | recognized, unsupported | — | no backend support; a Brainpool certificate or SEC1 file is refused naming the curve |
| `OKP Ed25519` | supported | generate, import, export, thumbprint | EdDSA / Ed25519; exports SPKI, unlike X25519 |
| `OKP X25519` | supported | generate, import, export, thumbprint | key agreement only; `deriveKey` on a signing key (and the reverse) is refused |
| `OKP Ed448` | supported | generate, import, export, thumbprint | EdDSA / Ed448; pure Ed448, empty context; PKCS#8 and SPKI |
| `OKP X448` | recognized, unsupported | — | backend primitive exists; JOSE agreement integration is not exposed |
| `oct` | supported | generate, import, export, thumbprint | key size is checked against the algorithm that uses it |
| `AKP (ML-DSA, composites)` | feature-gated (`post-quantum`) | — | composite encodings have no PKCS#8/SPKI form, so PEM export is refused |