Skip to main content

algorithm_to_string

Function algorithm_to_string 

Source
pub fn algorithm_to_string(alg: Algorithm) -> String
Expand description

Returns the standard string name for a COSE algorithm.

Maps well-known IANA COSE algorithm identifiers to their standard names (e.g., EdDSA, ES256, A256GCM). Unknown algorithms are formatted as COSE_ALG_<id>.