Skip to content
Snippets Groups Projects
Commit ea5020d0 authored by Phil's avatar Phil
Browse files

Added ASN1F_BOOLEAN field

parent d7b3bce2
No related branches found
No related tags found
No related merge requests found
...@@ -115,6 +115,11 @@ class ASN1F_INTEGER(ASN1F_field): ...@@ -115,6 +115,11 @@ class ASN1F_INTEGER(ASN1F_field):
def randval(self): def randval(self):
return RandNum(-2**64, 2**64-1) return RandNum(-2**64, 2**64-1)
class ASN1F_BOOLEAN(ASN1F_field):
ASN1_tag= ASN1_Class_UNIVERSAL.BOOLEAN
def randval(self):
return RandChoice(True,False)
class ASN1F_NULL(ASN1F_INTEGER): class ASN1F_NULL(ASN1F_INTEGER):
ASN1_tag= ASN1_Class_UNIVERSAL.NULL ASN1_tag= ASN1_Class_UNIVERSAL.NULL
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment