public static void checkAesKey()

in encryption/src/main/java/org/apache/solr/encryption/crypto/AesCtrUtil.java [39:44]


  public static void checkAesKey(byte[] key) {
    if (key.length != 16 && key.length != 24 && key.length != 32) {
      // AES requires either 128, 192 or 256 bits keys.
      throw new IllegalArgumentException("Invalid AES key length; it must be either 128, 192 or 256 bits long");
    }
  }