in src/crypto/mod.rs [16:27]
fn get_parameters(&self) -> Result<(SignatureAlgorithm, MessageDigest), CoseError>;
/// Given a digest and a signature, returns a boolean whether the signature
/// was valid.
fn verify(&self, digest: &[u8], signature: &[u8]) -> Result<bool, CoseError>;
}
/// Follows the recommandations put in place by the RFC and doesn't deal with potential
/// mismatches: https://tools.ietf.org/html/rfc8152#section-8.1.
pub fn ec_curve_to_parameters(
curve_name: Nid,
) -> Result<(SignatureAlgorithm, MessageDigest, usize), CoseError> {