md: check hmac flag in prepare_macpads