/** * @file * @copyright defined in eos/LICENSE.txt */ #pragma once #include extern "C" { /** * This method is implemented as: * * checksum calc_hash; * sha256( data, length, &calc_hash ); * eos_assert( calc_hash == hash, "invalid hash" ); * * This method is optimized to a NO-OP when in fast evaluation mode */ void eos_assert_sha256( char* data, uint32_t length, const checksum* hash ); /** * Calculates sha256( data,length) and stores result in memory pointed to by hash */ void sha256( char* data, uint32_t length, checksum* hash ); }