gose/jose
JOSE algorithm string mapping (RFC 7518).
Maps between gose algorithm types and JOSE string identifiers.
Values
pub fn content_alg_from_string(
alg: String,
) -> Result(gose.ContentAlg, gose.GoseError)
Parse a content encryption algorithm from its JOSE string representation.
pub fn content_alg_to_string(alg: gose.ContentAlg) -> String
Convert a content encryption algorithm to its JOSE string representation.
pub fn key_encryption_alg_from_string(
alg: String,
) -> Result(gose.KeyEncryptionAlg, gose.GoseError)
Parse a key encryption algorithm from its JOSE string representation.
pub fn key_encryption_alg_to_string(
alg: gose.KeyEncryptionAlg,
) -> String
Convert a key encryption algorithm to its JOSE string representation.
pub fn signing_alg_from_string(
alg: String,
) -> Result(gose.SigningAlg, gose.GoseError)
Parse a signing algorithm from its JOSE string representation.
pub fn signing_alg_to_string(alg: gose.SigningAlg) -> String
Convert a signing algorithm to its JOSE string representation.