changeset 759:16fe2bd2edec

Added default flavors with active security.
author Martin Geisler <mg@daimi.au.dk>
date Thu, 15 May 2008 09:41:27 +0200
parents 5c83d5ff31fa
children 591ab6199980
files viff/comparison.py
diffstat 1 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/viff/comparison.py	Wed May 14 16:15:51 2008 +0200
+++ b/viff/comparison.py	Thu May 15 09:41:27 2008 +0200
@@ -26,6 +26,7 @@
 
 from viff.util import rand
 from viff.runtime import Runtime, Share, gather_shares, increment_pc
+from viff.runtime import ActiveRuntime
 from viff.field import GF256, FieldElement
 
 
@@ -138,6 +139,11 @@
     :class:`Runtime <viff.runtime.Runtime>`."""
     pass
 
+class ActiveToft05Runtime(ComparisonToft05Mixin, ActiveRuntime):
+    """Default mix of :class:`ComparisonToft05Mixin` and
+    :class:`ActiveRuntime <viff.runtime.ActiveRuntime>`."""
+    pass
+
 
 class ComparisonToft07Mixin:
 
@@ -328,3 +334,8 @@
     :class:`Runtime <viff.runtime.Runtime>`.
     """
     pass
+
+class ActiveToft07Runtime(ComparisonToft07Mixin, ActiveRuntime):
+    """Default mix of :class:`ComparisonToft07Mixin` and
+    :class:`ActiveRuntime <viff.runtime.ActiveRuntime>`."""
+    pass