2 * openpgp.h - Defines directly related to OpenPGP RFC 4880
4 * Copyright 2011 Jonathan McDowell <noodles@earth.li>
6 * This program is free software: you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the Free
8 * Software Foundation; version 2 of the License.
10 * This program is distributed in the hope that it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15 * You should have received a copy of the GNU General Public License along with
16 * this program; if not, write to the Free Software Foundation, Inc., 51
17 * Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23 #define OPENPGP_PKALGO_RSA 1
24 #define OPENPGP_PKALGO_ELGAMAL 16
25 #define OPENPGP_PKALGO_DSA 17
26 #define OPENPGP_PKALGO_ELGAMAL_SIGN 20
28 #define OPENPGP_HASH_MD5 1
29 #define OPENPGP_HASH_SHA1 2
30 #define OPENPGP_HASH_RIPEMD160 3
31 #define OPENPGP_HASH_SHA256 8
32 #define OPENPGP_HASH_SHA384 9
33 #define OPENPGP_HASH_SHA512 10
34 #define OPENPGP_HASH_SHA224 11
36 #define OPENPGP_PACKET_SIGNATURE 2
37 #define OPENPGP_PACKET_PUBLICKEY 6
38 #define OPENPGP_PACKET_TRUST 12
39 #define OPENPGP_PACKET_UID 13
40 #define OPENPGP_PACKET_PUBLICSUBKEY 14
41 #define OPENPGP_PACKET_UAT 17
43 #define OPENPGP_SIGTYPE_BINARY 0x00
44 #define OPENPGP_SIGTYPE_TEXT 0x01
45 #define OPENPGP_SIGTYPE_KEY_REV 0x20
46 #define OPENPGP_SIGTYPE_SUBKEY_REV 0x28
47 #define OPENPGP_SIGTYPE_CERT_REV 0x30
49 #define OPENPGP_SIGSUB_CREATION 2
50 #define OPENPGP_SIGSUB_EXPIRY 3
51 #define OPENPGP_SIGSUB_REGEX 6
52 #define OPENPGP_SIGSUB_ISSUER 16
53 #define OPENPGP_SIGSUB_NOTATION 20
54 #define OPENPGP_SIGSUB_KEYSERVER 23
55 #define OPENPGP_SIGSUB_PRIMARYUID 25
56 #define OPENPGP_SIGSUB_POLICYURI 26
58 #endif /* __OPENPGP_H__ */