private static MessageDigest messageDigest(final String algorithm) {
    try {
      return MessageDigestFactory.create(algorithm);
    } catch (final NoSuchAlgorithmException e) {
      throw new RuntimeException(e);
    }
  }
Various utilities for providing hashes (digests) of arbitrary data.
crypto/algorithms/src/main/java/org/hyperledger/besu/crypto/Hash.java