I’m trying to parse OpenPGP key server server dumps, which are just concatenations of many, many OpenPGP packets. There is already an openpgp crate, but it is a bit incomplete. Before I go about enhancing it, I have the following questions:
- Is there a better option for parsing OpenPGP data? I’m not interested in cryptography beyond computing key fingerprints.
- Is the way the parser is structured the usual way such things are written in Rust? I would have expected that it would return an
enumof the implemented packet types (among them an unparsed generic packet fallback), but instead, you have to implement a trait with various callback functions, some of which totally unrelated to packet parsing.