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_RSA_ENC 2
25 #define OPENPGP_PKALGO_RSA_SIGN 3
26 #define OPENPGP_PKALGO_ELGAMAL_ENC 16
27 #define OPENPGP_PKALGO_DSA 17
28 #define OPENPGP_PKALGO_ELGAMAL_SIGN 20
30 #define OPENPGP_SYMALGO_PLAIN 0
31 #define OPENPGP_SYMALGO_IDEA 1
32 #define OPENPGP_SYMALGO_3DES 2
33 #define OPENPGP_SYMALGO_CAST5 3
34 #define OPENPGP_SYMALGO_BLOWFISH 4
35 #define OPENPGP_SYMALGO_AES128 7
36 #define OPENPGP_SYMALGO_AES192 8
37 #define OPENPGP_SYMALGO_AES256 9
38 #define OPENPGP_SYMALGO_TWOFISH 10
40 #define OPENPGP_HASH_MD5 1
41 #define OPENPGP_HASH_SHA1 2
42 #define OPENPGP_HASH_RIPEMD160 3
43 #define OPENPGP_HASH_SHA256 8
44 #define OPENPGP_HASH_SHA384 9
45 #define OPENPGP_HASH_SHA512 10
46 #define OPENPGP_HASH_SHA224 11
48 #define OPENPGP_COMP_NONE 0
49 #define OPENPGP_COMP_ZIP 1
50 #define OPENPGP_COMP_ZLIB 2
51 #define OPENPGP_COMP_BZIP2 3
53 #define OPENPGP_PACKET_PKSESSIONKEY 1
54 #define OPENPGP_PACKET_SIGNATURE 2
55 #define OPENPGP_PACKET_SYMSESSIONKEY 3
56 #define OPENPGP_PACKET_ONEPASSSIG 4
57 #define OPENPGP_PACKET_SECRETKEY 5
58 #define OPENPGP_PACKET_PUBLICKEY 6
59 #define OPENPGP_PACKET_SECRETSUBKEY 7
60 #define OPENPGP_PACKET_COMPRESSED 8
61 #define OPENPGP_PACKET_ENCRYPTED 9
62 #define OPENPGP_PACKET_MARKER 10
63 #define OPENPGP_PACKET_LITERALDATA 11
64 #define OPENPGP_PACKET_TRUST 12
65 #define OPENPGP_PACKET_UID 13
66 #define OPENPGP_PACKET_PUBLICSUBKEY 14
67 #define OPENPGP_PACKET_UAT 17
68 #define OPENPGP_PACKET_ENCRYPTED_MDC 18
69 #define OPENPGP_PACKET_MDC 19
70 #define OPENPGP_PACKET_COMMENT 61
72 #define OPENPGP_SIGTYPE_BINARY 0x00
73 #define OPENPGP_SIGTYPE_TEXT 0x01
74 #define OPENPGP_SIGTYPE_KEY_REV 0x20
75 #define OPENPGP_SIGTYPE_SUBKEY_REV 0x28
76 #define OPENPGP_SIGTYPE_CERT_REV 0x30
78 #define OPENPGP_SIGSUB_CREATION 2
79 #define OPENPGP_SIGSUB_EXPIRY 3
80 #define OPENPGP_SIGSUB_EXPORTABLE 4
81 #define OPENPGP_SIGSUB_TRUSTSIG 5
82 #define OPENPGP_SIGSUB_REGEX 6
83 #define OPENPGP_SIGSUB_KEYEXPIRY 9
84 #define OPENPGP_SIGSUB_PREFSYM 11
85 #define OPENPGP_SIGSUB_ISSUER 16
86 #define OPENPGP_SIGSUB_NOTATION 20
87 #define OPENPGP_SIGSUB_PREFHASH 21
88 #define OPENPGP_SIGSUB_PREFCOMPRESS 22
89 #define OPENPGP_SIGSUB_KEYSERVER 23
90 #define OPENPGP_SIGSUB_PRIMARYUID 25
91 #define OPENPGP_SIGSUB_POLICYURI 26
92 #define OPENPGP_SIGSUB_KEYFLAGS 27
94 #endif /* __OPENPGP_H__ */