rpkimancer.sigobj.mft module

RPKI Manifest implementation - RFC6486.

class rpkimancer.sigobj.mft.RpkiManifestEContent(*, version=0, manifest_number=0, this_update, next_update, file_list)

Bases: EncapsulatedContent

encapContentInfo for RPKI Manifests - RFC6486.

Parameters:
  • version (int) –

  • manifest_number (int) –

  • this_update (datetime.datetime) –

  • next_update (datetime.datetime) –

  • file_list (_file_list_type) –

content_type: OID = <id-ct-rpkiManifest (OBJECT IDENTIFIER): (1, 2, 840, 113549, 1, 9, 16, 1, 26)>
content_syntax: ASN1Obj = <Manifest (SEQUENCE)>
file_ext: str = 'mft'
as_resources = 'INHERIT'
ip_resources: Final = ((4, 'INHERIT'), (6, 'INHERIT'))
static generalized_time(timestamp)

Construct ASN.1 GeneralizedTime data from python datetime.

Parameters:

timestamp (datetime) –

Return type:

Tuple[Optional[str], …]

hash_bitstring(contents)

Construct ASN.1 BIT STRING of a hash over file contents.

Parameters:

contents (bytes) –

Return type:

Tuple[int, int]

class rpkimancer.sigobj.mft.RpkiManifest(issuer, file_name=None, *args, **kwargs)

Bases: SignedObject

CMS ASN.1 ContentInfo for RPKI Manifests.

Parameters:
econtent_cls

alias of RpkiManifestEContent