#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_device_identity_sign(
identity: *const PamojaDeviceIdentity,
payload: *const u8,
payload_len: usize,
out_signature: *mut u8,
) -> PamojaStatusExpand description
Signs a payload with a device identity.
§Returns
PamojaStatus::Ok on success, having written PAMOJA_SIGNATURE_LEN bytes
to out_signature.
§Safety
identity must be a live handle from pamoja_device_identity_new;
payload must point to at least payload_len readable bytes, or be null when
payload_len is 0; and out_signature must point to at least
PAMOJA_SIGNATURE_LEN writable bytes.