uor_addr/asn1/shapes/bounds.rs
1//! ASN.1 realization grammar constant.
2//!
3//! ADR-060 removed the fixed-buffer capacity profile (`Asn1AddrBounds`)
4//! and its byte/element ceilings (`ASN1_VALUE_MAX_BYTES`,
5//! `MAX_ASN1_ELEMENTS`): DER is canonical by construction, so the input
6//! bytes flow through the pipeline as a borrowed carrier with no size
7//! cap, and the owned DER builder uses unbounded `alloc` storage.
8//!
9//! The single remaining bound is a **native-stack-overflow guard** for
10//! the recursive TLV validator.
11
12/// Maximum constructed-type (SEQUENCE / SET) nesting depth the recursive
13/// DER validator descends before reporting a depth-bound violation.
14/// Guards the native call stack against pathologically-nested input; it
15/// is not a ceiling on value size or element count.
16pub const MAX_ASN1_DEPTH: usize = 1024;