FromBerOptions
Encoding, input ownership, and resource limits for ASN.1 decoding.
Properties
copyInput?
optionalcopyInput?:boolean
Copy the input bytes before decoding. Defaults to true for fromBER/fromDER and false for verifySchema in both BER and DER.
encodingRules?
optionalencodingRules?:EncodingRules
Encoding rules to validate.
Default Value
"BER"
maxContentLength?
optionalmaxContentLength?:number
Maximum content length of one element in bytes.
Default Value
16777216
maxDepth?
optionalmaxDepth?:number
Maximum nesting depth, with the root at depth zero.
Default Value
100
maxNodes?
optionalmaxNodes?:number
Maximum number of decoded nodes.
Default Value
10000
parseEmbedded?
optionalparseEmbedded?:boolean
Try decoding embedded OCTET STRING and BIT STRING content. Defaults to true for BER and false for DER.
requireFullInput?
optionalrequireFullInput?:boolean
Require exactly one input element. Always true for DER; explicitly setting false with DER throws TypeError.
Default Value
false