Re: [PATCH 04/16] PGP: Add definitions (RFC 4880) and packet parser [ver #2]

2011-12-05 Thread David Howells
Ben Hutchings wrote: > I'm a little uneasy about these structure definitions. There have been > C ABIs that set the structure alignment to at least 4 by default. It > may be better to play safe by declaring them '__packed'. Yeah. I'll add that. David -- To unsubscribe from this list: send th

Re: [PATCH 04/16] PGP: Add definitions (RFC 4880) and packet parser [ver #2]

2011-12-04 Thread Ben Hutchings
On Tue, 2011-11-29 at 23:43 +, David Howells wrote: > Add some useful PGP definitions from RFC 4880. These describe details of > public key crypto as used by crypto keys for things like signature > verification. [...] > +struct pgp_signature_v3_packet { > + enum pgp_signature_version versi

[PATCH 04/16] PGP: Add definitions (RFC 4880) and packet parser [ver #2]

2011-11-29 Thread David Howells
Add some useful PGP definitions from RFC 4880. These describe details of public key crypto as used by crypto keys for things like signature verification. Also add a simple parser that extracts the packets from a PGP blob and passes the desirous ones to the given processor function: struc