digestSuffixRipemd160 function

Uint8List digestSuffixRipemd160(
  1. Uint8List data,
  2. String suffix
)

Implementation

Uint8List digestSuffixRipemd160(Uint8List data, String suffix) {
  var d = new Uint8List(data.length + suffix.length);
  for (var i = 0; i < data.length; ++i) {
    d[i] = data[i];
  }
  for (var i = 0; i < suffix.length; ++i) {
    d[data.length + i] = suffix.codeUnitAt(i);
  }
  var dg = Digest("RIPEMD-160");
  return dg.process(d);
}