Add MACContext and switch HMAC and CMAC to use it.

Fixes #1319.

Thoughts?
Typo: Missing a period at the end of the sentence.