derStripLeadingZeroIfNeeded static method

List<int> derStripLeadingZeroIfNeeded(
  1. List<int> bytes
)

Implementation

static List<int> derStripLeadingZeroIfNeeded(List<int> bytes) {
  if (bytes.length > 1 && bytes[0] == 0x00 && bytes[1] >= 0x80) {
    return bytes.sublist(1);
  }
  return bytes;
}