@@ -0,0 +1,1265 @@
+/**%0A* OpenCPS PKI is the open source PKI Integration software%0A* Copyright (C) 2016-present OpenCPS community%0A%0A* This program is free software: you can redistribute it and/or modify%0A* it under the terms of the GNU Affero General Public License as published by%0A* the Free Software Foundation, either version 3 of the License, or%0A* any later version.%0A%0A* This program is distributed in the hope that it will be useful,%0A* but WITHOUT ANY WARRANTY; without even the implied warranty of%0A* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the%0A* GNU Affero General Public License for more details.%0A* You should have received a copy of the GNU Affero General Public License%0A* along with this program. If not, see %3Chttp://www.gnu.org/licenses/%3E%0A*/%0Apackage org.opencps.pki;%0A%0A/**%0A * Hash algorithm enum%0A *%0A * @author Nguyen Van Nguyen %3Cnguyennv@iwayvietnam.com%3E%0A */%0Apublic enum HashAlgorithm %7B%0A%09MD2(%22MD2%22),%0A%09MD5(%22MD5%22),%0A%09SHA1(%22SHA1%22),%0A%09SHA224(%22SHA224%22),%0A%09SHA256(%22SHA256%22),%0A%09SHA384(%22SHA384%22),%0A%09SHA512(%22SHA512%22),%0A%09RIPEMD128(%22RIPEMD128%22),%0A%09RIPEMD160(%22RIPEMD160%22),%0A%09RIPEMD256(%22RIPEMD256%22),%0A%09GOST3411(%22GOST3411%22);%0A%0A%09private final String name;%0A%0A    private HashAlgorithm(String name) %7B%0A        this.name = name;%0A    %7D%0A%0A    public String toString() %7B%0A    %09return name;%0A    %7D%0A%7D%0A

Define hash algorithm enum