Skip to main content

thumbprint_from_required_params

Function thumbprint_from_required_params 

Source
pub(crate) fn thumbprint_from_required_params(
    params: Vec<(i64, Value)>,
) -> CoseKeyThumbprint
Expand description

Builds the RFC 9679 thumbprint from a key type’s required parameters.

params is the list of (label, value) pairs of the required parameters (order does not matter; this function sorts them into the RFC 8949 §4.2.1 deterministic order). The pairs are encoded as a canonical CBOR map and hashed with SHA-256.