#[unsafe(no_mangle)]pub unsafe extern "C" fn pamoja_public_identity_verify_message(
public_key: *const u8,
message: *const u8,
message_len: usize,
out_buffer: *mut *mut PamojaBuffer,
) -> PamojaStatusExpand description
Verifies a signed message and returns the payload it carries.
§Returns
PamojaStatus::Ok on success, with *out_buffer set to a new buffer handle
holding the payload, which the caller must release with pamoja_buffer_free.
Returns PamojaStatus::Auth if the message is shorter than a signature, was
altered, or was signed by a different device.
§Safety
public_key must point to at least PAMOJA_KEY_LEN readable bytes;
message must point to at least message_len readable bytes, or be null when
message_len is 0; and out_buffer must point to a writable
*mut PamojaBuffer.