These docs are for v1.3.0. Click to read the latest docs for v1.6.

sha1

Hashes data using sha1 and stores result in memory pointed to by hash.

Hashes data using sha1 and stores result in memory pointed to by hash.

Parameters

  • data - Data you want to hash

  • length - Data length

  • hash - Hash pointer

Example

checksum calc_hash;
sha1( data, length, &calc_hash );
eos_assert( calc_hash == hash, "invalid hash" );