hmacSha512 method
Implementation
Result<Uint8List, HmacError> hmacSha512({
required Uint8List key,
required Uint8List bytes,
}) {
final results = _hmacSha512([key, bytes]);
final result = results[0];
return _world.withContext(() => Result.fromJson(
result,
(ok) =>
(ok is Uint8List ? ok : Uint8List.fromList((ok! as List).cast())),
(error) => error is String ? error : (error! as ParsedString).value));
}