Function casper_contract::ext_ffi::casper_blake2b[][src]

pub unsafe extern "C" fn casper_blake2b(
    in_ptr: *const u8,
    in_size: usize,
    out_ptr: *mut u8,
    out_size: usize
) -> i32
Expand description

Returns a 32-byte BLAKE2b hash digest from the given input bytes

Arguments

  • in_ptr - pointer to bytes
  • in_size - length of bytes
  • out_ptr - pointer to the location where argument bytes will be copied from the host side
  • out_size - size of output pointer