adjust code to Nocrypto API change
 no distinction between hash and mac
Merge pull request #194 from mirleft/hash-mac-nocrypto

adjust code to Nocrypto API change