viff

changeset 1109:730c30c4d788

Added test for split in GF256.
author Tord Reistad <tordr@item.ntnu.no>
date Thu, 05 Mar 2009 13:46:19 +0100
parents e5aecd62cf67
children 24d0ffe14c3a
files viff/field.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line diff
     1.1 --- a/viff/field.py	Thu Mar 05 13:23:42 2009 +0100
     1.2 +++ b/viff/field.py	Thu Mar 05 13:46:19 2009 +0100
     1.3 @@ -93,6 +93,8 @@
     1.4          [1, 1, 0, 0, 0]
     1.5          >>> Zp(28).split()
     1.6          [0, 0, 1, 1, 1]
     1.7 +        >>> GF256(8).split()
     1.8 +        [0, 0, 0, 1, 0, 0, 0, 0]
     1.9          """
    1.10          length = int(ceil(log(self.modulus,2)))
    1.11          result = [0] * length