def METHOD_NAME(self, home_network_public_key: bytes):
    """
    Encrypt
    """
    if self.profile == "ProfileA":
        ue = ECIES_UE(profile='A')
    elif self.profile == "ProfileB":
        ue = ECIES_UE(profile='B')
    ue.generate_sharedkey(home_network_public_key)
    ue_pubkey, ue_ciphertext, ue_mac = ue.protect(self.msin)
    self.ue_encrypt_context = ue_encrypt_context(
        ue_pubkey,
        ue_ciphertext, ue_mac,
    )