Commits

nneonneo  committed 49977f4

hachoir-core/field/integer: allow bigger integers (useful when e.g. parsing RSA keys)

  • Participants
  • Parent commits 1786e44

Comments (0)

Files changed (1)

File hachoir-core/hachoir_core/field/integer.py

     Generic integer class used to generate other classes.
     """
     def __init__(self, parent, name, signed, size, description=None):
-        if not (8 <= size <= 256):
-            raise FieldError("Invalid integer size (%s): have to be in 8..256" % size)
+        if not (8 <= size <= 16384):
+            raise FieldError("Invalid integer size (%s): have to be in 8..16384" % size)
         Bits.__init__(self, parent, name, size, description)
         self.signed = signed