Added a digest method that takes a FileChannel as a parameter.