| CPC H04L 9/008 (2013.01) [G06F 7/24 (2013.01); G06F 21/602 (2013.01)] | 18 Claims |

|
1. A computer system, comprising:
a processor set;
a computer-readable medium; and
program instructions stored on the computer-readable medium to cause the processor set to perform operations which comprise:
compute a tensor of indicators indicating a presence of partial sums in an encrypted vector of indicators;
securely reorder an encrypted array based on the computed tensor of indicators to generate a reordered encrypted array; and
securely sort the encrypted array such that samples in an intersection indicated by the encrypted vector of indicators appear first in an encrypted dataset, and a relative order of the samples as in the encrypted array is preserved.
|