2 * keyid.h - Routines to calculate key IDs.
4 * Jonathan McDowell <noodles@earth.li>
6 * Copyright 2002 Project Purple
12 // #include <stdint.h>
15 #include "keystructs.h"
18 * get_keyid - Given a public key returns the keyid.
19 * @publickey: The key to calculate the id for.
21 * This function returns the key id for a given public key.
23 uint64_t get_keyid(struct openpgp_publickey *publickey);
26 * get_packetid - Given a PGP packet returns the keyid.
27 * @packet: The packet to calculate the id for.
29 * This function returns the key id for a given PGP packet.
31 uint64_t get_packetid(struct openpgp_packet *packet);
33 #endif /* __KEYID_H__ */