pub unsafe extern "C" fn cose_sign_decode(
sign: *mut cose_sign_dec_t,
buf: *const u8,
len: size_t,
) -> c_int
Expand description
cose_sign_decode parses a buffer to a cose sign struct. This buffer can contain both a tagged sign cbor byte string or an untagged byte string
@param sign Decoder sign struct to fill @param buf The buffer to read @param len Length of the buffer
@return 0 on success @return negative on failure