viff
view viff/test/test_basic_runtime.py @ 1538:9d4f9551644c
Added computation-id option.
This changeset adds a command line option to VIFF allowing users to
specify a computation id.
Prior to this changeset, any computation involving pseudo-random
secret sharing (which for the time being boils down to computations
done with the PassiveRuntime) could only be run one time using the
same set of VIFF player configuration files. If more than one
computation was executed with the same set of configuration files, the
security of the system would be broken.
With this changeset, multiple computations can be run securely with
the same set of configuration files as long as each computation is run
with a unique computation id.
This changeset adds a command line option to VIFF allowing users to
specify a computation id.
Prior to this changeset, any computation involving pseudo-random
secret sharing (which for the time being boils down to computations
done with the PassiveRuntime) could only be run one time using the
same set of VIFF player configuration files. If more than one
computation was executed with the same set of configuration files, the
security of the system would be broken.
With this changeset, multiple computations can be run securely with
the same set of configuration files as long as each computation is run
with a unique computation id.
| author | Tomas Toft <ttoft at cs.au.dk> |
|---|---|
| date | Wed Aug 11 16:09:32 2010 +0200 (21 months ago) |
| parents | 26f7a133172a |
| children |
line source
1 # Copyright 2008, 2009 VIFF Development Team.
2 #
3 # This file is part of VIFF, the Virtual Ideal Functionality Framework.
4 #
5 # VIFF is free software: you can redistribute it and/or modify it
6 # under the terms of the GNU Lesser General Public License (LGPL) as
7 # published by the Free Software Foundation, either version 3 of the
8 # License, or (at your option) any later version.
9 #
10 # VIFF is distributed in the hope that it will be useful, but WITHOUT
11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
13 # Public License for more details.
14 #
15 # You should have received a copy of the GNU Lesser General Public
16 # License along with VIFF. If not, see <http://www.gnu.org/licenses/>.
24 """Program counter tests."""
26 @protocol
30 @protocol
32 """Test whether synchronize increases the program counter.
34 Every synchronize operation should have its unique program
35 counter."""
42 @protocol
44 """Test a scheduled callback.
46 The callback should see the program counter as it was when the
47 callback was added and not the current value.
48 """
51 # The callback is run with its own sub-program counter.
58 # Scheduling a callback increases the program counter.
62 # Now trigger verify_program_counter.
65 @protocol
75 # No calls to schedule_callback yet.
83 # Trigger verify_program_counter.
89 @protocol
91 """Test sending multiple times from a Runtime method."""
93 # First send a couple of times to everybody.
101 # Then receive the data.
