Skip to content
asn1jsasn1jsasn1jsv4.1.0

FromBerOptions

Encoding, input ownership, and resource limits for ASN.1 decoding.

optional copyInput?: boolean

Copy the input bytes before decoding. Defaults to true for fromBER/fromDER and false for verifySchema in both BER and DER.


optional encodingRules?: EncodingRules

Encoding rules to validate.

"BER"

optional maxContentLength?: number

Maximum content length of one element in bytes.

16777216

optional maxDepth?: number

Maximum nesting depth, with the root at depth zero.

100

optional maxNodes?: number

Maximum number of decoded nodes.

10000

optional parseEmbedded?: boolean

Try decoding embedded OCTET STRING and BIT STRING content. Defaults to true for BER and false for DER.


optional requireFullInput?: boolean

Require exactly one input element. Always true for DER; explicitly setting false with DER throws TypeError.

false