sha256_pointer method
Available for Native only.
Implementation
String sha256_pointer(Pointer<Uint8> input, int size) {
final outLen = olm_sha256_length(_inst);
final outMem = malloc.call<Uint8>(outLen);
try {
olm_sha256(_inst, input, size, outMem, outLen);
return utf8.decode(outMem.asTypedList(outLen));
} finally {
malloc.free(outMem);
}
}