Reset message digest before use

Fixes SMACK-617