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/HashAlgorithmTags.java')
-rw-r--r--pg/src/main/java/org/spongycastle/bcpg/HashAlgorithmTags.java20
1 files changed, 20 insertions, 0 deletions
diff --git a/pg/src/main/java/org/spongycastle/bcpg/HashAlgorithmTags.java b/pg/src/main/java/org/spongycastle/bcpg/HashAlgorithmTags.java
new file mode 100644
index 00000000..868451b0
--- /dev/null
+++ b/pg/src/main/java/org/spongycastle/bcpg/HashAlgorithmTags.java
@@ -0,0 +1,20 @@
+package org.spongycastle.bcpg;
+
+/**
+ * basic tags for hash algorithms
+ */
+public interface HashAlgorithmTags
+{
+ public static final int MD5 = 1; // MD5
+ public static final int SHA1 = 2; // SHA-1
+ public static final int RIPEMD160 = 3; // RIPE-MD/160
+ public static final int DOUBLE_SHA = 4; // Reserved for double-width SHA (experimental)
+ public static final int MD2 = 5; // MD2
+ public static final int TIGER_192 = 6; // Reserved for TIGER/192
+ public static final int HAVAL_5_160 = 7; // Reserved for HAVAL (5 pass, 160-bit)
+
+ public static final int SHA256 = 8; // SHA-256
+ public static final int SHA384 = 9; // SHA-384
+ public static final int SHA512 = 10; // SHA-512
+ public static final int SHA224 = 11; // SHA-224
+}