Synchronous version of hash().
Hash hashSync(List<int> data) { ArgumentError.checkNotNull(data); var sink = newHashSink(); sink.add(data); sink.close(); return sink.hashSync(); }