viff
view viff/bedoza/util.py @ 1535:b4451e4ac76d
BeDOZa: Use gmpy for modular exponentiation.
| author | Thomas P Jakobsen <tpj@cs.au.dk> |
|---|---|
| date | Tue Aug 10 16:03:54 2010 +0200 (21 months ago) |
| parents | e45ed7224d20 |
| children | c8e7c5ee1583 |
line source
1 # Copyright 2010 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/>.
25 """Send vals[i] to player i + 1. Returns deferred list.
27 Works as default for integers. If other stuff has to be
28 sent, supply another serialization, deserialition.
29 """
48 """As send, but sends the same val to all players."""
