1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-22 15:58:52 -05:00

Enable SHA-3 support (Java 11 only)

This commit is contained in:
Reinhard Pointner 2019-02-20 02:21:55 +07:00
parent b01e0f3dc8
commit 96bd0c0d79

View File

@ -91,31 +91,31 @@ public enum HashType {
public String toString() {
return "SHA2";
}
};
},
// SHA3_384 {
//
// @Override
// public Hash newHash() {
// return new MessageDigestHash("SHA3-384");
// }
//
// @Override
// public VerificationFormat getFormat() {
// // e.g 1a02a7c1e9ac91346d08829d5037b240f42ded07 ?SHA3-384*folder/file.txt
// return new VerificationFormat("SHA3-384");
// }
//
// @Override
// public ExtensionFileFilter getFilter() {
// return MediaTypes.getTypeFilter("verification/sha3sum");
// }
//
// @Override
// public String toString() {
// return "SHA3";
// }
// },
SHA3_384 {
@Override
public Hash newHash() {
return new MessageDigestHash("SHA3-384");
}
@Override
public VerificationFormat getFormat() {
// e.g 1a02a7c1e9ac91346d08829d5037b240f42ded07 ?SHA3-384*folder/file.txt
return new VerificationFormat("SHA3-384");
}
@Override
public ExtensionFileFilter getFilter() {
return MediaTypes.getTypeFilter("verification/sha3sum");
}
@Override
public String toString() {
return "SHA3";
}
};
public abstract Hash newHash();