blockSize static method

int blockSize(
  1. int id
)

Implementation

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