Expand description
JOSE algorithm identifiers and mapping to kryptering enums.
Parse case-sensitive wire names from configuration or a JOSE header:
use jose_rs::{JweAlgorithm, JweEncryption, JwsAlgorithm};
let signature: JwsAlgorithm = "Ed448".parse()?;
let key_management: JweAlgorithm = "RSA-OAEP-256".parse()?;
let encryption: JweEncryption = "A256GCM".parse()?;Parsing identifies the algorithm. Verification and decryption still require the caller’s algorithm policy and a suitable key.
Enums§
- JweAlgorithm
- JWE key management algorithm.
- JweEncryption
- JWE content encryption algorithm.
- JwsAlgorithm
- JWS signature algorithm.