Home
last modified time | relevance | path

Searched refs:ASN1_Object (Results 1 – 3 of 3) sorted by relevance

/external/scapy/scapy/asn1/
Dasn1.py195 class ASN1_Object(six.with_metaclass(ASN1_Object_metaclass)): class
231 class ASN1_DECODING_ERROR(ASN1_Object):
234 ASN1_Object.__init__(self, val)
240 if isinstance(self.val, ASN1_Object):
244 class ASN1_force(ASN1_Object):
247 if isinstance(self.val, ASN1_Object):
254 class ASN1_INTEGER(ASN1_Object):
273 return '%s %s' % (not (self.val==0), ASN1_Object.__repr__(self))
276 class ASN1_BIT_STRING(ASN1_Object):
298 super(ASN1_Object, self).__setattr__("val", val)
[all …]
/external/scapy/scapy/
Dasn1fields.py98 if isinstance(x, ASN1_Object):
376 if isinstance(val, ASN1_Object) and val.tag==ASN1_Class_UNIVERSAL.RAW:
/external/scapy/test/
Dregression.uts760 = ASN1 - ASN1_Object
761 assert ASN1_Object(1) == ASN1_Object(1)
762 assert ASN1_Object(1) > ASN1_Object(0)
763 assert ASN1_Object(1) >= ASN1_Object(1)
764 assert ASN1_Object(0) < ASN1_Object(1)
765 assert ASN1_Object(1) <= ASN1_Object(2)
766 assert ASN1_Object(1) != ASN1_Object(2)
767 ASN1_Object(2).show()
785 a = ASN1_SEQUENCE([ASN1_Object(1), ASN1_Object(0)])
786 assert a.strshow() == '# ASN1_SEQUENCE:\n <ASN1_Object[1]>\n <ASN1_Object[0]>\n'