Jose.Jwa
type alg = [
| `RS256
HMAC using SHA-256
*)| `HS256
RSASSA-PKCS1-v1_5 using SHA-256
*)| `ES256
ECDSA using P-256 and SHA-256
*)| `ES384
ECDSA using P-384 and SHA-384
*)| `ES512
ECDSA using P-521 and SHA-512
*)| `EdDSA
| `RSA_OAEP
RSAES OAEP using default parameters
*)| `RSA1_5
RSA PKCS 1
*)| `None
| `Unsupported of string
]
RS256
and HS256
and none is currently the only supported algs for signature - RSA_OAEP
is currently the only supported alg for encryptionval alg_to_string : alg -> string
val alg_of_string : string -> alg
val alg_to_json : alg -> Yojson.Safe.t
val alg_of_json : Yojson.Safe.t -> alg
val kty_to_string : kty -> string
val kty_of_string : string -> kty
type enc = [
| `A128CBC_HS256
AES_128_CBC_HMAC_SHA_256 authenticated encryption algorithm, https://tools.ietf.org/html/rfc7518#section-5.2.3
*)| `A256GCM
AES GCM using 256-bit key
*) ]
https://tools.ietf.org/html/rfc7518#section-5
val enc_to_string : enc -> string
val enc_of_string : string -> enc