decodeToAsn1Integer
fun Asn1Primitive.decodeToAsn1Integer(assertTag: Asn1Element.Tag = Asn1Element.Tag.INT, lenient: Boolean = false): Asn1Integer(source)
Decode the Asn1Primitive as an Asn1Integer
Parameters
lenient
Relaxes DER constraints, which are:
The content of the
INTEGERtype is not empty.The
INTEGERvalue is minimally encoded, verifying that:Positive ints do not contain leading zero bytes unless necessary.
Negative ints do not use excessive sign extension bytes.
Throws
on invalid input