Skip to content

Commit

Permalink
feat: add some empty hash values to SecureHashUtil.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Panzer1119 committed Aug 14, 2021
1 parent 3dc8359 commit 02f81f3
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ public class SecureHashUtil {
public static final String ALGORITHM_SHA384 = "SHA-384";
public static final String ALGORITHM_SHA512 = "SHA-512";

public static final byte[] EMPTY_SHA1 = hashSHA1(new byte[0]);
public static final byte[] EMPTY_SHA256 = hashSHA1(new byte[0]);
public static final byte[] EMPTY_SHA384 = hashSHA1(new byte[0]);
public static final byte[] EMPTY_SHA512 = hashSHA1(new byte[0]);

private static final MessageDigest SHA1 = createSHA1();
private static final MessageDigest SHA256 = createSHA256();
private static final MessageDigest SHA384 = createSHA384();
Expand Down

0 comments on commit 02f81f3

Please sign in to comment.