CHANGED:added debugging method for HMAC function