diff options
author | Werner Koch <[email protected]> | 1999-11-13 16:43:23 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 1999-11-13 16:43:23 +0000 |
commit | 881e51323749ba797202d8a4119910e6f9d2f727 (patch) | |
tree | 3de535d07143b9b3513b524dd81f32a5305756b1 /g10/packet.h | |
parent | See ChangeLog: Thu Oct 28 16:17:46 CEST 1999 Werner Koch (diff) | |
download | gnupg-881e51323749ba797202d8a4119910e6f9d2f727.tar.gz gnupg-881e51323749ba797202d8a4119910e6f9d2f727.zip |
See ChangeLog: Sat Nov 13 17:44:23 CET 1999 Werner Koch
Diffstat (limited to 'g10/packet.h')
-rw-r--r-- | g10/packet.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/g10/packet.h b/g10/packet.h index f3f8cbd9d..17893875f 100644 --- a/g10/packet.h +++ b/g10/packet.h @@ -27,6 +27,12 @@ #include "cipher.h" #include "filter.h" + +#define GNUPG_MAX_NPKEY 4 +#define GNUPG_MAX_NSKEY 6 +#define GNUPG_MAX_NSIG 2 +#define GNUPG_MAX_NENC 2 + #define DEBUG_PARSE_PACKET 1 typedef enum { @@ -72,7 +78,7 @@ typedef struct { byte version; byte pubkey_algo; /* algorithm used for public key scheme */ byte throw_keyid; - MPI data[PUBKEY_MAX_NENC]; + MPI data[GNUPG_MAX_NENC]; } PKT_pubkey_enc; @@ -102,7 +108,7 @@ typedef struct { byte *hashed_data; /* all subpackets with hashed data (v4 only) */ byte *unhashed_data; /* ditto for unhashed data */ byte digest_start[2]; /* first 2 bytes of the digest */ - MPI data[PUBKEY_MAX_NSIG]; + MPI data[GNUPG_MAX_NSIG]; } PKT_signature; @@ -122,7 +128,7 @@ typedef struct { ulong local_id; /* internal use, valid if > 0 */ u32 keyid[2]; /* calculated by keyid_from_pk() */ byte *namehash; /* if != NULL: found by this name */ - MPI pkey[PUBKEY_MAX_NPKEY]; + MPI pkey[GNUPG_MAX_NPKEY]; } PKT_public_key; typedef struct { @@ -143,7 +149,7 @@ typedef struct { byte ivlen; /* used length of the iv */ byte iv[16]; /* initialization vector for CFB mode */ } protect; - MPI skey[PUBKEY_MAX_NSKEY]; + MPI skey[GNUPG_MAX_NSKEY]; u16 csum; /* checksum */ } PKT_secret_key; |