Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/quite/humla-spongycastle.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'pg/src/main/java/org/spongycastle/bcpg/PacketTags.java')
-rw-r--r--pg/src/main/java/org/spongycastle/bcpg/PacketTags.java31
1 files changed, 31 insertions, 0 deletions
diff --git a/pg/src/main/java/org/spongycastle/bcpg/PacketTags.java b/pg/src/main/java/org/spongycastle/bcpg/PacketTags.java
new file mode 100644
index 00000000..d20efcef
--- /dev/null
+++ b/pg/src/main/java/org/spongycastle/bcpg/PacketTags.java
@@ -0,0 +1,31 @@
+package org.spongycastle.bcpg;
+
+/**
+ * Basic PGP packet tag types.
+ */
+public interface PacketTags
+{
+ public static final int RESERVED = 0 ; // Reserved - a packet tag must not have this value
+ public static final int PUBLIC_KEY_ENC_SESSION = 1; // Public-Key Encrypted Session Key Packet
+ public static final int SIGNATURE = 2; // Signature Packet
+ public static final int SYMMETRIC_KEY_ENC_SESSION = 3; // Symmetric-Key Encrypted Session Key Packet
+ public static final int ONE_PASS_SIGNATURE = 4 ; // One-Pass Signature Packet
+ public static final int SECRET_KEY = 5; // Secret Key Packet
+ public static final int PUBLIC_KEY = 6 ; // Public Key Packet
+ public static final int SECRET_SUBKEY = 7; // Secret Subkey Packet
+ public static final int COMPRESSED_DATA = 8; // Compressed Data Packet
+ public static final int SYMMETRIC_KEY_ENC = 9; // Symmetrically Encrypted Data Packet
+ public static final int MARKER = 10; // Marker Packet
+ public static final int LITERAL_DATA = 11; // Literal Data Packet
+ public static final int TRUST = 12; // Trust Packet
+ public static final int USER_ID = 13; // User ID Packet
+ public static final int PUBLIC_SUBKEY = 14; // Public Subkey Packet
+ public static final int USER_ATTRIBUTE = 17; // User attribute
+ public static final int SYM_ENC_INTEGRITY_PRO = 18; // Symmetric encrypted, integrity protected
+ public static final int MOD_DETECTION_CODE = 19; // Modification detection code
+
+ public static final int EXPERIMENTAL_1 = 60; // Private or Experimental Values
+ public static final int EXPERIMENTAL_2 = 61;
+ public static final int EXPERIMENTAL_3 = 62;
+ public static final int EXPERIMENTAL_4 = 63;
+}