Mock Digest class that calculates size of message