@CanIgnoreReturnValue
    public Builder setKeySizeBytes(int keySizeBytes) throws GeneralSecurityException {
      if (keySizeBytes != 16 && keySizeBytes != 24 && keySizeBytes != 32) {
        throw new InvalidAlgorithmParameterException(
            String.format(
                "Invalid key size %d; only 16-byte, 24-byte and 32-byte AES keys are supported",
                keySizeBytes));
      }
      this.keySizeBytes = keySizeBytes;
      return this;
    }
Accepts key sizes of 16, 24 or 32 bytes. However, some implementation may not support the
full set of parameters at the moment and may restrict the key size to 16 or 32-byte values.
java_src/src/main/java/com/google/crypto/tink/aead/AesEaxParameters.java