Jose.Jwatype alg = [ | `RS256| `HS256| `ES256| `ES384| `ES512| `EdDSA| `Ed25519| `RSA_OAEP| `RSA1_5| `Dir| `A128KW| `A256KW| `ECDH_ESElliptic Curve Diffie-Hellman Ephemeral Static key agreement using Concat KDF - Recommended+ (RFC 7518 §4.1, §4.6)
*)| `ECDH_ES_A128KW| `ECDH_ES_A256KW| `None| `Unsupported of string ]HS256, RS256, ES256, ES384, ES512, EdDSA, Ed25519.RSA1_5, RSA_OAEP, Dir, A128KW, A256KW, ECDH_ES, ECDH_ES_A128KW, ECDH_ES_A256KW.val alg_to_string : alg -> stringval alg_of_string : string -> algval alg_to_json : alg -> Yojson.Safe.tval alg_of_json : Yojson.Safe.t -> algval use_to_string : use -> stringval use_of_string : string -> useval kty_to_string : kty -> stringval kty_of_string : string -> ktytype enc = [ | `A128CBC_HS256AES_128_CBC_HMAC_SHA_256 authenticated encryption algorithm - Required (RFC 7518 §5.1, §5.2.3) https://tools.ietf.org/html/rfc7518#section-5.2.3
*)| `A256CBC_HS512AES_256_CBC_HMAC_SHA_512 authenticated encryption algorithm - Required (RFC 7518 §5.1, §5.2.5) https://tools.ietf.org/html/rfc7518#section-5.2.5
*)| `A128GCM| `A256GCM ]Content Encryption Algorithms for JWE (RFC 7518 §5.1)
val enc_to_string : enc -> stringval enc_of_string : string -> enc