Optimized DigestInputProc to use common digest functions.
Fixed write to channel digest transform.
Updated comments