cscvs to tla changeset 41
[onak.git] / keyid.h
1 /*
2  * keyid.h - Routines to calculate key IDs.
3  *
4  * Jonathan McDowell <noodles@earth.li>
5  *
6  * Copyright 2002 Project Purple
7  */
8
9 #ifndef __KEYID_H__
10 #define __KEYID_H__
11
12 // #include <stdint.h>
13 #include <inttypes.h>
14
15 #include "keystructs.h"
16
17 /**
18  *      get_keyid - Given a public key returns the keyid.
19  *      @publickey: The key to calculate the id for.
20  *
21  *      This function returns the key id for a given public key.
22  */
23 uint64_t get_keyid(struct openpgp_publickey *publickey);
24
25 /**
26  *      get_packetid - Given a PGP packet returns the keyid.
27  *      @packet: The packet to calculate the id for.
28  *
29  *      This function returns the key id for a given PGP packet.
30  */
31 uint64_t get_packetid(struct openpgp_packet *packet);
32
33 #endif /* __KEYID_H__ */