Set whether to use the low-level INVPERM instruction to inverse a permutation (see sint.inverse_permutation). The INVPERM instruction assumes a semi-honest two-party environment. If false, a general protocol implemented in the high-level language is used. :param change: change setting if n
(self, change=None)
| 745 | self._edabit = change |
| 746 | |
| 747 | def use_invperm(self, change=None): |
| 748 | """ Set whether to use the low-level INVPERM instruction to inverse a permutation (see sint.inverse_permutation). The INVPERM instruction assumes a semi-honest two-party environment. If false, a general protocol implemented in the high-level language is used. |
| 749 | |
| 750 | :param change: change setting if not :py:obj:`None` |
| 751 | :returns: setting if :py:obj:`change` is :py:obj:`None` |
| 752 | """ |
| 753 | if change is None: |
| 754 | if not self._invperm: |
| 755 | self.relevant_opts.add("invperm") |
| 756 | return self._invperm |
| 757 | else: |
| 758 | self._invperm = change |
| 759 | |
| 760 | |
| 761 | def use_edabit_for(self, *args): |
no test coverage detected