Home | History | Annotate | Download | only in hash

Lines Matching defs:Algorithm

36  * <li>algorithm: the algorithm to hash with (e.g. MD5, SHA1, etc.).
44 @Param Algorithm algorithm;
49 @Override public byte[] hash(Algorithm algorithm, byte[] input) {
50 MessageDigest md = algorithm.getMessageDigest();
56 @Override public byte[] hash(Algorithm algorithm, byte[] input) {
57 return algorithm.getHashFunction().hashBytes(input).asBytes();
60 public abstract byte[] hash(Algorithm algorithm, byte[] input);
63 private enum Algorithm {
71 Algorithm(String algorithmName, HashFunction hashFn) {
100 Algorithm algorithm = this.algorithm;
102 result ^= hashMethod.hash(algorithm, testBytes)[0];