riot_sys

Function cose_signature_get_protected

Source
pub unsafe extern "C" fn cose_signature_get_protected(
    signature: *mut cose_signature_t,
    hdr: *mut cose_hdr_t,
    key: i32,
) -> bool
Expand description

@brief Retrieve a protected header from a signature object by key lookup

@param signature The signature object to operate on @param hdr hdr struct to fill @param key The key to look up

@return A protected header object with matching key @return NULL if there is no header with the key