readAsn1UByteContent

fun Source.readAsn1UByteContent(nBytes: Int, lenient: Boolean = false): UByte(source)

Parameters

lenient

Relaxes DER constraints, which are:

  • The content of the INTEGER type is not empty.

  • The INTEGER value is minimally encoded, verifying that:

    • Positive ints do not contain leading zero bytes unless necessary.

    • Negative ints do not use excessive sign extension bytes.