parseFirst
Parses the first ASN.1 element from the given source within the specified limit.
Return
A pair containing the parsed ASN.1 element and the total number of bytes consumed.
Parameters
source
The input source from which the ASN.1 element will be read.
limit
The maximum allowed total number of encoded DER bytes to consume. This limit is enforced before reading or peeking from the underlying source.