riot_sys

Function cose_sign_decode_unprotected

Source
pub unsafe extern "C" fn cose_sign_decode_unprotected(
    sign: *const cose_sign_dec_t,
    hdr: *mut cose_hdr_t,
    key: i32,
) -> c_int
Expand description

Retrieve an unprotected header from a sign object by key lookup

@param sign The sign decode object to operate on @param[out] hdr Header to fill with the values @param key The key to look up

@return COSE_OK if a header is found @return COSE_ERR_NOT_FOUND if no header with matching key is found