- * struct openpgp_packet - Stores an OpenPGP packet.
- * @tag: The packet tag (ie type).
- * @newformat: Indicates if this is a new format packet.
- * @length: The length of the packet.
- * @data: The actual packet
+ * @brief Stores the fingerprint of an OpenPGP key
+ */
+struct openpgp_fingerprint {
+ /** Length of fingerprint. 16 bytes for v3, 20 for v4 */
+ size_t length;
+ /** Fingerprint data. Only the first length bytes are valid */
+ uint8_t fp[MAX_FINGERPRINT_LEN];
+};
+
+/**
+ * @brief Stores an OpenPGP packet.