Skip to main content

pamoja_lorawan_block_mic_update

Function pamoja_lorawan_block_mic_update 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_lorawan_block_mic_update( mic: *mut PamojaLorawanBlockMic, data: *const u8, data_len: usize, ) -> PamojaStatus
Expand description

Adds a piece of the block to a code.

§Arguments

  • mic - the code.
  • data - the next bytes of the block, in order, without any padding.
  • data_len - how many.

§Returns

PamojaStatus::Ok on success.

§Errors

Returns PamojaStatus::InvalidArgument for a null handle.

§Safety

mic must be a live handle and data must point to data_len readable bytes.