Add HMAC digest
Rename sum to digest