gose/jose/algorithm
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(algorithm.ContentAlg, gose.GoseError)
Parse a content encryption algorithm from its JOSE string representation.
pub fn content_alg_to_string(alg: algorithm.ContentAlg) -> String
Convert a content encryption algorithm to its JOSE string representation.
pub fn key_encryption_alg_from_string(
alg: String,
) -> Result(algorithm.KeyEncryptionAlg, gose.GoseError)
Parse a key encryption algorithm from its JOSE string representation.
pub fn key_encryption_alg_to_string(
alg: algorithm.KeyEncryptionAlg,
) -> String
Convert a key encryption algorithm to its JOSE string representation.
pub fn signing_alg_from_string(
alg: String,
) -> Result(algorithm.SigningAlg, gose.GoseError)
Parse a signing algorithm from its JOSE string representation.
pub fn signing_alg_to_string(alg: algorithm.SigningAlg) -> String
Convert a signing algorithm to its JOSE string representation.