Skip to content

Comments

asn1: Add support for NULL#14311

Merged
alex merged 1 commit intopyca:mainfrom
trail-of-forks:ft/asn1-null
Feb 14, 2026
Merged

asn1: Add support for NULL#14311
alex merged 1 commit intopyca:mainfrom
trail-of-forks:ft/asn1-null

Conversation

@facutuesca
Copy link
Contributor

This adds support for encoding/decoding NULL.

here's an example of how it would be used:

@asn1.sequence
class MySeq:
    field: asn1.Null

object = MySeq(field=asn1.Null())
encoded = encode_der(object)

decoded = decode_der(MySeq, encoded)
assert decoded.field == asn1.Null()

Part of #12283

Signed-off-by: Facundo Tuesca <facundo.tuesca@trailofbits.com>
@alex alex merged commit 0b2a753 into pyca:main Feb 14, 2026
67 checks passed
@facutuesca facutuesca deleted the ft/asn1-null branch February 14, 2026 00:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants