id static method

int id(
  1. String name
)

Implementation

static int id(String name) {
  if (name == null) return 0;
  switch (name) {
    case 'aes128-ctr':
      return AES128_CTR;
    case 'aes128-cbc':
      return AES128_CBC;
    case 'aes256-ctr':
      return AES256_CTR;
    case 'aes256-cbc':
      return AES256_CBC;
    default:
      return 0;
  }
}