Closed DylanWangWQF closed 2 years ago
It seems that bitexpand()
does not convert secret-shared boolean
values to arithmetic
values.
It just expands a public value (e.g., 32-bit) into another value (e.g., 64-bit).
So piranha does not implement A2B
or B2A
?
For the input data, party_A and party_C store the original data, so we do it here for simplicity?
input.zero();
input.setPublic(data);
void RSSBase<T, I>::setPublic(std::vector
switch (partyNum) {
case PARTY_A:
thrust::copy(shifted_vals.begin(), shifted_vals.end(), shareA->begin());
shareB->zero();
break;
case PARTY_B:
shareA->zero();
shareB->zero();
case PARTY_C:
shareA->zero();
thrust::copy(shifted_vals.begin(), shifted_vals.end(), shareB->begin());
break;
}
};
Hi, @jlwatson For share conversions in RSS,
boolean to arithmetic
is implemented in the functionbitexpand(DeviceData<T, I> *a, DeviceData<U, I2> *b)
. Does piranha implementarithmetic to boolean
(A2B, decomposition)?BTW, does piranha implement the functionality of the equality test for two integers in 3PC (RSS)?