Function ockam_ffi::ockam_vault_sha256
source · #[no_mangle]
pub extern "C" fn ockam_vault_sha256(
context: FfiVaultFatPointer,
input: *const u8,
input_length: u32,
digest: *mut u8
) -> FfiOckamError
Expand description
Compute the SHA-256 hash on input
and put the result in digest
.
digest
must be 32 bytes in length.