Constant sequoia_openpgp::parse::DEFAULT_MAX_PACKET_SIZE
source ยท pub const DEFAULT_MAX_PACKET_SIZE: u32 = _; // 1_048_576u32
Expand description
The default maximum size of non-container packets.
The default is 1 MiB
.
Packets that exceed this limit will be returned as
Packet::Unknown
, with the error set to Error::PacketTooLarge
.
This limit applies to any packet type that is not a container packet, i.e. any packet that is not a literal data packet, a compressed data packet, a symmetrically encrypted data packet, or an AEAD encrypted data packet.
To change the maximum recursion depth, use
PacketParserBuilder::max_packet_size
.