Skip to main content

pamoja_audit_entry_previous

Function pamoja_audit_entry_previous 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_audit_entry_previous( entry: *const PamojaAuditEntry, out_previous: *mut u8, ) -> PamojaStatus
Expand description

Copies out the hash of the entry before this one.

The first entry of a chain carries all zeroes here, since nothing precedes it.

§Arguments

§Returns

PamojaStatus::Ok on success.

§Safety

entry must be a live handle, and out_previous must point to at least PAMOJA_AUDIT_DIGEST_LEN writable bytes.