destination for hash result
hash size wanted
value used for hash
size of value
error code -1 if failed
Deprecated: use hashImpl instead
ubyte[5] source = [0xff, 0xa1, 0x12, 0x22, 0xff]; ubyte[256 / 8] result; ubyte[256 / 8] result2; assert(hash!(0x01, 256)(result.ptr, result.length, source.ptr, source.length) == 0); assert(keccak!(256)(result2.ptr, result2.length, source.ptr, source.length) == 0); assert(result[] == result2[]);
used for create keccak family functions