scapy.asn1.ber
Basic Encoding Rules (BER) for ASN.1
- exception scapy.asn1.ber.BER_BadTag_Decoding_Error(msg: str, decoded: Any | None = None, remaining: bytes = b'')[源代码]
- exception scapy.asn1.ber.BER_Decoding_Error(msg: str, decoded: Any | None = None, remaining: bytes = b'')[源代码]
- exception scapy.asn1.ber.BER_Encoding_Error(msg: str, encoded: BERcodec_Object[Any] | str | None = None, remaining: bytes = b'')[源代码]
- scapy.asn1.ber.BER_tagging_dec(s: bytes, hidden_tag: Any | None = None, implicit_tag: int | None = None, explicit_tag: int | None = None, safe: bool | None = False, _fname: str = '') Tuple[int | None, bytes] [源代码]
- scapy.asn1.ber.BER_tagging_enc(s: bytes, hidden_tag: Any | None = None, implicit_tag: int | None = None, explicit_tag: int | None = None) bytes [源代码]
- class scapy.asn1.ber.BERcodec_BIT_STRING[源代码]
基类:
BERcodec_Object
[str
]- classmethod do_dec(s: bytes, context: Type[ASN1_Class] | None = None, safe: bool = False) Tuple[ASN1_Object[str], bytes] [源代码]
- tag = <ASN1Tag BIT_STRING[3]>
- class scapy.asn1.ber.BERcodec_INTEGER[源代码]
基类:
BERcodec_Object
[int
]- classmethod do_dec(s: bytes, context: Type[ASN1_Class] | None = None, safe: bool = False) Tuple[ASN1_Object[int], bytes] [源代码]
- tag = <ASN1Tag INTEGER[2]>
- class scapy.asn1.ber.BERcodec_IPADDRESS[源代码]
-
- classmethod do_dec(s: bytes, context: Any | None = None, safe: bool = False) Tuple[ASN1_Object[str], bytes] [源代码]
- tag = <ASN1Tag IPADDRESS[64]>
- class scapy.asn1.ber.BERcodec_OID[源代码]
基类:
BERcodec_Object
[bytes
]- classmethod do_dec(s: bytes, context: Type[ASN1_Class] | None = None, safe: bool = False) Tuple[ASN1_Object[bytes], bytes] [源代码]
- tag = <ASN1Tag OID[6]>
- class scapy.asn1.ber.BERcodec_Object[源代码]
基类:
Generic
[_K
]- classmethod asn1_object(val: _K) ASN1_Object[_K] [源代码]
- codec = <ASN1Codec BER[1]>
- classmethod dec(s: bytes, context: Type[ASN1_Class] | None = None, safe: bool = False) Tuple[_ASN1_ERROR | ASN1_Object[_K], bytes] [源代码]
- classmethod do_dec(s: bytes, context: Type[ASN1_Class] | None = None, safe: bool = False) Tuple[ASN1_Object[Any], bytes] [源代码]
- classmethod safedec(s: bytes, context: Type[ASN1_Class] | None = None) Tuple[_ASN1_ERROR | ASN1_Object[_K], bytes] [源代码]
- tag = <ASN1Tag ANY[0]>
- class scapy.asn1.ber.BERcodec_SEQUENCE[源代码]
基类:
BERcodec_Object
[Union
[bytes
,List
[BERcodec_Object
[Any
]]]]- classmethod do_dec(s: bytes, context: Type[ASN1_Class] | None = None, safe: bool = False) Tuple[ASN1_Object[bytes | List[Any]], bytes] [源代码]
- classmethod enc(_ll: bytes | List[BERcodec_Object[Any]]) bytes [源代码]
- tag = <ASN1Tag SEQUENCE[48]>
- class scapy.asn1.ber.BERcodec_STRING[源代码]
基类:
BERcodec_Object
[str
]- classmethod do_dec(s: bytes, context: Type[ASN1_Class] | None = None, safe: bool = False) Tuple[ASN1_Object[Any], bytes] [源代码]
- tag = <ASN1Tag STRING[4]>