keySize static method

int keySize(
  1. int id
)

Implementation

static int keySize(int id) {
  switch (id) {
    case AES128_CTR:
      return 16;
    case AES128_CBC:
      return 16;
    case AES256_CTR:
      return 32;
    case AES256_CBC:
      return 32;
    default:
      throw FormatException('$id');
  }
}