Optimized calc digest for data blob to use same functions as other cases.