Use this method to prepare a CoseInput object to calculate the tag, and then call create to create a CoseMac object.