readAsn1Element

Decodes a single Asn1Element from this source.

Return

the decoded element and the number of bytes read from the source

Parameters

limit

the maximum allowed total number of encoded DER bytes to consume. This limit is enforced before reading or peeking from the underlying source.