Added compatibility tests
Adapted hashing and mac-ing algorithms to be compatible with Hawk