rpkimancer.asn1 package¶
Subpackages¶
Submodules¶
Module contents¶
ASN.1 data types and helpers.
- rpkimancer.asn1.append_info_object_set(obj_set, *obj_ins)¶
Append an instance to an existing object information set at runtime.
- Parameters:
obj_set (CLASS) –
obj_ins (CLASS) –
- Return type:
None
- class rpkimancer.asn1.Interface(data)¶
Bases:
object
Generic base ASN.1 type wrapping pycrates API.
- Parameters:
data (Any) –
- content_syntax: ASN1Obj¶
- classmethod from_data(data)¶
Construct an instance from python data.
- Parameters:
data (Any) –
- Return type:
InterfaceSubclass
- classmethod from_der(der_data)¶
Construct an instance from DER encoded data.
- Parameters:
der_data (bytes) –
- Return type:
InterfaceSubclass
- property content_data: Any¶
Get the underlying python data for this type instance.
- constructed(data=None)¶
Provide a context manager to mediate the global pycrates object.
- Parameters:
data (Optional[Any]) –
- Return type:
ASN1Obj
- to_txt()¶
Get default text serialization.
- Return type:
str
- to_asn1()¶
Serialize as ASN.1 data.
- Return type:
str
- to_der()¶
Serialize as DER.
- Return type:
bytes
- to_jer()¶
Serialize as JER.
- Return type:
str
- to_json()¶
Serialize as JSON.
- Return type:
str
- to_internal()¶
Serialize using internal python repr.
- Return type:
str