maxInputLength

Maximum allowed total number of encoded DER bytes to consume before refusing to parse and throwing.

This limit is enforced before reading or peeking from the underlying source. Defaults to Int.MAX_VALUE so that parsing and re-encoding stay fully Int-based; raise it only to deliberately handle multi-gigabyte input.