public static byte[] computeCryptoKeyHash(Configuration conf, byte[] arg) {
    String algorithm = getConfiguredHashAlgorithm(conf);
    try {
      return hashWithAlg(algorithm, arg);
    } catch (RuntimeException e) {
      String message = format(
        "Error in computeCryptoKeyHash (please check your configuration "
          + "parameter %s and the security provider configuration of the JVM)",
        CRYPTO_KEY_HASH_ALGORITHM_CONF_KEY);
      throw new RuntimeException(message, e);
    }
  }
Returns the hash of the supplied argument, using the hash algorithm specified in the given
config.
hbase-common/src/main/java/org/apache/hadoop/hbase/io/crypto/Encryption.java