public static String ComputeElf32(this byte[] bytes, HashFormat hashFormat) { using (var hashImpl = new ELF32()) { var hashBytes = hashImpl.ComputeHash(bytes); return(ConvertToString(hashBytes, hashFormat)); } }
public static String ComputeELF32(byte[] bytes) { using (var hashAlgorithmImpl = new ELF32()) { var hashBytes = hashAlgorithmImpl.ComputeHash(bytes); return(String.Concat(hashBytes.Select(b => b.ToString("x2")))); } }