]> WPIA git - gigi.git/blob - src/org/cacert/gigi/Digest.java
e183be7275ac4b45c7c57792f6d5c97e23e1bd73
[gigi.git] / src / org / cacert / gigi / Digest.java
1 package org.cacert.gigi;
2
3 public enum Digest {
4         SHA256("Currently recommended, because the other algorithms"
5                 + " might break on some older versions of the GnuTLS library"
6                 + " (older than 3.x) still shipped in Debian for example."), SHA384(null), SHA512(
7                 "Highest protection against hash collision attacks of the algorithms offered here.");
8         final String exp;
9
10         private Digest(String explanation) {
11                 exp = explanation;
12         }
13
14         public String getExp() {
15                 return exp;
16         }
17
18         public static Digest getDefault() {
19                 return SHA256;
20         }
21 }