package org.bouncycastle.bcpg;

import org.bouncycastle.util.Strings;

/**
 * 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

    public static final int MD4 = 301;
    public static final int SHA3_224 = 312; // SHA3-224
    public static final int SHA3_256 = 313; //SHA3-256
    public static final int SHA3_384 = 314; // SHA3-384
    public static final int SHA3_512 = 315; // SHA3-512

    public static final int SM3 = 326; // SHA3-512

}

@@ -29,47 +29,8 @@
 g;%0A%0A
-import org.bouncycastle.util.Strings;%0A%0A
 /**%0A
@@ -812,17 +812,16 @@
 SHA-224%0A
-%0A
     publ
@@ -844,18 +844,37 @@
 int 
-MD4 = 301;
+SHA3_256 = 12;    // SHA3-256
 %0A   
@@ -907,18 +907,20 @@
 HA3_
-224 = 312;
+512 = 14;   
  // 
@@ -924,19 +924,20 @@
 // SHA3-
-224
+512%0A
 %0A    pub
@@ -961,34 +961,18 @@
 int 
-SHA3_256 = 313; //SHA3-256
+MD4 = 301;
 %0A   
@@ -1005,17 +1005,17 @@
 HA3_
-38
+22
 4 = 31
-4
+2
 ; //
@@ -1020,18 +1020,18 @@
 // SHA3-
-38
+22
 4%0A    pu
@@ -1061,17 +1061,17 @@
 HA3_
-512
+384
  = 31
-5
+4
 ; //
@@ -1068,35 +1068,35 @@
  = 314; // SHA3-
-512
+384
 %0A%0A    public sta

Update HashAlgorithmTags