viff

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 diff
     1.1 --- a/viff/comparison.py	Wed May 14 16:15:51 2008 +0200
     1.2 +++ b/viff/comparison.py	Thu May 15 09:41:27 2008 +0200
     1.3 @@ -26,6 +26,7 @@
     1.4  
     1.5  from viff.util import rand
     1.6  from viff.runtime import Runtime, Share, gather_shares, increment_pc
     1.7 +from viff.runtime import ActiveRuntime
     1.8  from viff.field import GF256, FieldElement
     1.9  
    1.10  
    1.11 @@ -138,6 +139,11 @@
    1.12      :class:`Runtime <viff.runtime.Runtime>`."""
    1.13      pass
    1.14  
    1.15 +class ActiveToft05Runtime(ComparisonToft05Mixin, ActiveRuntime):
    1.16 +    """Default mix of :class:`ComparisonToft05Mixin` and
    1.17 +    :class:`ActiveRuntime <viff.runtime.ActiveRuntime>`."""
    1.18 +    pass
    1.19 +
    1.20  
    1.21  class ComparisonToft07Mixin:
    1.22  
    1.23 @@ -328,3 +334,8 @@
    1.24      :class:`Runtime <viff.runtime.Runtime>`.
    1.25      """
    1.26      pass
    1.27 +
    1.28 +class ActiveToft07Runtime(ComparisonToft07Mixin, ActiveRuntime):
    1.29 +    """Default mix of :class:`ComparisonToft07Mixin` and
    1.30 +    :class:`ActiveRuntime <viff.runtime.ActiveRuntime>`."""
    1.31 +    pass