pub fn verify_detached<V: CoseVerifier>(
cose_sign1_bytes: &[u8],
verifying_key: &V,
payload: &[u8],
external_aad: &[u8],
) -> Result<(String, String)>Expand description
Verify a CBOR-encoded COSE_Sign1 against the detached payload
and external_aad.
On success returns (kid_b64, alg_label) where kid_b64 is the
signer key id (base64url, no padding) and alg_label is the
well-known short name (e.g. "EdDSA"). Returns Err for malformed
COSE, alg mismatch, missing kid, or signature failure.