sha256_bytes method
Not implemented for Web in upstream olm.
Implementation
String sha256_bytes(Uint8List input) {
final mem = malloc.call<Uint8>(input.length);
mem.asTypedList(input.length).setAll(0, input);
try {
return sha256_pointer(mem, input.length);
} finally {
malloc.free(mem);
}
}