Skip to content

Support asn1.encode_der for asn1.TLV #15109

Description

@loewexy

Currently the following code fails:

from cryptography.hazmat import asn1

tlv_obj = asn1.decode_der(asn1.TLV, asn1.encode_der(1))

asn1.encode_der(tlv_obj)

This would be helpful for cases where an arbitrary asn1 part is parsed using the TLV specifier to serialize only that part of the structure back to DER.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions