add methods for digesting hash value directly