An OpenPGP packet's header.
The packet's CTB.
The packet's length.
Syntax checks the header.
A header is consider invalid if:
- The tag is Tag::Reserved.
- The tag is unknown (if future_compatible is false).
- The length encoding is invalid for the packet.
- The lengths are unreasonable for a packet (e.g., a >10 kb large PKESK or SKESK).
This function does not check the packet's content. Use
PacketParser::plausible for that.
fn from_reader<R: 'a + Read>(reader: R) -> Result<Self>[src]
Parses an OpenPGP packet's header as described in Section 4.2 of RFC 4880.
impl RefUnwindSafe for Header
impl UnwindSafe for Header
type Owned = T
The resulting type after obtaining ownership.
fn clone_into(&self, target: &mut T)[src]
type Error = Infallible
The type returned in the event of a conversion error.