|
#define | PGP_SUBPACKET_TIME 2 /* Signing time */ |
|
#define | PGP_SUBPACKET_KEYID 16 /* Key ID */ |
|
#define | PGP_SUBPACKET_TYPEANDVALUE 20 /* Type-and-value pairs */ |
|
#define | PGP_SUBPACKET_LAST 29 /* Last valid subpacket type */ |
|
#define | PGP_PACKET_SIGNATURE_SPECIAL 1000 |
|
#define | PGP_CTB 0x80 /* PGP 2.x CTB template */ |
|
#define | PGP_CTB_OPENPGP 0xC0 /* OpenPGP CTB template */ |
|
#define | PGP_CTB_COMPRESSED 0xA3 /* Compressed indef-length data */ |
|
#define | pgpIsCTB(ctb) ( ( ctb ) & PGP_CTB ) |
|
#define | pgpGetPacketVersion(ctb) |
|
#define | pgpGetPacketType(ctb) |
|
#define | pgpIsReservedPacket(type) ( ( type ) >= 60 && ( type ) <= 63 ) |
|
#define | PGP_VERSION_2 2 /* Version number byte for PGP 2.0 */ |
|
#define | PGP_VERSION_3 3 /* Version number byte for legal-kludged PGP 2.0 */ |
|
#define | PGP_VERSION_OPENPGP 4 /* Version number for OpenPGP */ |
|
#define | PGP_ALGO_RSA 1 /* RSA */ |
|
#define | PGP_ALGO_RSA_ENCRYPT 2 /* RSA encrypt-only */ |
|
#define | PGP_ALGO_RSA_SIGN 3 /* RSA sign-only */ |
|
#define | PGP_ALGO_ELGAMAL 16 /* ElGamal */ |
|
#define | PGP_ALGO_DSA 17 /* DSA */ |
|
#define | PGP_ALGO_ECC_RES 18 /* Reserved for "ECC" */ |
|
#define | PGP_ALGO_ECDSA_RES 19 /* Reserved for ECDSA */ |
|
#define | PGP_ALGO_PKC_RES1 20 /* Reserved, formerly Elgamal sign */ |
|
#define | PGP_ALGO_PKC_RES2 21 /* Reserved for "X9.42" */ |
|
#define | PGP_ALGO_NONE 0 /* No CKE algorithm */ |
|
#define | PGP_ALGO_IDEA 1 /* IDEA */ |
|
#define | PGP_ALGO_3DES 2 /* Triple DES */ |
|
#define | PGP_ALGO_CAST5 3 /* CAST-128 */ |
|
#define | PGP_ALGO_BLOWFISH 4 /* Blowfish */ |
|
#define | PGP_ALGO_ENC_RES1 5 /* Reserved, formerly Safer-SK */ |
|
#define | PGP_ALGO_ENC_RES2 6 /* Reserved */ |
|
#define | PGP_ALGO_AES_128 7 /* AES with 128-bit key */ |
|
#define | PGP_ALGO_AES_192 8 /* AES with 192-bit key */ |
|
#define | PGP_ALGO_AES_256 9 /* AES with 256-bit key */ |
|
#define | PGP_ALGO_TWOFISH 10 /* Twofish */ |
|
#define | PGP_ALGO_MD5 1 /* MD5 */ |
|
#define | PGP_ALGO_SHA 2 /* SHA-1 */ |
|
#define | PGP_ALGO_RIPEMD160 3 /* RIPEMD-160 */ |
|
#define | PGP_ALGO_HASH_RES1 4 /* Reserved */ |
|
#define | PGP_ALGO_HASH_RES2 5 /* Reserved, formerly MD2 */ |
|
#define | PGP_ALGO_HASH_RES3 6 /* Reserved, formerly Tiger/192 */ |
|
#define | PGP_ALGO_HASH_RES4 7 /* Reserved, formerly Haval */ |
|
#define | PGP_ALGO_SHA2_256 8 /* SHA-2 256bit */ |
|
#define | PGP_ALGO_SHA2_384 9 /* SHA-2 384bit */ |
|
#define | PGP_ALGO_SHA2_512 10 /* SHA-2 512bit */ |
|
#define | PGP_ALGO_SHA2_224 11 /* SHA-2 224bit */ |
|
#define | PGP_ALGO_ZIP 1 /* ZIP compression */ |
|
#define | PGP_ALGO_ZLIB 2 /* zlib compression */ |
|
#define | PGP_ALGO_BZIP2 3 /* Bzip2 compression */ |
|
#define | PGP_ALGO_LAST PGP_ALGO_DSA |
|
#define | PGP_S2K 0xFF /* Standard S2K */ |
|
#define | PGP_S2K_HASHED 0xFE /* S2K with hashed key */ |
|
#define | PGP_SIG_NONE 0x00 /* Same as PGP_SIG_DATA, for range chk.*/ |
|
#define | PGP_SIG_DATA 0x00 /* Binary data */ |
|
#define | PGP_SIG_TEXT 0x01 /* Canonicalised text data */ |
|
#define | PGP_SIG_STANDALONE 0x02 /* Unknown purpose, from RFC 4880 */ |
|
#define | PGP_SIG_CERT0 0x10 /* Key certificate, unknown assurance */ |
|
#define | PGP_SIG_CERT1 0x11 /* Key certificate, no assurance */ |
|
#define | PGP_SIG_CERT2 0x12 /* Key certificate, casual assurance */ |
|
#define | PGP_SIG_CERT3 0x13 /* Key certificate, strong assurance */ |
|
#define | PGP_SIG_SUBKEY 0x18 /* Subkey binding signature */ |
|
#define | PGP_SIG_PRIMKEY 0x19 /* Primary key binding signature */ |
|
#define | PGP_SIG_DIRECTKEY 0x1F /* Key self-signature */ |
|
#define | PGP_SIG_KEYREV 0x20 /* Key revocation */ |
|
#define | PGP_SIG_SUBKEYREV 0x28 /* Subkey revocation */ |
|
#define | PGP_SIG_CRL 0x30 /* Certificate revocation */ |
|
#define | PGP_SIG_TS 0x40 /* Timestamp signature */ |
|
#define | PGP_SIG_COUNTERSIG 0x50 /* Third-party countersignature */ |
|
#define | PGP_SIG_LAST 0x51 /* Last possible signature type */ |
|
#define | PGP_VERSION_SIZE 1 |
|
#define | PGP_ALGOID_SIZE 1 |
|
#define | PGP_MAX_USERIDSIZE 256 |
|
#define | PGP_SALTSIZE 8 |
|
#define | PGP_ITERATIONS 1024 |
|
#define | PGP_MIN_HEADER_SIZE 2 /* CTB + length */ |
|
#define | PGP_MAX_HEADER_SIZE 6 /* CTB + 0xFF + 4-byte length */ |
|
#define | PGP_DATA_HEADER "b\x00\x00\x00\x00\x00" |
|
#define | PGP_DATA_HEADER_SIZE ( 1 + 1 + 4 ) |
|
#define | PGP_MDC_PACKET_SIZE ( 1 + 1 + 20 ) /* Size of MDC packet */ |
|