For hsm_key object, removed candidate_for_sharing and added state thats an enum which determines if a key is used and how.