Skip to content

Commit

Permalink
remove commented checks
Browse files Browse the repository at this point in the history
  • Loading branch information
esaulpaugh committed Mar 15, 2022
1 parent 9175a4c commit 5b92d42
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/main/java/com/joemelsha/crypto/hash/Keccak.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,8 @@ public final class Keccak extends MessageDigest {

public Keccak(int digestSizeBits) {
super(getAlgName(digestSizeBits));
int rateSizeBits = rateSizeBitsFor(digestSizeBits);
// if (rateSizeBits + digestSizeBits * 2 != MAX_STATE_SIZE)
// throw new IllegalArgumentException("Invalid rateSizeBits + digestSizeBits * 2: " + rateSizeBits + " + " + digestSizeBits + " * 2 != " + MAX_STATE_SIZE);
// if (rateSizeBits <= 0 || (rateSizeBits & 0x3f) != 0)
// throw new IllegalArgumentException("Invalid rateSizeBits: " + rateSizeBits);
this.digestSizeBytes = digestSizeBits >>> 3;

this.rateSizeBits = rateSizeBits;
this.rateSizeBits = rateSizeBitsFor(digestSizeBits);
this.rateSizeWords = rateSizeBits >>> 6;
}

Expand Down

0 comments on commit 5b92d42

Please sign in to comment.