prefixBytes static method

int prefixBytes(
  1. int id
)

Implementation

static int prefixBytes(int id) {
  switch (id) {
    case MD5:
      return 0;
    case MD5_96:
      return 12;
    case SHA1:
      return 0;
    case SHA1_96:
      return 12;
    case SHA256:
      return 0;
    case SHA256_96:
      return 12;
    case SHA512:
      return 0;
    case SHA512_96:
      return 12;
    default:
      throw FormatException('$id');
  }
}