Enable SHA-3 support (Java 11 only)
This commit is contained in:
parent
b01e0f3dc8
commit
96bd0c0d79
|
@ -91,31 +91,31 @@ public enum HashType {
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "SHA2";
|
return "SHA2";
|
||||||
}
|
}
|
||||||
};
|
},
|
||||||
|
|
||||||
// SHA3_384 {
|
SHA3_384 {
|
||||||
//
|
|
||||||
// @Override
|
@Override
|
||||||
// public Hash newHash() {
|
public Hash newHash() {
|
||||||
// return new MessageDigestHash("SHA3-384");
|
return new MessageDigestHash("SHA3-384");
|
||||||
// }
|
}
|
||||||
//
|
|
||||||
// @Override
|
@Override
|
||||||
// public VerificationFormat getFormat() {
|
public VerificationFormat getFormat() {
|
||||||
// // e.g 1a02a7c1e9ac91346d08829d5037b240f42ded07 ?SHA3-384*folder/file.txt
|
// e.g 1a02a7c1e9ac91346d08829d5037b240f42ded07 ?SHA3-384*folder/file.txt
|
||||||
// return new VerificationFormat("SHA3-384");
|
return new VerificationFormat("SHA3-384");
|
||||||
// }
|
}
|
||||||
//
|
|
||||||
// @Override
|
@Override
|
||||||
// public ExtensionFileFilter getFilter() {
|
public ExtensionFileFilter getFilter() {
|
||||||
// return MediaTypes.getTypeFilter("verification/sha3sum");
|
return MediaTypes.getTypeFilter("verification/sha3sum");
|
||||||
// }
|
}
|
||||||
//
|
|
||||||
// @Override
|
@Override
|
||||||
// public String toString() {
|
public String toString() {
|
||||||
// return "SHA3";
|
return "SHA3";
|
||||||
// }
|
}
|
||||||
// },
|
};
|
||||||
|
|
||||||
public abstract Hash newHash();
|
public abstract Hash newHash();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue