Skip to main content

pamoja_lorawan_mc_key

Function pamoja_lorawan_mc_key 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_lorawan_mc_key( mc_ke_key: *const u8, wrapped: *const u8, out_key: *mut u8, ) -> PamojaStatus
Expand description

Unwraps the group key a setup command carried, section 4.3.

§Arguments

  • mc_ke_key - the sixteen-byte key it travels under.
  • wrapped - the sixteen bytes the command carried.
  • out_key - receives the group’s sixteen-byte McKey.

§Returns

PamojaStatus::Ok on success.

§Errors

Returns PamojaStatus::InvalidArgument for a null pointer.

§Safety

Every pointer must be valid for sixteen bytes.