scapy.asn1.ber

Basic Encoding Rules (BER) for ASN.1

exception scapy.asn1.ber.BER_BadTag_Decoding_Error(msg, decoded=None, remaining=None)

Bases: scapy.asn1.ber.BER_Decoding_Error, scapy.asn1.asn1.ASN1_BadTag_Decoding_Error

exception scapy.asn1.ber.BER_Decoding_Error(msg, decoded=None, remaining=None)

Bases: scapy.asn1.asn1.ASN1_Decoding_Error

exception scapy.asn1.ber.BER_Encoding_Error(msg, encoded=None, remaining=None)

Bases: scapy.asn1.asn1.ASN1_Encoding_Error

exception scapy.asn1.ber.BER_Exception

Bases: Exception

scapy.asn1.ber.BER_id_dec(s)
scapy.asn1.ber.BER_id_enc(n)
scapy.asn1.ber.BER_len_dec(s)
scapy.asn1.ber.BER_len_enc(ll, size=0)
scapy.asn1.ber.BER_num_dec(s, cls_id=0)
scapy.asn1.ber.BER_num_enc(ll, size=1)
scapy.asn1.ber.BER_tagging_dec(s, hidden_tag=None, implicit_tag=None, explicit_tag=None, safe=False)
scapy.asn1.ber.BER_tagging_enc(s, implicit_tag=None, explicit_tag=None)
class scapy.asn1.ber.BERcodec_BIT_STRING

Bases: scapy.asn1.ber.BERcodec_Object

classmethod do_dec(s, context=None, safe=False)
classmethod enc(s)
tag = <ASN1Tag BIT_STRING[3]>
class scapy.asn1.ber.BERcodec_BMP_STRING

Bases: scapy.asn1.ber.BERcodec_STRING

tag = <ASN1Tag BMP_STRING[30]>
class scapy.asn1.ber.BERcodec_BOOLEAN

Bases: scapy.asn1.ber.BERcodec_INTEGER

tag = <ASN1Tag BOOLEAN[1]>
class scapy.asn1.ber.BERcodec_COUNTER32

Bases: scapy.asn1.ber.BERcodec_INTEGER

tag = <ASN1Tag COUNTER32[65]>
class scapy.asn1.ber.BERcodec_ENUMERATED

Bases: scapy.asn1.ber.BERcodec_INTEGER

tag = <ASN1Tag ENUMERATED[10]>
class scapy.asn1.ber.BERcodec_GAUGE32

Bases: scapy.asn1.ber.BERcodec_INTEGER

tag = <ASN1Tag GAUGE32[66]>
class scapy.asn1.ber.BERcodec_GENERALIZED_TIME

Bases: scapy.asn1.ber.BERcodec_STRING

tag = <ASN1Tag GENERALIZED_TIME[24]>
class scapy.asn1.ber.BERcodec_IA5_STRING

Bases: scapy.asn1.ber.BERcodec_STRING

tag = <ASN1Tag IA5_STRING[22]>
class scapy.asn1.ber.BERcodec_INTEGER

Bases: scapy.asn1.ber.BERcodec_Object

classmethod do_dec(s, context=None, safe=False)
classmethod enc(i)
tag = <ASN1Tag INTEGER[2]>
class scapy.asn1.ber.BERcodec_IPADDRESS

Bases: scapy.asn1.ber.BERcodec_STRING

classmethod do_dec(s, context=None, safe=False)
classmethod enc(ipaddr_ascii)
tag = <ASN1Tag IPADDRESS[64]>
class scapy.asn1.ber.BERcodec_ISO646_STRING

Bases: scapy.asn1.ber.BERcodec_STRING

tag = <ASN1Tag ISO646_STRING[26]>
class scapy.asn1.ber.BERcodec_NULL

Bases: scapy.asn1.ber.BERcodec_INTEGER

classmethod enc(i)
tag = <ASN1Tag NULL[5]>
class scapy.asn1.ber.BERcodec_NUMERIC_STRING

Bases: scapy.asn1.ber.BERcodec_STRING

tag = <ASN1Tag NUMERIC_STRING[18]>
class scapy.asn1.ber.BERcodec_OID

Bases: scapy.asn1.ber.BERcodec_Object

classmethod do_dec(s, context=None, safe=False)
classmethod enc(oid)
tag = <ASN1Tag OID[6]>
class scapy.asn1.ber.BERcodec_Object

Bases: object

classmethod asn1_object(val)
classmethod check_string(s)
classmethod check_type(s)
classmethod check_type_check_len(s)
classmethod check_type_get_len(s)
codec = <ASN1Codec BER[1]>
classmethod dec(s, context=None, safe=False)
classmethod do_dec(s, context=None, safe=False)
classmethod enc(s)
classmethod safedec(s, context=None)
tag = <ASN1Tag ANY[0]>
class scapy.asn1.ber.BERcodec_PRINTABLE_STRING

Bases: scapy.asn1.ber.BERcodec_STRING

tag = <ASN1Tag PRINTABLE_STRING[19]>
class scapy.asn1.ber.BERcodec_SEQUENCE

Bases: scapy.asn1.ber.BERcodec_Object

classmethod do_dec(s, context=None, safe=False)
classmethod enc(ll)
tag = <ASN1Tag SEQUENCE[48]>
class scapy.asn1.ber.BERcodec_SET

Bases: scapy.asn1.ber.BERcodec_SEQUENCE

tag = <ASN1Tag SET[49]>
class scapy.asn1.ber.BERcodec_STRING

Bases: scapy.asn1.ber.BERcodec_Object

classmethod do_dec(s, context=None, safe=False)
classmethod enc(s)
tag = <ASN1Tag STRING[4]>
class scapy.asn1.ber.BERcodec_T61_STRING

Bases: scapy.asn1.ber.BERcodec_STRING

tag = <ASN1Tag T61_STRING[20]>
class scapy.asn1.ber.BERcodec_TIME_TICKS

Bases: scapy.asn1.ber.BERcodec_INTEGER

tag = <ASN1Tag TIME_TICKS[67]>
class scapy.asn1.ber.BERcodec_UNIVERSAL_STRING

Bases: scapy.asn1.ber.BERcodec_STRING

tag = <ASN1Tag UNIVERSAL_STRING[28]>
class scapy.asn1.ber.BERcodec_UTC_TIME

Bases: scapy.asn1.ber.BERcodec_STRING

tag = <ASN1Tag UTC_TIME[23]>
class scapy.asn1.ber.BERcodec_UTF8_STRING

Bases: scapy.asn1.ber.BERcodec_STRING

tag = <ASN1Tag UTF8_STRING[12]>
class scapy.asn1.ber.BERcodec_VIDEOTEX_STRING

Bases: scapy.asn1.ber.BERcodec_STRING

tag = <ASN1Tag VIDEOTEX_STRING[21]>
class scapy.asn1.ber.BERcodec_metaclass

Bases: type