I don't think the else should be PLAIN_TEXT, lets make it HMAC_SYMMETRIC that is more common