sha512256<T extends Object?> static method
Runs use with a fresh SHA-512/256 hash, then wipes it.
The instance must be clean after you don't need it; this method
guarantees that, even if use throws.
Implementation
static T sha512256<T extends Object?>(
T Function(BuSerializableHash cipher) use,
) {
final cipher = sha512256Instance();
try {
return use(cipher);
} finally {
cipher.clean();
}
}