Skip to content

Conversation

@facutuesca
Copy link
Contributor

This PR adds support for SEQUENCE OF fields to the ASN.1 API. The fields must be annotated as Python lists:

@asn1.sequence
class Example
  a: typing.List[int]

Part of #12283

encoding,
),
Type::SequenceOf(cls) => {
let values: Vec<AnnotatedTypeObject<'_>> = value
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it practical to not have to allocate a whole vec and instead just iterate?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can that be done with the existing asn1::SequenceOf API?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mmm, probably not, no

@alex alex merged commit 5265abf into pyca:main Nov 20, 2025
68 checks passed
@facutuesca facutuesca deleted the ft/asn1-sequenceof branch November 20, 2025 02:20
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