Example #1
0
    def consume_rest(self, tag, message, region, info):
        """Already have public key things"""
        s2k_type = region.read("uint:8")
        mpis = self.get_mpis(s2k_type, message, region, info)

        # Get the rest of the mpi values and combine with those from public portion
        mpi_values = Mpi.consume_private(mpis, info["algorithm"])
        mpi_tuple = info["mpi_values"] + mpi_values

        # Record key and key_id
        info["key"] = info["algorithm"].construct(list(long(i.read("uint")) for i in mpi_tuple))
        info["key_id"] = self.determine_key_id(info)