mirror of
https://github.com/data61/MP-SPDZ.git
synced 2026-04-20 03:01:31 -04:00
12 lines
255 B
Plaintext
12 lines
255 B
Plaintext
n = 1000000
|
|
x = sint.Array(n)
|
|
x.assign_vector(regint.inc(n))
|
|
|
|
@multithread(2, n)
|
|
def _(base, size):
|
|
x.assign_vector(x.get_vector(base, size) ** 2, base)
|
|
|
|
print_ln('%s', x[2].reveal())
|
|
crash(x[2].reveal() != 4)
|
|
crash(x[n - 1].reveal() != (n - 1) ** 2)
|