2006-08-21 20:20:23 +00:00
|
|
|
/* openpgpdefs.h - Constants from the OpenPGP standard (rfc2440)
|
|
|
|
* Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
|
|
|
|
* 2006 Free Software Foundation, Inc.
|
gpg: Remove cipher.h and put algo ids into a common file.
* common/openpgpdefs.h (cipher_algo_t, pubkey_algo_t, digest_algo_t)
(compress_algo_t): New.
* agent/gpg-agent.c: Remove ../g10/cipher.h. Add openpgpdefs.h.
* g10/cipher.h (DEK): Move to ...
* g10/dek.h: new file.
* g10/cipher.h (is_RSA, is_ELGAMAL, is_DSA)
(PUBKEY_MAX_NPKEY, PUBKEY_MAX_NSKEY, PUBKEY_MAX_NSIG, PUBKEY_MAX_NENC)
(PUBKEY_USAGE_SIG, PUBKEY_USAGE_ENC, PUBKEY_USAGE_CERT)
(PUBKEY_USAGE_AUTH, PUBKEY_USAGE_NONE): Move to
* g10/packet.h: here.
* g10/cipher.h: Remove. Remove from all files.
* g10/filter.h, g10/packet.h: Include dek.h.
* g10/Makefile.am (common_source): Remove cipher.h. Add dek.h.
Signed-off-by: Werner Koch <wk@gnupg.org>
2014-01-29 20:35:05 +01:00
|
|
|
* Copyright (C) 2014 Werner Koch
|
2006-08-21 20:20:23 +00:00
|
|
|
*
|
Change license for some files in common to LGPLv3+/GPLv2+.
Having the LGPL on the common GnuPG code helps to share code
between GnuPG and related projects (like GPGME and Libassuan). This
is good for interoperability and to reduces bugs.
* common/asshelp.c, common/asshelp.h, common/asshelp2.c, common/b64dec.c
* common/b64enc.c, common/convert.c, common/dns-cert.c
* common/dns-cert.h common/exechelp-posix.c, common/exechelp-w32.c
* common/exechelp-w32ce.c, common/exechelp.h, common/get-passphrase.c
* common/get-passphrase.h, common/gettime.c, common/gpgrlhelp.c
* common/helpfile.c, common/homedir.c, common/http.c, common/http.h
* common/i18n.c, common/init.c, common/init.h, common/iobuf.c
* common/iobuf.h, common/localename.c, common/membuf.c, common/membuf.h
* common/miscellaneous.c, common/openpgp-oid.c, common/openpgpdefs.h
* common/percent.c, common/pka.c, common/pka.h, common/session-env.c
* common/session-env.h, common/sexp-parse.h, common/sexputil.c
* common/signal.c, common/srv.c, common/srv.h, common/ssh-utils.c
* common/ssh-utils.h, common/sysutils.c, common/sysutils.h
* common/tlv.c, common/tlv.h, common/ttyio.c, common/ttyio.h
* common/userids.c, common/userids.h, common/xasprintf.c: Change
license to LGPLv3+/GPLv2+/
2012-04-20 15:43:06 +02:00
|
|
|
* This file is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of either
|
2006-08-21 20:20:23 +00:00
|
|
|
*
|
Change license for some files in common to LGPLv3+/GPLv2+.
Having the LGPL on the common GnuPG code helps to share code
between GnuPG and related projects (like GPGME and Libassuan). This
is good for interoperability and to reduces bugs.
* common/asshelp.c, common/asshelp.h, common/asshelp2.c, common/b64dec.c
* common/b64enc.c, common/convert.c, common/dns-cert.c
* common/dns-cert.h common/exechelp-posix.c, common/exechelp-w32.c
* common/exechelp-w32ce.c, common/exechelp.h, common/get-passphrase.c
* common/get-passphrase.h, common/gettime.c, common/gpgrlhelp.c
* common/helpfile.c, common/homedir.c, common/http.c, common/http.h
* common/i18n.c, common/init.c, common/init.h, common/iobuf.c
* common/iobuf.h, common/localename.c, common/membuf.c, common/membuf.h
* common/miscellaneous.c, common/openpgp-oid.c, common/openpgpdefs.h
* common/percent.c, common/pka.c, common/pka.h, common/session-env.c
* common/session-env.h, common/sexp-parse.h, common/sexputil.c
* common/signal.c, common/srv.c, common/srv.h, common/ssh-utils.c
* common/ssh-utils.h, common/sysutils.c, common/sysutils.h
* common/tlv.c, common/tlv.h, common/ttyio.c, common/ttyio.h
* common/userids.c, common/userids.h, common/xasprintf.c: Change
license to LGPLv3+/GPLv2+/
2012-04-20 15:43:06 +02:00
|
|
|
* - the GNU Lesser General Public License as published by the Free
|
|
|
|
* Software Foundation; either version 3 of the License, or (at
|
|
|
|
* your option) any later version.
|
2006-08-21 20:20:23 +00:00
|
|
|
*
|
Change license for some files in common to LGPLv3+/GPLv2+.
Having the LGPL on the common GnuPG code helps to share code
between GnuPG and related projects (like GPGME and Libassuan). This
is good for interoperability and to reduces bugs.
* common/asshelp.c, common/asshelp.h, common/asshelp2.c, common/b64dec.c
* common/b64enc.c, common/convert.c, common/dns-cert.c
* common/dns-cert.h common/exechelp-posix.c, common/exechelp-w32.c
* common/exechelp-w32ce.c, common/exechelp.h, common/get-passphrase.c
* common/get-passphrase.h, common/gettime.c, common/gpgrlhelp.c
* common/helpfile.c, common/homedir.c, common/http.c, common/http.h
* common/i18n.c, common/init.c, common/init.h, common/iobuf.c
* common/iobuf.h, common/localename.c, common/membuf.c, common/membuf.h
* common/miscellaneous.c, common/openpgp-oid.c, common/openpgpdefs.h
* common/percent.c, common/pka.c, common/pka.h, common/session-env.c
* common/session-env.h, common/sexp-parse.h, common/sexputil.c
* common/signal.c, common/srv.c, common/srv.h, common/ssh-utils.c
* common/ssh-utils.h, common/sysutils.c, common/sysutils.h
* common/tlv.c, common/tlv.h, common/ttyio.c, common/ttyio.h
* common/userids.c, common/userids.h, common/xasprintf.c: Change
license to LGPLv3+/GPLv2+/
2012-04-20 15:43:06 +02:00
|
|
|
* or
|
|
|
|
*
|
|
|
|
* - the GNU General Public License as published by the Free
|
|
|
|
* Software Foundation; either version 2 of the License, or (at
|
|
|
|
* your option) any later version.
|
|
|
|
*
|
|
|
|
* or both in parallel, as here.
|
|
|
|
*
|
|
|
|
* This file is distributed in the hope that it will be useful,
|
2006-08-21 20:20:23 +00:00
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
2016-11-05 12:02:19 +01:00
|
|
|
* along with this program; if not, see <https://www.gnu.org/licenses/>.
|
2006-08-21 20:20:23 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef GNUPG_COMMON_OPENPGPDEFS_H
|
|
|
|
#define GNUPG_COMMON_OPENPGPDEFS_H
|
|
|
|
|
2011-02-04 12:57:53 +01:00
|
|
|
typedef enum
|
2006-08-21 20:20:23 +00:00
|
|
|
{
|
|
|
|
PKT_NONE = 0,
|
|
|
|
PKT_PUBKEY_ENC = 1, /* Public key encrypted packet. */
|
|
|
|
PKT_SIGNATURE = 2, /* Secret key encrypted packet. */
|
|
|
|
PKT_SYMKEY_ENC = 3, /* Session key packet. */
|
|
|
|
PKT_ONEPASS_SIG = 4, /* One pass sig packet. */
|
|
|
|
PKT_SECRET_KEY = 5, /* Secret key. */
|
|
|
|
PKT_PUBLIC_KEY = 6, /* Public key. */
|
|
|
|
PKT_SECRET_SUBKEY = 7, /* Secret subkey. */
|
|
|
|
PKT_COMPRESSED = 8, /* Compressed data packet. */
|
|
|
|
PKT_ENCRYPTED = 9, /* Conventional encrypted data. */
|
|
|
|
PKT_MARKER = 10, /* Marker packet. */
|
|
|
|
PKT_PLAINTEXT = 11, /* Literal data packet. */
|
|
|
|
PKT_RING_TRUST = 12, /* Keyring trust packet. */
|
|
|
|
PKT_USER_ID = 13, /* User id packet. */
|
|
|
|
PKT_PUBLIC_SUBKEY = 14, /* Public subkey. */
|
|
|
|
PKT_OLD_COMMENT = 16, /* Comment packet from an OpenPGP draft. */
|
|
|
|
PKT_ATTRIBUTE = 17, /* PGP's attribute packet. */
|
|
|
|
PKT_ENCRYPTED_MDC = 18, /* Integrity protected encrypted data. */
|
|
|
|
PKT_MDC = 19, /* Manipulation detection code packet. */
|
|
|
|
PKT_COMMENT = 61, /* new comment packet (GnuPG specific). */
|
|
|
|
PKT_GPG_CONTROL = 63 /* internal control packet (GnuPG specific). */
|
2011-02-04 12:57:53 +01:00
|
|
|
}
|
2006-08-21 20:20:23 +00:00
|
|
|
pkttype_t;
|
|
|
|
|
2016-03-02 15:45:39 +01:00
|
|
|
static inline const char *
|
|
|
|
pkttype_str (pkttype_t type)
|
|
|
|
{
|
|
|
|
switch (type)
|
|
|
|
{
|
|
|
|
case PKT_PUBKEY_ENC: return "PUBKEY_ENC";
|
|
|
|
case PKT_SIGNATURE: return "SIGNATURE";
|
|
|
|
case PKT_SYMKEY_ENC: return "SYMKEY_ENC";
|
|
|
|
case PKT_ONEPASS_SIG: return "ONEPASS_SIG";
|
|
|
|
case PKT_SECRET_KEY: return "SECRET_KEY";
|
|
|
|
case PKT_PUBLIC_KEY: return "PUBLIC_KEY";
|
|
|
|
case PKT_SECRET_SUBKEY: return "SECRET_SUBKEY";
|
|
|
|
case PKT_COMPRESSED: return "COMPRESSED";
|
|
|
|
case PKT_ENCRYPTED: return "ENCRYPTED";
|
|
|
|
case PKT_MARKER: return "MARKER";
|
|
|
|
case PKT_PLAINTEXT: return "PLAINTEXT";
|
|
|
|
case PKT_RING_TRUST: return "RING_TRUST";
|
|
|
|
case PKT_USER_ID: return "USER_ID";
|
|
|
|
case PKT_PUBLIC_SUBKEY: return "PUBLIC_SUBKEY";
|
|
|
|
case PKT_OLD_COMMENT: return "OLD_COMMENT";
|
|
|
|
case PKT_ATTRIBUTE: return "ATTRIBUTE";
|
|
|
|
case PKT_ENCRYPTED_MDC: return "ENCRYPTED_MDC";
|
|
|
|
case PKT_MDC: return "MDC";
|
|
|
|
case PKT_COMMENT: return "COMMENT";
|
|
|
|
case PKT_GPG_CONTROL: return "GPG_CONTROL";
|
|
|
|
default: return "unknown packet type";
|
|
|
|
}
|
|
|
|
}
|
2006-08-21 20:20:23 +00:00
|
|
|
|
2011-02-04 12:57:53 +01:00
|
|
|
typedef enum
|
2006-08-21 20:20:23 +00:00
|
|
|
{
|
|
|
|
SIGSUBPKT_TEST_CRITICAL = -3,
|
|
|
|
SIGSUBPKT_LIST_UNHASHED = -2,
|
|
|
|
SIGSUBPKT_LIST_HASHED = -1,
|
|
|
|
SIGSUBPKT_NONE = 0,
|
|
|
|
SIGSUBPKT_SIG_CREATED = 2, /* Signature creation time. */
|
|
|
|
SIGSUBPKT_SIG_EXPIRE = 3, /* Signature expiration time. */
|
|
|
|
SIGSUBPKT_EXPORTABLE = 4, /* Exportable. */
|
|
|
|
SIGSUBPKT_TRUST = 5, /* Trust signature. */
|
|
|
|
SIGSUBPKT_REGEXP = 6, /* Regular expression. */
|
|
|
|
SIGSUBPKT_REVOCABLE = 7, /* Revocable. */
|
|
|
|
SIGSUBPKT_KEY_EXPIRE = 9, /* Key expiration time. */
|
|
|
|
SIGSUBPKT_ARR = 10, /* Additional recipient request. */
|
|
|
|
SIGSUBPKT_PREF_SYM = 11, /* Preferred symmetric algorithms. */
|
|
|
|
SIGSUBPKT_REV_KEY = 12, /* Revocation key. */
|
|
|
|
SIGSUBPKT_ISSUER = 16, /* Issuer key ID. */
|
|
|
|
SIGSUBPKT_NOTATION = 20, /* Notation data. */
|
|
|
|
SIGSUBPKT_PREF_HASH = 21, /* Preferred hash algorithms. */
|
|
|
|
SIGSUBPKT_PREF_COMPR = 22, /* Preferred compression algorithms. */
|
|
|
|
SIGSUBPKT_KS_FLAGS = 23, /* Key server preferences. */
|
2016-06-14 09:06:44 +02:00
|
|
|
SIGSUBPKT_PREF_KS = 24, /* Preferred keyserver. */
|
2006-08-21 20:20:23 +00:00
|
|
|
SIGSUBPKT_PRIMARY_UID = 25, /* Primary user id. */
|
|
|
|
SIGSUBPKT_POLICY = 26, /* Policy URL. */
|
|
|
|
SIGSUBPKT_KEY_FLAGS = 27, /* Key flags. */
|
|
|
|
SIGSUBPKT_SIGNERS_UID = 28, /* Signer's user id. */
|
|
|
|
SIGSUBPKT_REVOC_REASON = 29, /* Reason for revocation. */
|
|
|
|
SIGSUBPKT_FEATURES = 30, /* Feature flags. */
|
2011-02-04 12:57:53 +01:00
|
|
|
|
2006-08-21 20:20:23 +00:00
|
|
|
SIGSUBPKT_SIGNATURE = 32, /* Embedded signature. */
|
2016-06-20 23:58:16 +02:00
|
|
|
SIGSUBPKT_ISSUER_FPR = 33, /* EXPERIMENTAL: Issuer fingerprint. */
|
2011-02-04 12:57:53 +01:00
|
|
|
|
2006-08-21 20:20:23 +00:00
|
|
|
SIGSUBPKT_FLAG_CRITICAL = 128
|
2011-02-04 12:57:53 +01:00
|
|
|
}
|
2006-08-21 20:20:23 +00:00
|
|
|
sigsubpkttype_t;
|
|
|
|
|
|
|
|
|
gpg: Remove cipher.h and put algo ids into a common file.
* common/openpgpdefs.h (cipher_algo_t, pubkey_algo_t, digest_algo_t)
(compress_algo_t): New.
* agent/gpg-agent.c: Remove ../g10/cipher.h. Add openpgpdefs.h.
* g10/cipher.h (DEK): Move to ...
* g10/dek.h: new file.
* g10/cipher.h (is_RSA, is_ELGAMAL, is_DSA)
(PUBKEY_MAX_NPKEY, PUBKEY_MAX_NSKEY, PUBKEY_MAX_NSIG, PUBKEY_MAX_NENC)
(PUBKEY_USAGE_SIG, PUBKEY_USAGE_ENC, PUBKEY_USAGE_CERT)
(PUBKEY_USAGE_AUTH, PUBKEY_USAGE_NONE): Move to
* g10/packet.h: here.
* g10/cipher.h: Remove. Remove from all files.
* g10/filter.h, g10/packet.h: Include dek.h.
* g10/Makefile.am (common_source): Remove cipher.h. Add dek.h.
Signed-off-by: Werner Koch <wk@gnupg.org>
2014-01-29 20:35:05 +01:00
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
CIPHER_ALGO_NONE = 0,
|
|
|
|
CIPHER_ALGO_IDEA = 1,
|
|
|
|
CIPHER_ALGO_3DES = 2,
|
|
|
|
CIPHER_ALGO_CAST5 = 3,
|
|
|
|
CIPHER_ALGO_BLOWFISH = 4, /* 128 bit */
|
|
|
|
/* 5 & 6 are reserved */
|
|
|
|
CIPHER_ALGO_AES = 7,
|
|
|
|
CIPHER_ALGO_AES192 = 8,
|
|
|
|
CIPHER_ALGO_AES256 = 9,
|
|
|
|
CIPHER_ALGO_TWOFISH = 10, /* 256 bit */
|
|
|
|
CIPHER_ALGO_CAMELLIA128 = 11,
|
|
|
|
CIPHER_ALGO_CAMELLIA192 = 12,
|
2017-04-13 12:54:52 +09:00
|
|
|
CIPHER_ALGO_CAMELLIA256 = 13,
|
|
|
|
CIPHER_ALGO_PRIVATE10 = 110
|
gpg: Remove cipher.h and put algo ids into a common file.
* common/openpgpdefs.h (cipher_algo_t, pubkey_algo_t, digest_algo_t)
(compress_algo_t): New.
* agent/gpg-agent.c: Remove ../g10/cipher.h. Add openpgpdefs.h.
* g10/cipher.h (DEK): Move to ...
* g10/dek.h: new file.
* g10/cipher.h (is_RSA, is_ELGAMAL, is_DSA)
(PUBKEY_MAX_NPKEY, PUBKEY_MAX_NSKEY, PUBKEY_MAX_NSIG, PUBKEY_MAX_NENC)
(PUBKEY_USAGE_SIG, PUBKEY_USAGE_ENC, PUBKEY_USAGE_CERT)
(PUBKEY_USAGE_AUTH, PUBKEY_USAGE_NONE): Move to
* g10/packet.h: here.
* g10/cipher.h: Remove. Remove from all files.
* g10/filter.h, g10/packet.h: Include dek.h.
* g10/Makefile.am (common_source): Remove cipher.h. Add dek.h.
Signed-off-by: Werner Koch <wk@gnupg.org>
2014-01-29 20:35:05 +01:00
|
|
|
}
|
|
|
|
cipher_algo_t;
|
|
|
|
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
PUBKEY_ALGO_RSA = 1,
|
|
|
|
PUBKEY_ALGO_RSA_E = 2, /* RSA encrypt only (legacy). */
|
|
|
|
PUBKEY_ALGO_RSA_S = 3, /* RSA sign only (legacy). */
|
|
|
|
PUBKEY_ALGO_ELGAMAL_E = 16, /* Elgamal encrypt only. */
|
|
|
|
PUBKEY_ALGO_DSA = 17,
|
|
|
|
PUBKEY_ALGO_ECDH = 18, /* RFC-6637 */
|
|
|
|
PUBKEY_ALGO_ECDSA = 19, /* RFC-6637 */
|
|
|
|
PUBKEY_ALGO_ELGAMAL = 20, /* Elgamal encrypt+sign (legacy). */
|
2014-09-12 11:31:49 +02:00
|
|
|
/* 21 reserved by OpenPGP. */
|
2017-04-13 12:54:52 +09:00
|
|
|
PUBKEY_ALGO_EDDSA = 22, /* EdDSA (not yet assigned). */
|
|
|
|
PUBKEY_ALGO_PRIVATE10 = 110
|
gpg: Remove cipher.h and put algo ids into a common file.
* common/openpgpdefs.h (cipher_algo_t, pubkey_algo_t, digest_algo_t)
(compress_algo_t): New.
* agent/gpg-agent.c: Remove ../g10/cipher.h. Add openpgpdefs.h.
* g10/cipher.h (DEK): Move to ...
* g10/dek.h: new file.
* g10/cipher.h (is_RSA, is_ELGAMAL, is_DSA)
(PUBKEY_MAX_NPKEY, PUBKEY_MAX_NSKEY, PUBKEY_MAX_NSIG, PUBKEY_MAX_NENC)
(PUBKEY_USAGE_SIG, PUBKEY_USAGE_ENC, PUBKEY_USAGE_CERT)
(PUBKEY_USAGE_AUTH, PUBKEY_USAGE_NONE): Move to
* g10/packet.h: here.
* g10/cipher.h: Remove. Remove from all files.
* g10/filter.h, g10/packet.h: Include dek.h.
* g10/Makefile.am (common_source): Remove cipher.h. Add dek.h.
Signed-off-by: Werner Koch <wk@gnupg.org>
2014-01-29 20:35:05 +01:00
|
|
|
}
|
|
|
|
pubkey_algo_t;
|
|
|
|
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
DIGEST_ALGO_MD5 = 1,
|
|
|
|
DIGEST_ALGO_SHA1 = 2,
|
|
|
|
DIGEST_ALGO_RMD160 = 3,
|
|
|
|
/* 4, 5, 6, and 7 are reserved. */
|
|
|
|
DIGEST_ALGO_SHA256 = 8,
|
|
|
|
DIGEST_ALGO_SHA384 = 9,
|
|
|
|
DIGEST_ALGO_SHA512 = 10,
|
2017-04-13 12:54:52 +09:00
|
|
|
DIGEST_ALGO_SHA224 = 11,
|
|
|
|
DIGEST_ALGO_PRIVATE10 = 110
|
gpg: Remove cipher.h and put algo ids into a common file.
* common/openpgpdefs.h (cipher_algo_t, pubkey_algo_t, digest_algo_t)
(compress_algo_t): New.
* agent/gpg-agent.c: Remove ../g10/cipher.h. Add openpgpdefs.h.
* g10/cipher.h (DEK): Move to ...
* g10/dek.h: new file.
* g10/cipher.h (is_RSA, is_ELGAMAL, is_DSA)
(PUBKEY_MAX_NPKEY, PUBKEY_MAX_NSKEY, PUBKEY_MAX_NSIG, PUBKEY_MAX_NENC)
(PUBKEY_USAGE_SIG, PUBKEY_USAGE_ENC, PUBKEY_USAGE_CERT)
(PUBKEY_USAGE_AUTH, PUBKEY_USAGE_NONE): Move to
* g10/packet.h: here.
* g10/cipher.h: Remove. Remove from all files.
* g10/filter.h, g10/packet.h: Include dek.h.
* g10/Makefile.am (common_source): Remove cipher.h. Add dek.h.
Signed-off-by: Werner Koch <wk@gnupg.org>
2014-01-29 20:35:05 +01:00
|
|
|
}
|
|
|
|
digest_algo_t;
|
|
|
|
|
|
|
|
|
|
|
|
typedef enum
|
|
|
|
{
|
|
|
|
COMPRESS_ALGO_NONE = 0,
|
|
|
|
COMPRESS_ALGO_ZIP = 1,
|
|
|
|
COMPRESS_ALGO_ZLIB = 2,
|
2017-04-13 12:54:52 +09:00
|
|
|
COMPRESS_ALGO_BZIP2 = 3,
|
|
|
|
COMPRESS_ALGO_PRIVATE10 = 110
|
gpg: Remove cipher.h and put algo ids into a common file.
* common/openpgpdefs.h (cipher_algo_t, pubkey_algo_t, digest_algo_t)
(compress_algo_t): New.
* agent/gpg-agent.c: Remove ../g10/cipher.h. Add openpgpdefs.h.
* g10/cipher.h (DEK): Move to ...
* g10/dek.h: new file.
* g10/cipher.h (is_RSA, is_ELGAMAL, is_DSA)
(PUBKEY_MAX_NPKEY, PUBKEY_MAX_NSKEY, PUBKEY_MAX_NSIG, PUBKEY_MAX_NENC)
(PUBKEY_USAGE_SIG, PUBKEY_USAGE_ENC, PUBKEY_USAGE_CERT)
(PUBKEY_USAGE_AUTH, PUBKEY_USAGE_NONE): Move to
* g10/packet.h: here.
* g10/cipher.h: Remove. Remove from all files.
* g10/filter.h, g10/packet.h: Include dek.h.
* g10/Makefile.am (common_source): Remove cipher.h. Add dek.h.
Signed-off-by: Werner Koch <wk@gnupg.org>
2014-01-29 20:35:05 +01:00
|
|
|
}
|
|
|
|
compress_algo_t;
|
|
|
|
|
2019-01-29 18:20:34 +01:00
|
|
|
/* Limits to be used for static arrays. */
|
|
|
|
#define OPENPGP_MAX_NPKEY 5 /* Maximum number of public key parameters. */
|
|
|
|
#define OPENPGP_MAX_NSKEY 7 /* Maximum number of secret key parameters. */
|
|
|
|
#define OPENPGP_MAX_NSIG 2 /* Maximum number of signature parameters. */
|
|
|
|
#define OPENPGP_MAX_NENC 2 /* Maximum number of encryption parameters. */
|
|
|
|
|
gpg: Remove cipher.h and put algo ids into a common file.
* common/openpgpdefs.h (cipher_algo_t, pubkey_algo_t, digest_algo_t)
(compress_algo_t): New.
* agent/gpg-agent.c: Remove ../g10/cipher.h. Add openpgpdefs.h.
* g10/cipher.h (DEK): Move to ...
* g10/dek.h: new file.
* g10/cipher.h (is_RSA, is_ELGAMAL, is_DSA)
(PUBKEY_MAX_NPKEY, PUBKEY_MAX_NSKEY, PUBKEY_MAX_NSIG, PUBKEY_MAX_NENC)
(PUBKEY_USAGE_SIG, PUBKEY_USAGE_ENC, PUBKEY_USAGE_CERT)
(PUBKEY_USAGE_AUTH, PUBKEY_USAGE_NONE): Move to
* g10/packet.h: here.
* g10/cipher.h: Remove. Remove from all files.
* g10/filter.h, g10/packet.h: Include dek.h.
* g10/Makefile.am (common_source): Remove cipher.h. Add dek.h.
Signed-off-by: Werner Koch <wk@gnupg.org>
2014-01-29 20:35:05 +01:00
|
|
|
|
2006-08-21 20:20:23 +00:00
|
|
|
#endif /*GNUPG_COMMON_OPENPGPDEFS_H*/
|