id static method

int id(
  1. String name
)

Implementation

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