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 wrap: on
line diff
--- a/viff/field.py	Thu Mar 05 13:23:42 2009 +0100
+++ b/viff/field.py	Thu Mar 05 13:46:19 2009 +0100
@@ -93,6 +93,8 @@
         [1, 1, 0, 0, 0]
         >>> Zp(28).split()
         [0, 0, 1, 1, 1]
+        >>> GF256(8).split()
+        [0, 0, 0, 1, 0, 0, 0, 0]
         """
         length = int(ceil(log(self.modulus,2)))
         result = [0] * length