2 * openpgp.h - Defines directly related to OpenPGP RFC 4880
4 * Copyright 2011 Jonathan McDowell <noodles@earth.li>
10 #define OPENPGP_PKALGO_RSA 1
11 #define OPENPGP_PKALGO_ELGAMAL 16
12 #define OPENPGP_PKALGO_DSA 17
13 #define OPENPGP_PKALGO_ELGAMAL_SIGN 20
15 #define OPENPGP_HASH_MD5 1
16 #define OPENPGP_HASH_SHA1 2
17 #define OPENPGP_HASH_RIPEMD160 3
18 #define OPENPGP_HASH_SHA256 8
19 #define OPENPGP_HASH_SHA384 9
20 #define OPENPGP_HASH_SHA512 10
21 #define OPENPGP_HASH_SHA224 11
23 #define OPENPGP_PACKET_SIGNATURE 2
24 #define OPENPGP_PACKET_PUBLICKEY 6
25 #define OPENPGP_PACKET_TRUST 12
26 #define OPENPGP_PACKET_UID 13
27 #define OPENPGP_PACKET_PUBLICSUBKEY 14
28 #define OPENPGP_PACKET_UAT 17
30 #define OPENPGP_SIGTYPE_BINARY 0x00
31 #define OPENPGP_SIGTYPE_TEXT 0x01
32 #define OPENPGP_SIGTYPE_KEY_REV 0x20
33 #define OPENPGP_SIGTYPE_SUBKEY_REV 0x28
34 #define OPENPGP_SIGTYPE_CERT_REV 0x30
36 #define OPENPGP_SIGSUB_CREATION 2
37 #define OPENPGP_SIGSUB_EXPIRY 3
38 #define OPENPGP_SIGSUB_REGEX 6
39 #define OPENPGP_SIGSUB_ISSUER 16
40 #define OPENPGP_SIGSUB_NOTATION 20
41 #define OPENPGP_SIGSUB_KEYSERVER 23
42 #define OPENPGP_SIGSUB_PRIMARYUID 25
43 #define OPENPGP_SIGSUB_POLICYURI 26
45 #endif /* __OPENPGP_H__ */