name static method

String name(
  1. int id
)

Implementation

static String name(int id) {
  switch (id) {
    case MD5:
      return 'hmac-md5';
    case MD5_96:
      return 'hmac-md5-96';
    case SHA1:
      return 'hmac-sha1';
    case SHA1_96:
      return 'hmac-sha1-96';
    case SHA256:
      return 'hmac-sha2-256';
    case SHA256_96:
      return 'hmac-sha2-256-96';
    case SHA512:
      return 'hmac-sha2-512';
    case SHA512_96:
      return 'hmac-sha2-512-96';
    default:
      return '';
  }
}